forked from CradlePHP/kitchen-sink
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.php
More file actions
32 lines (27 loc) · 1005 Bytes
/
bootstrap.php
File metadata and controls
32 lines (27 loc) · 1005 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php //-->
require_once 'vendor/autoload.php';
//use the cradle function
Cradle\Framework\Decorator::DECORATE;
return cradle()
//add bootstrap here
->preprocess(include('bootstrap/paths.php'))
->preprocess(include('bootstrap/debug.php'))
->preprocess(include('bootstrap/errors.php'))
->preprocess(include('bootstrap/services.php'))
->preprocess(include('bootstrap/timezone.php'))
->preprocess(include('bootstrap/session.php'))
->preprocess(include('bootstrap/i18n.php'))
->preprocess(include('bootstrap/handlebars.php'))
->on('foobar', function($req, $res) {
echo 'in';
print_r($req->getStage());
})
//add packages here
->register('cblanquera/cradle-handlebars')
->register('cblanquera/cradle-queue')
->register('cblanquera/cradle-csrf')
->register('cblanquera/cradle-captcha')
->register('cradlephp/sink-faucet')
->register('/module/oauth')
->register('/module/profile')
->register('/module/utility');