| Total Complexity | 5 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Coverage | 70.59% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class LoggerServiceProvider extends AbstractSignatureServiceProvider implements BootableServiceProviderInterface |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @inheritdoc |
||
| 19 | */ |
||
| 20 | public function provides() |
||
| 21 | { |
||
| 22 | return ['log', PsrLoggerInterface::class]; |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @inheritdoc |
||
| 27 | */ |
||
| 28 | 1 | public function register() |
|
| 31 | 1 | } |
|
| 32 | |||
| 33 | 1 | protected function registerLog() |
|
| 39 | 1 | } |
|
| 40 | |||
| 41 | /** |
||
| 42 | * Create the logger. |
||
| 43 | * |
||
| 44 | * @return Manager |
||
| 45 | */ |
||
| 46 | 1 | protected function createLogger() |
|
| 47 | { |
||
| 48 | 1 | $manager = $this->getContainer()->get(Manager::class); |
|
| 49 | 1 | $manager->setContainer($this->getContainer()); |
|
| 50 | 1 | return $manager; |
|
| 51 | } |
||
| 52 | |||
| 53 | public function boot() |
||
| 57 | } |
||
| 58 | } |
||
| 59 |