elnur/template-guesser-bundle
Symfony bundle that automatically guesses which template to render, so you don't have to wire template paths by hand. It applies naming conventions to pick the right view for a request, keeping controller code lean and templates predictable.
ProductController::listAction() → Product/list.html.twig. A PM can use this as a forcing function for a decision we actually own: do we want implicit controller-to-view mapping at all, or do we keep explicit view() / render() calls? Answering that shapes controller contracts, onboarding, and code review standards far more than any single dependency does.SensioFrameworkExtraBundle, Bundle:Controller:action template notation. That is a data point when prioritizing framework modernization work and when auditing legacy services.@Template annotations with SensioFrameworkExtraBundle and needs guesses resolved against bundle Resources/views. In that narrow case it fits as designed — pin it and isolate it.HttpKernel controller-resolution pipeline to hook into. Laravel has no equivalent extension point; any port is a reimplementation, not an install.templates/ directory, PHP attributes) where this guessing is obsolete.@Template, or you are comfortable with explicit template names.TemplateListener via a service override. There is no Laravel equivalent hook. The right move is to treat the repo as a reference implementation: extract its naming rules into a one-page spec, implement a typed TemplateNameResolver (or a base controller trait / ResponseFactory macro) in our own codebase, write tests against the spec, pilot on two controllers, and measure whether it actually reduces boilerplate or merely hides the mapping. If a legacy Symfony service truly depends on it, freeze that lockfile, mark the bundle unsupported, and fold its removal into that service's framework-upgrade or decommission epic. Either way, record the decision so it is not re-litigated.How can I help you explore Laravel packages today?