Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #35257 [FrameworkBundle] TemplateController should accept ext…
…ra arguments to be sent to the template (Benjamin RICHARD) This PR was squashed before being merged into the 5.1-dev branch (closes #35257). Discussion ---------- [FrameworkBundle] TemplateController should accept extra arguments to be sent to the template | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | Fix #... <!-- prefix each issue number with "Fix #", if any --> | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> <!-- Replace this notice by a short README for your feature/bugfix. This will help people understand your PR and can be used as a start for the documentation. Additionally (see https://symfony.com/roadmap): - Always add tests and ensure they pass. - Never break backward compatibility (see https://symfony.com/bc). - Bug fixes must be submitted against the lowest maintained branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too.) - Features and deprecations must be submitted against branch master. --> In the official documentation (symfony.com/doc/master/templates.html#rendering-a-template-directly-from-a-route) it says that TemplateController should accept extra arguments. In fact it's not available for instance. So i added the context argument as an array. Because of deprecation of templating, only the twig instance will apply the context argument. It will need to be implemented in branch 5. The following issue has been created in documentation project : symfony/symfony-docs#12897 Commits ------- e27b417 [FrameworkBundle] TemplateController should accept extra arguments to be sent to the template
- Loading branch information