symfony/symfony-docs — pull request #4139 by gondo (2014-08-16 22:59:58+00:00)
Title: cleaned up the code example

- added final return for `vote()` function
- moved `$user` below attribute check. if attribute fails, we don't need user
- used already declared constants in switch statement, rather than harcoded strings