-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DI] Remove AutowireExceptionPass #24398
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
ogizanagi
commented
Oct 2, 2017
Q | A |
---|---|
Branch? | master |
Bug fix? | no |
New feature? | yes |
BC breaks? | yes |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | #24290 |
License | MIT |
Doc PR | N/A |
{ | ||
@trigger_error('Calling AutowirePass::getAutowiringExceptions() is deprecated since Symfony 3.4 and will be removed in 4.0. Use Definition::getErrors() instead.', E_USER_DEPRECATED); | ||
|
||
return $this->autowiringExceptions; |
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.
the property should be removed also (same in the other pass)
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.
Good catch. Done.
@@ -22,6 +22,7 @@ CHANGELOG | |||
* removed support for setting and accessing private services in `Container` | |||
* removed support for setting pre-defined services in `Container` | |||
* removed support for case insensitivity of parameter names | |||
* removed `AutowireExceptionPass` and `AutowirePass::getAutowiringExceptions()`, use `Definition::addError()` and the `DefinitionErrorExceptionPass` instead |
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.
Not having anything in the 3.4 changelog about the deprecation looks weird to me. The changelog should be updated (in a separate branch)
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.
See #24399 :)
can be rebased now that #24399 is merged. |
Rebased |
Thank you @ogizanagi. |
This PR was merged into the 4.0-dev branch. Discussion ---------- [DI] Remove AutowireExceptionPass | Q | A | ------------- | --- | Branch? | master <!-- see comment below --> | Bug fix? | no | New feature? | yes <!-- don't forget to update src/**/CHANGELOG.md files --> | BC breaks? | yes | Deprecations? | no <!-- don't forget to update UPGRADE-*.md files --> | Tests pass? | yes | Fixed tickets | #24290 <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | N/A Commits ------- 2ada558 [DI] Remove AutowireExceptionPass