Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | public function getConfigTreeBuilder() |
||
23 | { |
||
24 | $treeBuilder = new TreeBuilder(); |
||
25 | $rootNode = $treeBuilder->root('psysh'); |
||
26 | |||
27 | $rootNode |
||
28 | ->children() |
||
29 | ->arrayNode('variables') |
||
30 | ->info('Define additional variables to be exposed in Psysh') |
||
31 | ->useAttributeAsKey('variable_name') |
||
32 | ->example([ |
||
33 | 'debug' => '%kernel.debug%', |
||
34 | 'my_service' => '@my.service', |
||
35 | 'os' => ['linux', 'macos', 'losedows'], |
||
36 | ]) |
||
37 | ->prototype('variable')->end() |
||
38 | ->end() |
||
39 | ->end(); |
||
40 | |||
41 | return $treeBuilder; |
||
42 | } |
||
43 | } |
||
44 |