2.2 KiB
2.2 KiB
UPGRADE FROM 4.0 to 4.1
Config
- Implementing
ParentNodeDefinitionInterface
without thegetChildNodeDefinitions()
method is deprecated.
EventDispatcher
- The
TraceableEventDispatcherInterface
has been deprecated.
FrameworkBundle
- A
RouterInterface
that does not implement theWarmableInterface
is deprecated. - The
RequestDataCollector
class has been deprecated. Use theSymfony\Component\HttpKernel\DataCollector\RequestDataCollector
class instead.
HttpFoundation
-
Passing the file size to the constructor of the
UploadedFile
class is deprecated. -
The
getClientSize()
method of theUploadedFile
class is deprecated. UsegetSize()
instead.
Security
- The
ContextListener::setLogoutOnUserChange()
method is deprecated. - Using the
AdvancedUserInterface
is now deprecated. To use the existing functionality, create a custom user-checker based on theSymfony\Component\Security\Core\User\UserChecker
.
SecurityBundle
- The
logout_on_user_change
firewall option is deprecated. - The
SecurityUserValueResolver
class is deprecated, useSymfony\Component\Security\Http\Controller\UserValueResolver
instead.
Translation
- The
FileDumper::setBackup()
method is deprecated. - The
TranslationWriter::disableBackup()
method is deprecated.
TwigBundle
- Deprecated relying on the default value (
false
) of thetwig.strict_variables
configuration option. You should use%kernel.debug%
explicitly instead, which will be the new default in 5.0.
Validator
- The
Email::__construct()
'strict' property is deprecated. Use 'mode'=>"strict" instead. - Calling
EmailValidator::__construct()
method with a boolean parameter is deprecated, useEmailValidator("strict")
instead. - Deprecated the
checkDNS
anddnsMessage
options of theUrl
constraint.
Workflow
- Deprecated the
add
method in favor of theaddWorkflow
method inWorkflow\Registry
. - Deprecated
SupportStrategyInterface
in favor ofWorkflowSupportStrategyInterface
. - Deprecated the class
ClassInstanceSupportStrategy
in favor of the classInstanceOfSupportStrategy
.