1 | <?php |
||
8 | class Kernel implements KernelInterface |
||
9 | { |
||
10 | /** @const string VERSION Version framework */ |
||
11 | const VERSION = '2.0'; |
||
12 | |||
13 | /** @var string $appDir */ |
||
14 | protected $appDir; |
||
15 | /** @var string $webDir */ |
||
16 | protected $webDir; |
||
17 | |||
18 | /** @var bool $debug Debug-mode flag */ |
||
19 | private $debug = true; |
||
20 | /** @var string $environment Application environment */ |
||
21 | private $environment = 'devel'; |
||
22 | /** @var float $startTime Time of start framework */ |
||
23 | private $startTime; |
||
24 | |||
25 | /** @var bool $loaded Micro loaded flag */ |
||
26 | private $loaded; |
||
27 | |||
28 | |||
29 | /** |
||
30 | * Kernel constructor. |
||
31 | * @param string $environment |
||
32 | * @param bool $debug |
||
33 | */ |
||
34 | public function __construct($environment, $debug = false) |
||
49 | |||
50 | /** |
||
51 | * Clone kernel |
||
52 | * |
||
53 | * @access public |
||
54 | * |
||
55 | * @return void |
||
56 | */ |
||
57 | public function __clone() |
||
65 | |||
66 | final public function loadInjectorsFromCache() |
||
77 | |||
78 | public function initialize(ServerRequestInterface $request) |
||
113 | |||
114 | /** |
||
115 | * @return mixed |
||
116 | */ |
||
117 | public function getConfig() |
||
121 | |||
122 | /** |
||
123 | * @return mixed |
||
124 | */ |
||
125 | public function getAppDir() |
||
133 | |||
134 | /** |
||
135 | * @return bool |
||
136 | */ |
||
137 | public function isDebug() |
||
141 | |||
142 | /** |
||
143 | * @return bool |
||
144 | */ |
||
145 | public function isCli() |
||
149 | |||
150 | /** |
||
151 | * @return mixed |
||
152 | */ |
||
153 | public function getStartTime() |
||
157 | |||
158 | /** |
||
159 | * @return mixed |
||
160 | */ |
||
161 | public function getWebDir() |
||
165 | |||
166 | public function getCacheDir() |
||
170 | |||
171 | /** |
||
172 | * @return mixed |
||
173 | */ |
||
174 | public function getEnvironment() |
||
178 | |||
179 | public function getLogDir() |
||
183 | } |