Fix compatibilty for Symfony 2.2