|
44 | 44 | use Rector\Symfony\CodeQuality\Rector\AttributeGroup\SingleConditionSecurityAttributeToIsGrantedRector; |
45 | 45 | use Rector\Symfony\CodeQuality\Rector\Class_\SplitAndSecurityAttributeToIsGrantedRector; |
46 | 46 | use Rector\Symfony\Symfony25\Rector\MethodCall\AddViolationToBuildViolationRector; |
| 47 | +use Rector\Symfony\Symfony25\Rector\MethodCall\MaxLengthSymfonyFormOptionToAttrRector; |
47 | 48 | use Rector\Symfony\Symfony26\Rector\MethodCall\RedirectToRouteRector; |
| 49 | +use Rector\Symfony\Symfony27\Rector\MethodCall\ChangeCollectionTypeOptionNameFromTypeToEntryTypeRector; |
| 50 | +use Rector\Symfony\Symfony28\Rector\MethodCall\GetToConstructorInjectionRector; |
| 51 | +use Rector\Symfony\Symfony28\Rector\StaticCall\ParseFileRector; |
| 52 | +use Rector\Symfony\Symfony30\Rector\ClassMethod\FormTypeGetParentRector; |
| 53 | +use Rector\Symfony\Symfony30\Rector\ClassMethod\GetRequestRector; |
| 54 | +use Rector\Symfony\Symfony30\Rector\ClassMethod\RemoveDefaultGetBlockPrefixRector; |
| 55 | +use Rector\Symfony\Symfony30\Rector\MethodCall\ChangeStringCollectionOptionToConstantRector; |
| 56 | +use Rector\Symfony\Symfony30\Rector\MethodCall\FormTypeInstanceToClassConstRector; |
| 57 | +use Rector\Symfony\Symfony30\Rector\MethodCall\OptionNameRector; |
| 58 | +use Rector\Symfony\Symfony30\Rector\MethodCall\ReadOnlyOptionToAttributeRector; |
| 59 | +use Rector\Symfony\Symfony30\Rector\MethodCall\StringFormTypeToClassRector; |
| 60 | +use Rector\Symfony\Symfony33\Rector\ClassConstFetch\ConsoleExceptionToErrorEventConstantRector; |
| 61 | +use Rector\Symfony\Symfony34\Rector\ClassMethod\MergeMethodAnnotationToRouteAnnotationRector; |
| 62 | +use Rector\Symfony\Symfony34\Rector\ClassMethod\RemoveServiceFromSensioRouteRector; |
| 63 | +use Rector\Symfony\Symfony34\Rector\ClassMethod\ReplaceSensioRouteAnnotationWithSymfonyRector; |
| 64 | +use Rector\Symfony\Symfony34\Rector\Closure\ContainerGetNameToTypeInTestsRector; |
| 65 | +use Rector\Symfony\Symfony40\Rector\ConstFetch\ConstraintUrlOptionRector; |
| 66 | +use Rector\Symfony\Symfony40\Rector\MethodCall\ContainerBuilderCompileEnvArgumentRector; |
| 67 | +use Rector\Symfony\Symfony40\Rector\MethodCall\FormIsValidRector; |
| 68 | +use Rector\Symfony\Symfony40\Rector\MethodCall\VarDumperTestTraitMethodArgsRector; |
48 | 69 | use Rector\Symfony\Symfony42\Rector\New_\RootNodeTreeBuilderRector; |
49 | 70 | use Rector\Symfony\Symfony42\Rector\New_\StringToArrayArgumentProcessRector; |
50 | 71 | use Rector\Symfony\Symfony43\Rector\ClassMethod\EventDispatcherParentConstructRector; |
| 72 | +use Rector\Symfony\Symfony43\Rector\MethodCall\ConvertRenderTemplateShortNotationToBundleSyntaxRector; |
| 73 | +use Rector\Symfony\Symfony43\Rector\MethodCall\GetCurrencyBundleMethodCallsToIntlRector; |
51 | 74 | use Rector\Symfony\Symfony43\Rector\MethodCall\MakeDispatchFirstArgumentEventRector; |
| 75 | +use Rector\Symfony\Symfony43\Rector\StmtsAwareInterface\TwigBundleFilesystemLoaderToTwigRector; |
52 | 76 | use Rector\Symfony\Symfony44\Rector\ClassMethod\ConsoleExecuteReturnIntRector; |
53 | 77 | use Rector\Symfony\Symfony44\Rector\MethodCall\AuthorizationCheckerIsGrantedExtractorRector; |
54 | 78 | use Rector\Symfony\Symfony51\Rector\Class_\LogoutHandlerToLogoutEventSubscriberRector; |
55 | 79 | use Rector\Symfony\Symfony51\Rector\Class_\LogoutSuccessHandlerToLogoutEventSubscriberRector; |
56 | 80 | use Rector\Symfony\Symfony51\Rector\ClassMethod\CommandConstantReturnCodeRector; |
| 81 | +use Rector\Symfony\Symfony51\Rector\ClassMethod\RouteCollectionBuilderToRoutingConfiguratorRector; |
57 | 82 | use Rector\Symfony\Symfony52\Rector\MethodCall\DefinitionAliasSetPrivateToSetPublicRector; |
| 83 | +use Rector\Symfony\Symfony52\Rector\MethodCall\FormBuilderSetDataMapperRector; |
58 | 84 | use Rector\Symfony\Symfony52\Rector\MethodCall\ReflectionExtractorEnableMagicCallExtractorRector; |
59 | 85 | use Rector\Symfony\Symfony52\Rector\MethodCall\ValidatorBuilderEnableAnnotationMappingRector; |
60 | 86 | use Rector\Symfony\Symfony52\Rector\New_\PropertyAccessorCreationBooleanToFlagsRector; |
| 87 | +use Rector\Symfony\Symfony52\Rector\New_\PropertyPathMapperToDataMapperRector; |
61 | 88 | use Rector\Symfony\Symfony52\Rector\StaticCall\BinaryFileResponseCreateToNewInstanceRector; |
| 89 | +use Rector\Symfony\Symfony53\Rector\StaticPropertyFetch\KernelTestCaseContainerPropertyDeprecationRector; |
62 | 90 | use Rector\Symfony\Symfony60\Rector\FuncCall\ReplaceServiceArgumentRector; |
| 91 | +use Rector\Symfony\Symfony60\Rector\MethodCall\GetHelperControllerToServiceRector; |
| 92 | +use Rector\Symfony\Symfony61\Rector\Class_\CommandConfigureToAttributeRector; |
| 93 | +use Rector\Symfony\Symfony61\Rector\Class_\CommandPropertyToAttributeRector; |
| 94 | +use Rector\Symfony\Symfony61\Rector\Class_\MagicClosureTwigExtensionToNativeMethodsRector; |
63 | 95 | use Rector\Symfony\Symfony61\Rector\StaticPropertyFetch\ErrorNamesPropertyToConstantRector; |
| 96 | +use Rector\Symfony\Symfony62\Rector\Class_\MessageHandlerInterfaceToAttributeRector; |
| 97 | +use Rector\Symfony\Symfony62\Rector\Class_\MessageSubscriberInterfaceToAttributeRector; |
64 | 98 | use Rector\Symfony\Symfony62\Rector\Class_\SecurityAttributeToIsGrantedAttributeRector; |
65 | 99 | use Rector\Symfony\Symfony62\Rector\ClassMethod\ClassMethod\ArgumentValueResolverToValueResolverRector; |
| 100 | +use Rector\Symfony\Symfony62\Rector\ClassMethod\ParamConverterAttributeToMapEntityAttributeRector; |
66 | 101 | use Rector\Symfony\Symfony63\Rector\Class_\ParamAndEnvAttributeRector; |
67 | 102 | use Rector\Symfony\Symfony63\Rector\Class_\SignalableCommandInterfaceReturnTypeRector; |
| 103 | +use Rector\Symfony\Symfony72\Rector\StmtsAwareInterface\PushRequestToRequestStackConstructorRector; |
| 104 | +use Rector\Symfony\Symfony73\Rector\Class_\AddVoteArgumentToVoteOnAttributeRector; |
| 105 | +use Rector\Symfony\Symfony73\Rector\Class_\AuthorizationCheckerToAccessDecisionManagerInVoterRector; |
| 106 | +use Rector\Symfony\Symfony73\Rector\Class_\CommandDefaultNameAndDescriptionToAsCommandAttributeRector; |
| 107 | +use Rector\Symfony\Symfony73\Rector\Class_\CommandHelpToAttributeRector; |
| 108 | +use Rector\Symfony\Symfony73\Rector\Class_\ConstraintOptionsToNamedArgumentsRector; |
| 109 | +use Rector\Symfony\Symfony73\Rector\Class_\GetFiltersToAsTwigFilterAttributeRector; |
| 110 | +use Rector\Symfony\Symfony73\Rector\Class_\GetFunctionsToAsTwigFunctionAttributeRector; |
| 111 | +use Rector\Symfony\Symfony80\Rector\Class_\RemoveEraseCredentialsRector; |
| 112 | +use Rector\Symfony\Symfony81\Rector\MethodCall\ConstraintValidatorValidateToValidateInContextRector; |
| 113 | +use Rector\Symfony\Symfony81\Rector\MethodCall\RenameCopyOnWindowsOptionToFollowSymlinksRector; |
| 114 | +use Rector\Symfony\Symfony81\Rector\New_\RemoveEraseCredentialsFromAuthenticatorManagerRector; |
| 115 | +use Rector\Symfony\Symfony81\Rector\StaticCall\AddFormatArgumentToIsValidRector; |
68 | 116 | use Rector\Symfony\ValueObject\ReplaceServiceArgument; |
69 | 117 | use Rector\Transform\Rector\Attribute\AttributeKeyToClassConstFetchRector; |
70 | 118 | use Rector\Transform\Rector\ClassMethod\WrapReturnRector; |
|
92 | 140 | // each of these rules declares the exact Symfony package and the version its target API was added in, |
93 | 141 | // @see ComposerPackageConstraintInterface |
94 | 142 | $rectorConfig->rules([ |
| 143 | + // symfony/form 2.5 |
| 144 | + MaxLengthSymfonyFormOptionToAttrRector::class, |
95 | 145 | // symfony/validator 2.5 |
96 | 146 | AddViolationToBuildViolationRector::class, |
97 | 147 | // symfony/framework-bundle 2.6 |
98 | 148 | RedirectToRouteRector::class, |
| 149 | + // symfony/form 2.7 |
| 150 | + ChangeCollectionTypeOptionNameFromTypeToEntryTypeRector::class, |
| 151 | + // symfony/framework-bundle 2.8 |
| 152 | + GetToConstructorInjectionRector::class, |
| 153 | + // symfony/yaml 2.8 |
| 154 | + ParseFileRector::class, |
| 155 | + // symfony/form 3.0 |
| 156 | + ChangeStringCollectionOptionToConstantRector::class, |
| 157 | + FormTypeGetParentRector::class, |
| 158 | + OptionNameRector::class, |
| 159 | + ReadOnlyOptionToAttributeRector::class, |
| 160 | + RemoveDefaultGetBlockPrefixRector::class, |
| 161 | + StringFormTypeToClassRector::class, |
| 162 | + // symfony/framework-bundle 3.0 |
| 163 | + FormTypeInstanceToClassConstRector::class, |
| 164 | + GetRequestRector::class, |
| 165 | + // symfony/console 3.3 |
| 166 | + ConsoleExceptionToErrorEventConstantRector::class, |
| 167 | + // symfony/dependency-injection 3.4 |
| 168 | + ContainerGetNameToTypeInTestsRector::class, |
| 169 | + // symfony/routing 3.4 |
| 170 | + MergeMethodAnnotationToRouteAnnotationRector::class, |
| 171 | + RemoveServiceFromSensioRouteRector::class, |
| 172 | + ReplaceSensioRouteAnnotationWithSymfonyRector::class, |
| 173 | + // symfony/dependency-injection 4.0 |
| 174 | + ContainerBuilderCompileEnvArgumentRector::class, |
| 175 | + // symfony/form 4.0 |
| 176 | + FormIsValidRector::class, |
| 177 | + // symfony/validator 4.0 |
| 178 | + ConstraintUrlOptionRector::class, |
| 179 | + // symfony/var-dumper 4.0 |
| 180 | + VarDumperTestTraitMethodArgsRector::class, |
99 | 181 | // symfony/config 4.2 |
100 | 182 | RootNodeTreeBuilderRector::class, |
101 | 183 | // symfony/process 4.2 |
102 | 184 | StringToArrayArgumentProcessRector::class, |
103 | 185 | // symfony/event-dispatcher 4.3 |
104 | | - MakeDispatchFirstArgumentEventRector::class, |
105 | 186 | EventDispatcherParentConstructRector::class, |
106 | | - // symfony/console 4.4 and 5.1 |
| 187 | + MakeDispatchFirstArgumentEventRector::class, |
| 188 | + // symfony/framework-bundle 4.3 |
| 189 | + ConvertRenderTemplateShortNotationToBundleSyntaxRector::class, |
| 190 | + // symfony/intl 4.3 |
| 191 | + GetCurrencyBundleMethodCallsToIntlRector::class, |
| 192 | + // symfony/twig-bundle 4.3 |
| 193 | + TwigBundleFilesystemLoaderToTwigRector::class, |
| 194 | + // symfony/console 4.4 |
107 | 195 | ConsoleExecuteReturnIntRector::class, |
108 | | - CommandConstantReturnCodeRector::class, |
109 | 196 | // symfony/security-core 4.4 |
110 | 197 | AuthorizationCheckerIsGrantedExtractorRector::class, |
| 198 | + // symfony/console 5.1 |
| 199 | + CommandConstantReturnCodeRector::class, |
| 200 | + // symfony/framework-bundle 5.1 |
| 201 | + RouteCollectionBuilderToRoutingConfiguratorRector::class, |
111 | 202 | // symfony/security-http 5.1 |
112 | 203 | LogoutHandlerToLogoutEventSubscriberRector::class, |
113 | 204 | LogoutSuccessHandlerToLogoutEventSubscriberRector::class, |
114 | | - // symfony/* 5.2 |
| 205 | + // symfony/dependency-injection 5.2 |
115 | 206 | DefinitionAliasSetPrivateToSetPublicRector::class, |
| 207 | + // symfony/form 5.2 |
| 208 | + FormBuilderSetDataMapperRector::class, |
| 209 | + PropertyPathMapperToDataMapperRector::class, |
| 210 | + // symfony/http-foundation 5.2 |
| 211 | + BinaryFileResponseCreateToNewInstanceRector::class, |
| 212 | + // symfony/property-access 5.2 |
| 213 | + PropertyAccessorCreationBooleanToFlagsRector::class, |
| 214 | + // symfony/property-info 5.2 |
116 | 215 | ReflectionExtractorEnableMagicCallExtractorRector::class, |
| 216 | + // symfony/validator 5.2 |
117 | 217 | ValidatorBuilderEnableAnnotationMappingRector::class, |
118 | | - PropertyAccessorCreationBooleanToFlagsRector::class, |
119 | | - BinaryFileResponseCreateToNewInstanceRector::class, |
| 218 | + // symfony/framework-bundle 5.3 |
| 219 | + KernelTestCaseContainerPropertyDeprecationRector::class, |
| 220 | + // symfony/framework-bundle 6.0 |
| 221 | + GetHelperControllerToServiceRector::class, |
| 222 | + // symfony/console 6.1 |
| 223 | + CommandConfigureToAttributeRector::class, |
| 224 | + CommandPropertyToAttributeRector::class, |
| 225 | + // symfony/twig-bridge 6.1 |
| 226 | + MagicClosureTwigExtensionToNativeMethodsRector::class, |
120 | 227 | // symfony/validator 6.1 |
121 | 228 | ErrorNamesPropertyToConstantRector::class, |
122 | | - // attributes added in Symfony 6.2 |
| 229 | + // symfony/doctrine-bridge 6.2 |
| 230 | + ParamConverterAttributeToMapEntityAttributeRector::class, |
| 231 | + // symfony/http-kernel 6.2 |
| 232 | + ArgumentValueResolverToValueResolverRector::class, |
| 233 | + // symfony/messenger 6.2 |
| 234 | + MessageHandlerInterfaceToAttributeRector::class, |
| 235 | + MessageSubscriberInterfaceToAttributeRector::class, |
| 236 | + // symfony/security-http 6.2 |
123 | 237 | SecurityAttributeToIsGrantedAttributeRector::class, |
124 | 238 | SingleConditionSecurityAttributeToIsGrantedRector::class, |
125 | 239 | SplitAndSecurityAttributeToIsGrantedRector::class, |
126 | | - ArgumentValueResolverToValueResolverRector::class, |
127 | | - // symfony/dependency-injection and symfony/console 6.3 |
128 | | - ParamAndEnvAttributeRector::class, |
| 240 | + // symfony/console 6.3 |
129 | 241 | SignalableCommandInterfaceReturnTypeRector::class, |
| 242 | + // symfony/dependency-injection 6.3 |
| 243 | + ParamAndEnvAttributeRector::class, |
| 244 | + // symfony/http-foundation 7.2 |
| 245 | + PushRequestToRequestStackConstructorRector::class, |
| 246 | + // symfony/console 7.3 |
| 247 | + CommandDefaultNameAndDescriptionToAsCommandAttributeRector::class, |
| 248 | + CommandHelpToAttributeRector::class, |
| 249 | + // symfony/security-core 7.3 |
| 250 | + AddVoteArgumentToVoteOnAttributeRector::class, |
| 251 | + AuthorizationCheckerToAccessDecisionManagerInVoterRector::class, |
| 252 | + // symfony/validator 7.3 |
| 253 | + ConstraintOptionsToNamedArgumentsRector::class, |
| 254 | + // symfony/security-core 8.0 |
| 255 | + RemoveEraseCredentialsRector::class, |
| 256 | + // symfony/filesystem 8.1 |
| 257 | + RenameCopyOnWindowsOptionToFollowSymlinksRector::class, |
| 258 | + // symfony/security-http 8.1 |
| 259 | + RemoveEraseCredentialsFromAuthenticatorManagerRector::class, |
| 260 | + // symfony/uid 8.1 |
| 261 | + AddFormatArgumentToIsValidRector::class, |
| 262 | + // symfony/validator 8.1 |
| 263 | + ConstraintValidatorValidateToValidateInContextRector::class, |
| 264 | + // twig/twig 3.21 |
| 265 | + GetFiltersToAsTwigFilterAttributeRector::class, |
| 266 | + GetFunctionsToAsTwigFunctionAttributeRector::class, |
130 | 267 | ]); |
131 | 268 | // shared types used by the configuration below |
132 | 269 | $arrayType = new ArrayType(new MixedType(), new MixedType()); |
|
0 commit comments