- Add argument
$serverParameters
toAbstractBrowser::click()
andAbstractBrowser::clickLink()
- [BC break]
EarlyExpirationHandler
no longer implementsMessageHandlerInterface
, rely onAsMessageHandler
instead
-
Deprecate
ContainerAwareInterface
andContainerAwareTrait
, use dependency injection insteadBefore
class MailingListService implements ContainerAwareInterface { use ContainerAwareTrait; public function sendMails() { $mailer = $this->container->get('mailer'); // ... } }
After
use Symfony\Component\Mailer\MailerInterface; class MailingListService { public function __construct( private MailerInterface $mailer, ) { } public function sendMails() { $mailer = $this->mailer; // ... } }
To fetch services lazily, you can use a service subscriber.
- Deprecate
DbalLogger
, use a middleware instead - Deprecate not constructing
DoctrineDataCollector
with an instance ofDebugDataHolder
- Deprecate
DoctrineDataCollector::addLogger()
, use aDebugDataHolder
instead - Deprecate
ContainerAwareLoader
, use dependency injection in your fixtures instead
- Add argument
$default
toCrawler::attr()
- [BC break]
FlattenExceptionNormalizer
no longer implementsContextAwareNormalizerInterface
- Deprecate using
DateTime
orDateTimeImmutable
model data with a different timezone than configured with themodel_timezone
option inDateType
,DateTimeType
, andTimeType
- Deprecate
PostSetDataEvent::setData()
, usePreSetDataEvent::setData()
instead - Deprecate
PostSubmitEvent::setData()
, usePreSubmitDataEvent::setData()
orSubmitDataEvent::setData()
instead
- [BC break] Add native return type to
Translator
and toApplication::reset()
- Deprecate the integration of Doctrine annotations, either uninstall the
doctrine/annotations
package or disable the integration by settingframework.annotations
tofalse
- Deprecate not setting the
framework.handle_all_throwables
config option; it will default totrue
in 7.0 - Deprecate not setting the
framework.php_errors.log
config option; it will default totrue
in 7.0 - Deprecate not setting the
framework.session.cookie_secure
config option; it will default toauto
in 7.0 - Deprecate not setting the
framework.session.cookie_samesite
config option; it will default tolax
in 7.0 - Deprecate not setting either
framework.session.handler_id
orsave_path
config options;handler_id
will default to null in 7.0 ifsave_path
is not set and tosession.handler.native_file
otherwise - Deprecate not setting the
framework.uid.default_uuid_version
config option; it will default to7
in 7.0 - Deprecate not setting the
framework.uid.time_based_uuid_version
config option; it will default to7
in 7.0 - Deprecate not setting the
framework.validation.email_validation_mode
config option; it will default tohtml5
in 7.0 - Deprecate
framework.validation.enable_annotations
, useframework.validation.enable_attributes
instead - Deprecate
framework.serializer.enable_annotations
, useframework.serializer.enable_attributes
instead
- [BC break] Make
HeaderBag::getDate()
,Response::getDate()
,getExpires()
andgetLastModified()
return aDateTimeImmutable
- [BC break]
BundleInterface
no longer extendsContainerAwareInterface
- [BC break] Add native return types to
TraceableEventDispatcher
and toMergeExtensionConfigurationPass
- Deprecate
Kernel::stripComments()
- Deprecate
StopWorkerOnSignalsListener
in favor of using theSignalableCommandInterface
- [BC break] Add native return type to
Logger::clear()
and toDebugProcessor::clear()
- Remove
ArgumentValueResolverInterface
fromPsrServerRequestResolver
- [BC break] Add native return type to
AnnotationClassLoader::setResolver()
- Deprecate Doctrine annotations support in favor of native attributes
- Deprecate passing an annotation reader as first argument to
AnnotationClassLoader
(new signature:__construct(?string $env = null)
)
- [BC break]
UserValueResolver
no longer implementsArgumentValueResolverInterface
- [BC break] Make
PersistentToken
immutable - Deprecate accepting only
DateTime
forTokenProviderInterface::updateToken()
, useDateTimeInterface
instead
- Deprecate the
require_previous_session
config option. Setting it has no effect anymore
- Deprecate Doctrine annotations support in favor of native attributes
- Deprecate passing an annotation reader to the constructor of
AnnotationLoader
- The component is deprecated and will be removed in 7.0, use Twig instead
- Deprecate Doctrine annotations support in favor of native attributes
- Deprecate
ValidatorBuilder::setDoctrineAnnotationReader()
- Deprecate
ValidatorBuilder::addDefaultDoctrineAnnotationReader()
- Deprecate
ValidatorBuilder::enableAnnotationMapping()
, useValidatorBuilder::enableAttributeMapping()
instead - Deprecate
ValidatorBuilder::disableAnnotationMapping()
, useValidatorBuilder::disableAttributeMapping()
instead - Deprecate
AnnotationLoader
, useAttributeLoader
instead
- Deprecate
GuardEvent::getContext()
method that will be removed in 7.0