| Conditions | 1 |
| Paths | 1 |
| Total Lines | 30 |
| Code Lines | 27 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | public function getConfigTreeBuilder() |
||
| 26 | { |
||
| 27 | $treeBuilder = new TreeBuilder(); |
||
| 28 | $treeBuilder->root('dunglas_action') |
||
| 29 | ->children() |
||
| 30 | ->arrayNode('autodiscover') |
||
| 31 | ->info('Autodiscover action classes stored in the configured directory of bundles and register them as service.') |
||
| 32 | ->canBeDisabled() |
||
| 33 | ->children() |
||
| 34 | ->arrayNode('directories') |
||
| 35 | ->info('The directory name to autodiscover in bundles.') |
||
| 36 | ->prototype('array') |
||
| 37 | ->prototype('scalar')->end() |
||
| 38 | ->end() |
||
| 39 | ->defaultValue(['action' => 'Action', 'command' => 'Command']) |
||
| 40 | ->end() |
||
| 41 | ->end() |
||
| 42 | ->end() |
||
| 43 | ->arrayNode('directories') |
||
| 44 | ->info('List of directories relative to the kernel root directory containing classes.') |
||
| 45 | ->prototype('array') |
||
| 46 | ->prototype('scalar')->end() |
||
| 47 | ->end() |
||
| 48 | ->defaultValue([]) |
||
| 49 | ->end() |
||
| 50 | ->end() |
||
| 51 | ->end(); |
||
| 52 | |||
| 53 | return $treeBuilder; |
||
| 54 | } |
||
| 55 | } |
||
| 56 |