Update flashes call

Current syntax is deprecated and will be removed in Symfony 2.3.
Merge pull request #29 from winzou/patch-1

Update flashes call