Total Complexity | 3 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class DatabaselessKernel extends BaseKernel |
||
16 | { |
||
17 | protected $queryErrorMessage = 'Booted with DatabaseLessKernel, cannot execute query: %s'; |
||
18 | |||
19 | /** |
||
20 | * Indicates whether the Kernel has been flushed on boot |
||
21 | * Uninitialised before boot |
||
22 | * |
||
23 | * @var bool |
||
24 | */ |
||
25 | private $flush; |
||
26 | |||
27 | /** |
||
28 | * Allows disabling of the configured error handling. |
||
29 | * This can be useful to ensure the execution context (e.g. composer) |
||
30 | * can consistently use its own error handling. |
||
31 | * |
||
32 | * @var boolean |
||
33 | */ |
||
34 | protected $bootErrorHandling = true; |
||
35 | |||
36 | public function setBootErrorHandling(bool $bool) |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @param false $flush |
||
44 | * @throws Exception |
||
45 | */ |
||
46 | public function boot($flush = false) |
||
56 | } |
||
57 | |||
58 | /** |
||
59 | * @return bool |
||
60 | */ |
||
61 | public function isFlushed() |
||
66 |