withAttributesSets() ->withPaths([ __DIR__.'/bundles/', ]); // graphqlite annotations $graphqliteAnnotations = ['Autowire', 'Decorate', 'EnumType', 'ExtendType', 'Factory', 'FailWith', 'Field', 'HideIfUnauthorized', 'HideParameter', 'InjectUser', 'Input', 'Logged', 'MagicField', 'Mutation', 'Query', 'Right', 'Security', 'SourceField', 'Type', 'UseInputType']; foreach ($graphqliteAnnotations as $annotation) { $rector->withConfiguredRule(AnnotationToAttributeRector::class, [ new AnnotationToAttribute("TheCodingMachine\GraphQLite\Annotations\\{$annotation}") ]); } return $rector;