Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | 1 | public function createLoggers(array $config): array |
|
16 | { |
||
17 | 1 | $logChannels = []; |
|
18 | |||
19 | 1 | foreach ($config['channels'] as $name => $path) { |
|
20 | 1 | $logger = new Logger($name); |
|
21 | 1 | $logger->pushHandler(new StreamHandler($path, Logger::DEBUG)); |
|
|
|||
22 | 1 | $logChannels[$name] = $logger; |
|
23 | } |
||
24 | |||
25 | 1 | return $logChannels; |
|
26 | } |
||
27 | } |
This class constant has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the constant will be removed from the class and what other constant to use instead.