Add Symfony 2.5 compatibility