Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #24637 [FrameworkBundle] Improve the DX of TemplateController…
… when using SF 4 (dunglas) This PR was merged into the 4.1-dev branch. Discussion ---------- [FrameworkBundle] Improve the DX of TemplateController when using SF 4 | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no <!-- don't forget to update UPGRADE-*.md files --> | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Tiny DX improvement when using modern Symfony. Allow to write: ```yaml # config/routes.yaml index: path: / defaults: _controller: 'Symfony\Bundle\FrameworkBundle\Controller\TemplateController' template: 'homepage.html.twig' ``` Instead of: ```yaml index: path: / defaults: _controller: 'Symfony\Bundle\FrameworkBundle\Controller\TemplateController::templateAction' template: 'homepage.html.twig' ``` I was thinking about doing the same for `RedirectController`, but it's not that easy because it contains two methods. Commits ------- 6d15055 [FrameworkBundle] Improve the DX of TemplateController when using SF 4
- Loading branch information