Conditions | 1 |
Paths | 1 |
Total Lines | 22 |
Code Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
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 | ->scalarNode('directory')->defaultValue('Action')->info('The directory name to autodiscover in bundles.')->end() |
||
35 | ->end() |
||
36 | ->end() |
||
37 | ->arrayNode('directories') |
||
38 | ->info('List of directories relative to the kernel root directory containing action classes.') |
||
39 | ->prototype('scalar')->end() |
||
40 | ->defaultValue([]) |
||
41 | ->end() |
||
42 | ->end() |
||
43 | ->end(); |
||
44 | |||
45 | return $treeBuilder; |
||
46 | } |
||
47 | } |
||
48 |