How can I redefine one route in Symfony2?
I have a package that comes with bundle_routing.yml file.
In a bundle that extends this parent package, I also have a routing file: routing.xml
Please note that the files are called different.
in this routing file, I like to redefine one parent route.
I tried a simple redesign and changed the template.
But it is not used.
Parent:
MyParentBundle_detailpage: pattern: /detail defaults: { _controller: "MyParentBundle:Item:detail" }
child:
<route id="MyParentBundle_detailpage" pattern="/itemDetails"> <default key="_controller">MyParentBundle:Item:detail</default> </route>
ivoba source share