change flash method compatible to Symfony 2.1