Link resolver as a service#11
Conversation
The link resolver instance is now injected as a service.
|
👍 |
|
@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 |
|
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:
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.