This PR was squashed before being merged into the 4.1-dev branch (closes #26445).
Discussion
----------
[Serializer] Ignore comments when decoding XML
| Q | A
| ------------- | ---
| Branch? | master
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | N/A
| License | MIT
| Doc PR | N/A
Previously, if the first line of XML was a comment, that would be used as the root node of the decoded XML. This work strips comments from decoded XML by default, but also allows for customizing which XML node types are ignored during decoding. The first two commits in this PR contain tests only to prove the existence of this "bug".
Commits
-------
f6760d3899
[Serializer] Ignore comments when decoding XML
3.8 KiB
3.8 KiB
UPGRADE FROM 4.0 to 4.1
Config
- Implementing
ParentNodeDefinitionInterface
without thegetChildNodeDefinitions()
method is deprecated.
Console
- Deprecated the
setCrossingChar()
method in favor of thesetDefaultCrossingChar()
method inTableStyle
.
EventDispatcher
- The
TraceableEventDispatcherInterface
has been deprecated.
FrameworkBundle
-
Deprecated
bundle:controller:action
andservice:action
syntaxes to reference controllers. UseserviceOrFqcn::method
instead whereserviceOrFqcn
is either the service ID when using controllers as services or the FQCN of the controller.Before:
bundle_controller: path: / defaults: _controller: FrameworkBundle:Redirect:redirect service_controller: path: / defaults: _controller: app.my_controller:myAction
After:
bundle_controller: path: / defaults: _controller: Symfony\Bundle\FrameworkBundle\Controller\RedirectController::redirectAction service_controller: path: / defaults: _controller: app.my_controller::myAction
-
Deprecated
Symfony\Bundle\FrameworkBundle\Controller\ControllerNameParser
-
Warming up a router in
RouterCacheWarmer
that does not implement theWarmableInterface
is deprecated and will not be supported anymore in 5.0. -
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. - Deprecated
Symfony\Component\HttpFoundation\Request::getSession()
when no session has been set. UseSymfony\Component\HttpFoundation\Request::hasSession()
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
. AuthenticationUtils::getLastUsername()
now always returns a string.
SecurityBundle
- The
logout_on_user_change
firewall option is deprecated. - The
switch_user.stateless
firewall option is deprecated, use thestateless
option instead. - The
SecurityUserValueResolver
class is deprecated, useSymfony\Component\Security\Http\Controller\UserValueResolver
instead.
Serializer
- Decoding XML with
XmlEncoder
now ignores comment node types by default.
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
. - Deprecated passing the workflow name as 4th parameter of
Event
constructor in favor of the workflow itself.