Update DependencyInjection/Configuration.php

Adding _routing for types
This commit is contained in:
micjohnson 2012-12-12 06:23:54 -08:00
parent 973d67f0c1
commit ea921c8abe

View file

@ -247,6 +247,7 @@ class Configuration
->append($this->getMappingsNode())
->append($this->getSourceNode())
->append($this->getBoostNode())
->append($this->getRoutingNode())
->end()
;
@ -373,4 +374,22 @@ class Configuration
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;
}
}