Total Complexity | 6 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
15 | class LogServiceProvider implements ServiceProviderInterface |
||
16 | { |
||
17 | public function register(Container $pimple) |
||
18 | { |
||
19 | $pimple['logger'] = $pimple['log'] = function($app) { |
||
20 | $config = $this->formatLogConfig($app); |
||
21 | |||
22 | if (!empty($config)) { |
||
23 | $app['config']->merge($config); |
||
24 | } |
||
25 | |||
26 | return new LogManager($app); |
||
27 | }; |
||
28 | } |
||
29 | |||
30 | public function formatLogConfig($app) |
||
69 | ], |
||
70 | ], |
||
74 |