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

Fix for symfony 2.2