Make bundle compatible with Symfony 2.4