Add compability with Symfony 2.3