Hello,
I just managed to change the default router class to my own class by doing
:
$container->setParameter('templating.helper.router.class',
'Symfony\Framework\WebBundle\Helper\RouterHelpers');
inside a Bundle::buildContainer call. This solution does not look very nice,
maybe I forgot something in the web.templating section from the config.yml
file.
The second important point, is that an helper does not have access to the
project container. So if I need to overwrite the router helper class with
my own logic, I can't do much, as other services will be not accessible.
my 2c
--
Thomas Rabaix
http://rabaix.net
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en