rector-symfony
rector-symfony copied to clipboard
Symfony 6.3 upgrade checklist
https://github.com/symfony/symfony/blob/6.3/UPGRADE-6.3.md
Console
- [x] ~Return int or false from
SignalableCommandInterface::handleSignal()instead of void and add a second argument$previousExitCode~ (#483)
DependencyInjection
- [ ] Deprecate
PhpDumperoptionsinline_factories_parameterandinline_class_loader_parameter, useinline_factoriesandinline_class_loaderinstead - [ ] Deprecate undefined and numeric keys with
service_locatorconfig, use string aliases instead - [x] ~Deprecate
#[MapDecorated], use#[AutowireDecorated]instead~ (#483) - [x] ~Deprecate the
@requiredannotation, use theSymfony\Contracts\Service\Attribute\Requiredattribute instead~ (#37)
DoctrineBridge
- [ ] Deprecate passing Doctrine subscribers to
ContainerAwareEventManagerclass, use listeners instead - [ ] Deprecate
DoctrineDbalCacheAdapterSchemaSubscriberin favor ofDoctrineDbalCacheAdapterSchemaListener - [ ] Deprecate
MessengerTransportDoctrineSchemaSubscriberin favor ofMessengerTransportDoctrineSchemaListener - [ ] Deprecate
RememberMeTokenProviderDoctrineSchemaSubscriberin favor ofRememberMeTokenProviderDoctrineSchemaListener
FrameworkBundle
- [ ] Deprecate the
notifier.logger_notification_listenerservice, use thenotifier.notification_logger_listenerservice instead - [x] ~Deprecate the
Http\Client\HttpClientservice, usePsr\Http\Client\ClientInterfaceinstead~ (#483)
HttpKernel
- [ ] Deprecate parameters
container.dumper.inline_factoriesandcontainer.dumper.inline_class_loader, use.container.dumper.inline_factoriesand.container.dumper.inline_class_loaderinstead
Lock
- [ ] Deprecate the
gcProbablityoption to fix a typo in its name, use thegcProbabilityoption instead
Messenger
- [x] ~Deprecate
Symfony\Component\Messenger\Transport\InMemoryTransportandSymfony\Component\Messenger\Transport\InMemoryTransportFactoryin favor ofSymfony\Component\Messenger\Transport\InMemory\InMemoryTransportandSymfony\Component\Messenger\Transport\InMemory\InMemoryTransportFactory~ (#483) - [x] ~Deprecate
StopWorkerOnSigtermSignalListenerin favor ofStopWorkerOnSignalsListener~ (#483)
Notifier
- [ ] [BC BREAK] The following data providers for
TransportTestCaseare now static:toStringProvider(),supportedMessagesProvider()andunsupportedMessagesProvider() - [ ] [BC BREAK] The
TransportTestCase::createTransport()method is now static
Security
- [ ] Deprecate passing a secret as the 2nd argument to the constructor of
Symfony\Component\Security\Http\RememberMe\PersistentRememberMeHandler
SecurityBundle
- [ ] Deprecate the
security.firewalls.logout.csrf_token_generatorconfig option, usesecurity.firewalls.logout.csrf_token_managerinstead
Serializer
- [ ] Deprecate
CacheableSupportsMethodInterfacein favor of the newgetSupportedTypes(?string $format)methods
Deprecate CacheableSupportsMethodInterface in favor of the new getSupportedTypes(?string $format) methods
I don't think this deprecation can be automatically refactored, implementing getSupportedTypes() requires specific application information
The getSupportedTypes() method should return an array where the keys represent the supported types, and the values indicate whether the result of the supports*() method call can be cached or not.