trying to make the bundle compatible with Symfony 2.3