×
Inicio Aleatorio

generateUrl outside controller

Sección: Symfony

Creado: 26-01-19 (Actualizado: 03-02-19)

Is there a possibility to use generateUrl() method outside of controllers?

I tried to use it in a custom repository class with $this->get('router'), but it didn't work.

update

I've found a

https://stackoverflow.com/questions/15458580/generateurl-outside-controller/15462723

Siguiente Enlace