-
-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix all deprecations #1634
Fix all deprecations #1634
Conversation
@greg0ire I might need some help to figure out how to resolve this one
I had a look at doctrine/orm#6728 and figured out that we seem to be using https://github.com/doctrine/orm/blob/2.14.x/lib/Doctrine/ORM/Mapping/Driver/SimplifiedXmlDriver.php#L23 So I cannot really get rid of this deprecation easily, or? |
54b0acd
to
f5756ac
Compare
Well, looks like the ORM forgot to update the constructor of the SimplifiedXmlDriver to expose the boolean argument added in the parent |
@Kern046 can you please take a look at this simplified xml driver stuff? I'm AFK now and for a few more days I think. |
@@ -59,7 +59,7 @@ private function updateSecondLevelCache(ContainerBuilder $container, Definition | |||
$factoryDefinition = $methodCall[1][0]; | |||
assert($factoryDefinition instanceof Definition); | |||
$aliasId = (string) $factoryDefinition->getArgument(1); | |||
$this->wrapIfNecessary($container, $aliasId, (string) $container->getAlias($aliasId), false); | |||
$this->wrapIfNecessary($container, $aliasId, (string) $container->getAlias($aliasId), true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
second level also supports PSR6 caches since ORM 2.11 (which we require). See doctrine/orm#9322
89d0929
to
6344ef9
Compare
0be7634
to
208310a
Compare
208310a
to
988a408
Compare
// enable validation | ||
$args[] = true; | ||
|
||
$xmlDriverDef->setArguments($args); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stof can we move this to symfony/doctrine-bridge instead? I mean that bridge is the one that specifies constructor args there. I am just not sure if symfony folks are ok to enable strict xml validation with symfony 6.3. If not, we will do it here but end result will be same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's be pragmatic, bite a bullet and merge this as is instead of moving code around
All deprecations are fixed now 😊