Also works with Symfony 2.4