Fix issue with Symfony 2.1 compatibility
Merge pull request #11 from NicParry/patch-1

Fixes issue with Symfony 2.1 compatibility