Symfony 2.2 compatibility.