-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Disable inlining deprecated services #23540
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
Conversation
if ($definition->isDeprecated()) { | ||
return false; | ||
} | ||
|
||
if ($definition->isPublic() || $definition->isLazy()) { |
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.
Why not add || isDeprecated()
here?
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.
Right. Fixed.
@@ -891,6 +891,25 @@ public function testAutowiring() | ||
|
||
$this->assertEquals('a', (string) $container->getDefinition('b')->getArgument(0)); | ||
} | ||
|
||
/** | ||
* @group legacy |
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.
As this test and the other one should not be removed in 4.0, I suggest to add a comment to make it clear.
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.
Added.
Thank you @alekitto. |
This PR was merged into the 2.8 branch. Discussion ---------- Disable inlining deprecated services | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #23536 | License | MIT Deprecation errors are not triggered for inlined services. Disabling inlining for those services will fix this issue. Commits ------- 6ab8ca0 disable inlining deprecated services
Deprecation errors are not triggered for inlined services.
Disabling inlining for those services will fix this issue.