Adapted to Symfony 2.4
Merge pull request #15 from chives/dev-symfony2.4

Adapted to Symfony 2.4