Fix compatibility with SensioGeneratorBundle master.