| Conditions | 2 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | public function registerErrorHandler() |
||
| 43 | { |
||
| 44 | $this->getContainer()->share('error-handler', function () { |
||
| 45 | $logger = $this->getContainer()->has(LoggerInterface::class) |
||
| 46 | ? $this->getContainer()->get(LoggerInterface::class) |
||
| 47 | : new BufferingLogger(); |
||
| 48 | |||
| 49 | return new ErrorHandler($logger); |
||
| 50 | }); |
||
| 51 | |||
| 52 | $this->getContainer()->alias('error-handler', ErrorHandler::class); |
||
| 53 | } |
||
| 54 | |||
| 60 |