Total Complexity | 3 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 90.91% |
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 | 14 | $pimple['logger'] = function ($app) { |
|
33 | 14 | $config = $this->logConfig($app); |
|
34 | |||
35 | 14 | return new Log($config); |
|
36 | }; |
||
37 | 62 | } |
|
38 | |||
39 | /** |
||
40 | * Get the log configuration. |
||
41 | * |
||
42 | * @param $app |
||
43 | * |
||
44 | * @return array |
||
45 | */ |
||
46 | 14 | public function logConfig($app) |
|
59 | } |
||
60 | } |
||
61 |