restored compatibility with Symfony 2.1