| Conditions | 1 |
| Paths | 1 |
| Total Lines | 25 |
| Code Lines | 23 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | public function getNodeDefinition(NodeDefinition $node) |
||
| 42 | { |
||
| 43 | $node->children() |
||
| 44 | ->arrayNode('custom_routes') |
||
| 45 | ->info('Custom routes added to the metadata response.') |
||
| 46 | ->useAttributeAsKey('name') |
||
| 47 | ->treatNullLike([]) |
||
| 48 | ->treatFalseLike([]) |
||
| 49 | ->prototype('array') |
||
| 50 | ->children() |
||
| 51 | ->scalarNode('route_name') |
||
| 52 | ->info('Route name.') |
||
| 53 | ->isRequired() |
||
| 54 | ->end() |
||
| 55 | ->arrayNode('route_parameters') |
||
| 56 | ->info('Parameters associated to the route (if needed).') |
||
| 57 | ->useAttributeAsKey('name') |
||
| 58 | ->prototype('variable')->end() |
||
| 59 | ->treatNullLike([]) |
||
| 60 | ->end() |
||
| 61 | ->end() |
||
| 62 | ->end() |
||
| 63 | ->end() |
||
| 64 | ->end(); |
||
| 65 | } |
||
| 66 | |||
| 75 |