symfony/symfony — pull request #11593 by Cydonia7 (2014-08-06 18:16:25+00:00)
Title: [FrameworkBundle] Add shortcut methods to controllers

| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #11166
| License | MIT
| Doc PR |

To-do list :
- [ ] submit changes to the documentation

Added redirectToRoute, addFlash, isGranted and checkGranted to controllers. The code seems so simple I didn't feel like adding controller tests was needed since we're just shortcuting other services calls.