| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 77.27% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | trait LoggerConfigurationTrait |
||
| 23 | { |
||
| 24 | 18 | private static function addLoggerConfigurationNode(NodeBuilder $nodeBuilder, string $defaultChannel, string $defaultFilePath): NodeBuilder |
|
| 25 | { |
||
| 26 | return $nodeBuilder |
||
| 27 | 18 | ->arrayNode('logger') |
|
| 28 | 18 | ->canBeDisabled() |
|
| 29 | 18 | ->children() |
|
| 30 | 18 | ->scalarNode('channel') |
|
| 31 | 18 | ->cannotBeEmpty() |
|
| 32 | 18 | ->defaultValue($defaultChannel) |
|
| 33 | 18 | ->end() |
|
| 34 | 18 | ->scalarNode('file_path') |
|
|
|
|||
| 35 | 18 | ->cannotBeEmpty() |
|
| 36 | 18 | ->defaultValue($defaultFilePath) |
|
| 37 | 18 | ->end() |
|
| 38 | 18 | ->end() |
|
| 39 | 18 | ->end(); |
|
| 40 | } |
||
| 41 | |||
| 42 | 18 | private static function addLoggerConfigurationNodeFromDefaultsConfiguration(NodeBuilder $nodeBuilder, DefaultsConfigurationModel $defaultsConfiguration): NodeBuilder |
|
| 47 | } |
||
| 48 | |||
| 49 | private static function getConfiguredLogger(ActionConfiguration $actionConfiguration): ?Logger |
||
| 57 | } |
||
| 58 | } |
||
| 59 |