Make compatible with Symfony >2.4
Merge pull request #1 from rmasters/patch-1

Make compatible with Symfony >2.4