Add compatibility with Symfony 2.4.0