Conditions | 2 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
46 | protected function continueConfiguration(NodeDefinition $node) |
||
47 | { |
||
48 | parent::continueConfiguration($node); |
||
49 | $node |
||
50 | ->validate() |
||
51 | ->ifTrue(function ($config) { |
||
52 | return true === $config['enabled'] && empty($config['event_store']); |
||
53 | }) |
||
54 | ->thenInvalid('The option "event_store" must be set.') |
||
55 | ->end() |
||
56 | ->children() |
||
57 | ->scalarNode('event_store')->defaultNull()->end() |
||
58 | ->end(); |
||
59 | } |
||
60 | } |
||
61 |