You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @dkisselev, you're right that the book currently misses documentation for this feature, but luckily @Cydonia7 already opened a pull request for this: #4109
This PR was merged into the 2.6 branch.
Discussion
----------
Rebased "add shortcut methods"
Replaces #4109
Original Pr description:
> | Q | A
> | ------------- | ---
> | Doc fix? | no
> | New docs? | yes (symfony/symfony#11593)
> | Applies to | 2.6+
> | Fixed tickets | #4666
>
> This commit is associated to symfony/symfony#11593 that adds new shortcut methods to controllers.
>
> If anything is wrong with my commit or this description, please tell me and I will fix it as soon as possible. I'm glad I finally try to help this awesome project.
Commits
-------
994ed3a Little fixes
f807d14 Fixes
5b015f2 Modifications according to comments
7f9bc8c And now the same for isGranted where it is possible
46e2505 Changed to addFlash where it is possible (ie in controllers)
643c458 redirect changed to redirectToRoute
7ae62e8 Minor improvements
4611ce9 Minor format improvements
3bcb186 Added shortcut methods for controllers
2.6 comes with those new redirect shortcut helpers:
http://symfony.com/blog/new-in-symfony-2-6-new-shortcut-methods-for-controllers
But it doesn't look like the docs have been updated to show them yet:
http://symfony.com/doc/current/book/controller.html#redirecting
The text was updated successfully, but these errors were encountered: