| Total Complexity | 3 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 9.09% |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | class LogServiceProvider implements ServiceProviderInterface |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * Registers services on the given container. |
||
| 27 | * |
||
| 28 | * @param Container $pimple A container instance |
||
| 29 | */ |
||
| 30 | public function register(Container $pimple) |
||
| 31 | { |
||
| 32 | $pimple['logger'] = $pimple['log'] = function ($app) { |
||
| 33 | $config = $this->logConfig($app); |
||
| 34 | |||
| 35 | return new Log($config); |
||
| 36 | }; |
||
| 37 | 20 | } |
|
| 38 | |||
| 39 | /** |
||
| 40 | * Get the log configuration. |
||
| 41 | * |
||
| 42 | * @param $app |
||
| 43 | * |
||
| 44 | * @return array |
||
| 45 | */ |
||
| 46 | public function logConfig($app) |
||
| 59 | } |
||
| 60 | } |
||
| 61 |