Allow compatibility with Symfony 2.2