Symfony 2.4 compatibility