Compatibility to Symfony 2.4