| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | 10 | public function registerLogChannel(string $channelName, callable $loggerCreationCallable) |
|
| 33 | { |
||
| 34 | 10 | $serviceName = $this->getLoggerAlias($channelName); |
|
| 35 | |||
| 36 | 10 | Yii::$container->setSingleton($serviceName, function () use ($channelName, $loggerCreationCallable) { |
|
| 37 | 10 | return $loggerCreationCallable($channelName); |
|
| 38 | 10 | }); |
|
| 39 | 10 | } |
|
| 40 | |||
| 63 |