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