Update DependencyInjection/Configuration.php
Adding _routing for types
This commit is contained in:
parent
973d67f0c1
commit
ea921c8abe
|
@ -247,6 +247,7 @@ class Configuration
|
||||||
->append($this->getMappingsNode())
|
->append($this->getMappingsNode())
|
||||||
->append($this->getSourceNode())
|
->append($this->getSourceNode())
|
||||||
->append($this->getBoostNode())
|
->append($this->getBoostNode())
|
||||||
|
->append($this->getRoutingNode())
|
||||||
->end()
|
->end()
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -373,4 +374,22 @@ class Configuration
|
||||||
|
|
||||||
return $node;
|
return $node;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the array node used for "_routing".
|
||||||
|
*/
|
||||||
|
protected function getRoutingNode()
|
||||||
|
{
|
||||||
|
$builder = new TreeBuilder();
|
||||||
|
$node = $builder->root('_routing');
|
||||||
|
|
||||||
|
$node
|
||||||
|
->children()
|
||||||
|
->scalarNode('required')->end()
|
||||||
|
->scalarNode('path')->end()
|
||||||
|
->end()
|
||||||
|
;
|
||||||
|
|
||||||
|
return $node;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue