Make the bundle compatible with symfony 2.2