Make bundle compatible with symfony 2.2