| Conditions | 1 |
| Paths | 1 |
| Total Lines | 26 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function getConfigTreeBuilder(): TreeBuilder |
||
| 11 | { |
||
| 12 | $treeBuilder = new TreeBuilder(); |
||
| 13 | $rootNode = $treeBuilder->root('sumo_coders_framework_multi_user'); |
||
| 14 | |||
| 15 | $rootNode |
||
| 16 | ->children() |
||
| 17 | ->arrayNode('redirect_routes') |
||
| 18 | ->example([ |
||
| 19 | 'Acme\DemoBundle\Entity\User1' => 'dashboard_route', |
||
| 20 | ]) |
||
| 21 | ->useAttributeAsKey('class') |
||
| 22 | ->prototype('array') |
||
| 23 | ->beforeNormalization()->ifString()->then(function ($v) { |
||
| 24 | return ['route' => $v]; |
||
| 25 | })->end() |
||
| 26 | ->children() |
||
| 27 | ->scalarNode('route')->cannotBeEmpty()->end() |
||
| 28 | ->end() |
||
| 29 | ->end() |
||
| 30 | ->end() |
||
| 31 | ->end() |
||
| 32 | ; |
||
| 33 | |||
| 34 | return $treeBuilder; |
||
| 35 | } |
||
| 36 | } |
||
| 37 |