Fix for symfony 2.2
Merge pull request #1 from falinsky/patch-1

Fix for symfony 2.2