1 | <?php |
||
10 | class Kernel |
||
11 | { |
||
12 | /** |
||
13 | * The application implementation. |
||
14 | * |
||
15 | * @var \Magister\Magister |
||
16 | */ |
||
17 | protected $app; |
||
18 | |||
19 | /** |
||
20 | * The bootstrap classes for the application. |
||
21 | * |
||
22 | * @var array |
||
23 | */ |
||
24 | protected $bootstrappers = [ |
||
25 | 'Magister\Services\Foundation\Bootstrap\LoadConfiguration', |
||
26 | 'Magister\Services\Foundation\Bootstrap\RegisterSurrogates', |
||
27 | 'Magister\Services\Foundation\Bootstrap\RegisterProviders', |
||
28 | 'Magister\Services\Foundation\Bootstrap\BootProviders', |
||
29 | 'Magister\Services\Foundation\Bootstrap\MakeReplacements', |
||
30 | ]; |
||
31 | |||
32 | /** |
||
33 | * Create a new kernel instance. |
||
34 | * |
||
35 | * @param \Magister\Magister $app |
||
36 | */ |
||
37 | public function __construct(Magister $app) |
||
41 | |||
42 | /** |
||
43 | * Bootstrap the application for http requests. |
||
44 | * |
||
45 | * @return void |
||
46 | */ |
||
47 | public function bootstrap() |
||
53 | |||
54 | /** |
||
55 | * Get the bootstrap classes for the application. |
||
56 | * |
||
57 | * @return array |
||
58 | */ |
||
59 | protected function bootstrappers() |
||
63 | |||
64 | /** |
||
65 | * Get the Magister application instance. |
||
66 | * |
||
67 | * @return \Magister\Magister |
||
68 | */ |
||
69 | public function getApplication() |
||
73 | } |
||
74 |