fix support for Symfony 2.3