hasFlash was deprecated in Symfony 2.1

hasFlash was deprecated in Symfony 2.1 and will be removed in 2.3
Merge pull request #26 from shaneog/fix-deprecated

hasFlash was deprecated in Symfony 2.1