Open robinvdvleuten opened 10 years ago
:+1:
@erwan What would need to be done to get that merged?
This would make setup for previews much easier. Currently I've to make my own DefaultController
to use my custom link resolver to resolve previews. With this PR I can simply configure my link resolver as the default.
Hi,
I'm not an expert at Symfony, are you positive it's something that everyone would want to use or is there some downside to it?
Hi,
I've custom templates for every document type and collection in Prismic. The templates are handled by custom controllers and actions, because they need some other data, or do some filtering as well. Therefore I need a custom link resolver so every link links to the right custom controllers/actions. I also need my custom link resolver to resolve the preview links to my custom controllers/actions (when clicking preview in Prismic).
I think this is a good idea because:
services.yml
if it's a service.Does that make sense?
The link resolver instance is now injected as a service for easier overwriting from other bundles through for example compiler passes.