Allow use for symfony >= 2.1