| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2.0438 |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | 1 | public function boot() : Container |
|
| 18 | { |
||
| 19 | 1 | $fileName = ROOT . 'cache/dic.php'; |
|
| 20 | /** @var Container $dic */ |
||
| 21 | 1 | if (!is_file($fileName)) { |
|
| 22 | $rebuild = new Rebuild(); |
||
| 23 | $rebuild->buildContainer(); |
||
| 24 | } |
||
| 25 | |||
| 26 | 1 | include_once $fileName; |
|
| 27 | |||
| 28 | 1 | $dic = new \DumpedContainer(); |
|
| 29 | |||
| 30 | 1 | $dic->get('monolog.ErrorHandler'); |
|
| 31 | |||
| 32 | 1 | return $dic; |
|
| 33 | } |
||
| 34 | } |
||
| 35 |