Compatibility with Symfony 2.4.*