- The default user agent has been renamed from
Symfony BrowserKit
toSymfonyBrowserKit
to comply with the RFC 9110 specification
- Return int or false from
SignalableCommandInterface::handleSignal()
instead of void and add a second argument$previousExitCode
- Deprecate
PhpDumper
optionsinline_factories_parameter
andinline_class_loader_parameter
, useinline_factories
andinline_class_loader
instead - Deprecate undefined and numeric keys with
service_locator
config, use string aliases instead - Deprecate
#[MapDecorated]
, use#[AutowireDecorated]
instead - Deprecate the
@required
annotation, use theSymfony\Contracts\Service\Attribute\Required
attribute instead
- Deprecate passing Doctrine subscribers to
ContainerAwareEventManager
class, use listeners instead - Deprecate
DoctrineDbalCacheAdapterSchemaSubscriber
in favor ofDoctrineDbalCacheAdapterSchemaListener
- Deprecate
MessengerTransportDoctrineSchemaSubscriber
in favor ofMessengerTransportDoctrineSchemaListener
- Deprecate
RememberMeTokenProviderDoctrineSchemaSubscriber
in favor ofRememberMeTokenProviderDoctrineSchemaListener
- Deprecate not configuring the "widget" option of date/time form types, it will default to "single_text" in v7
-
Deprecate
framework:exceptions
tag, unwrap it and replaceframework:exception
tags'name
attribute byclass
Before:
<!-- config/packages/framework.xml --> <framework:config> <framework:exceptions> <framework:exception name="Symfony\Component\HttpKernel\Exception\BadRequestHttpException" log-level="info" status-code="422" /> </framework:exceptions> </framework:config>
After:
<!-- config/packages/framework.xml --> <framework:config> <framework:exception class="Symfony\Component\HttpKernel\Exception\BadRequestHttpException" log-level="info" status-code="422" /> </framework:config>
- Deprecate the
notifier.logger_notification_listener
service, use thenotifier.notification_logger_listener
service instead - Deprecate the
Http\Client\HttpClient
service, usePsr\Http\Client\ClientInterface
instead
- The default user agents have been renamed from
Symfony HttpClient/Amp
,Symfony HttpClient/Curl
andSymfony HttpClient/Native
toSymfonyHttpClient (Amp)
,SymfonyHttpClient (Curl)
andSymfonyHttpClient (Native)
respectively to comply with the RFC 9110 specification
Response::sendHeaders()
now takes an optional$statusCode
parameter
- Deprecate conversion of invalid values in
ParameterBag::getInt()
andParameterBag::getBoolean()
- Deprecate ignoring invalid values when using
ParameterBag::filter()
, unless flagFILTER_NULL_ON_FAILURE
is set
- Deprecate parameters
container.dumper.inline_factories
andcontainer.dumper.inline_class_loader
, use.container.dumper.inline_factories
and.container.dumper.inline_class_loader
instead
- Deprecate the
gcProbablity
option to fix a typo in its name, use thegcProbability
option instead
- Deprecate
Symfony\Component\Messenger\Transport\InMemoryTransport
andSymfony\Component\Messenger\Transport\InMemoryTransportFactory
in favor ofSymfony\Component\Messenger\Transport\InMemory\InMemoryTransport
andSymfony\Component\Messenger\Transport\InMemory\InMemoryTransportFactory
- Deprecate
StopWorkerOnSigtermSignalListener
in favor ofStopWorkerOnSignalsListener
- [BC BREAK] The following data providers for
TransportTestCase
are now static:toStringProvider()
,supportedMessagesProvider()
andunsupportedMessagesProvider()
- [BC BREAK] The
TransportTestCase::createTransport()
method is now static
- Deprecate passing a secret as the 2nd argument to the constructor of
Symfony\Component\Security\Http\RememberMe\PersistentRememberMeHandler
- Deprecate enabling bundle and not configuring it
- Deprecate the
security.firewalls.logout.csrf_token_generator
config option, usesecurity.firewalls.logout.csrf_token_manager
instead
- Implementing the
ConstraintViolationInterface
without implementing thegetConstraint()
method is deprecated
- Deprecate
MissingConstructorArgumentsException
in favor ofMissingConstructorArgumentException
- Deprecate
CacheableSupportsMethodInterface
in favor of the newgetSupportedTypes(?string $format)
methods - The following Normalizer classes will become final in 7.0:
ConstraintViolationListNormalizer
CustomNormalizer
DataUriNormalizer
DateIntervalNormalizer
DateTimeNormalizer
DateTimeZoneNormalizer
GetSetMethodNormalizer
JsonSerializableNormalizer
ObjectNormalizer
PropertyNormalizer