Update flashes call

Current syntax is deprecated and will be removed in Symfony 2.3.