-
Notifications
You must be signed in to change notification settings - Fork 0
/
yii
executable file
·50 lines (41 loc) · 1.44 KB
/
yii
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/env php
<?php
/*
* --------------------------------------------------------------------------
* Register auto loaders
* --------------------------------------------------------------------------
*
* Add registered class loaders required for our application.
*
*/
require __DIR__ . '/bootstrap/autoload.php';
/*
* --------------------------------------------------------------------------
* Initialize SideKit library
* --------------------------------------------------------------------------
*
* This step is required *prior* adding the application script.
*
*/
require __DIR__ . '/bootstrap/sidekit.php';
/*
* --------------------------------------------------------------------------
* Initialize custom aliases
* --------------------------------------------------------------------------
*
* Add custom aliases to the application. Added after sidekit to take
* advantage of its loaded configuration values
*/
require __DIR__ . '/bootstrap/aliases.php';
/*
* --------------------------------------------------------------------------
* Configure and Go!
* --------------------------------------------------------------------------
*
* Bootstrap the configuration processes and get and Application ready to use.
* Applying configuration details in a different file allow us to free up
* unnecessary code on the entry script.
*/
$app = require __DIR__ . '/bootstrap/console.php';
$exitCode = $app->run();
exit($exitCode);