adapted the bundle for symfony versions greater or equal 2.5