Allow use for symfony >2.4