-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DI] [FrameworkBundle] Add LoggerAwareInterface to auto configuration #28176
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
@@ -8,6 +8,7 @@ CHANGELOG | |||
* Allowed configuring PDO-based cache pools via a new `cache.adapter.pdo` abstract service | |||
* Deprecated auto-injection of the container in AbstractController instances, register them as service subscribers instead | |||
* Deprecated processing of services tagged `security.expression_language_provider` in favor of a new `AddExpressionLanguageProvidersPass` in SecurityBundle. | |||
* Added auto-configured method call for `LoggerAwareinterface` instances. |
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.
Enabled autoconfiguration for LoggerAwareInterface
?
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.
Fixed!
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.
(with minor comment)
@@ -8,6 +8,7 @@ CHANGELOG | |||
* Allowed configuring PDO-based cache pools via a new `cache.adapter.pdo` abstract service | |||
* Deprecated auto-injection of the container in AbstractController instances, register them as service subscribers instead | |||
* Deprecated processing of services tagged `security.expression_language_provider` in favor of a new `AddExpressionLanguageProvidersPass` in SecurityBundle. | |||
* Enabled autoconfiguration for `LoggerAwareInterface` |
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.
actually, I'd suggest to use Psr\Log\LoggerAwareInterface
explicitly here
2d08147
to
afda3c8
Compare
…o configuration (GaryPEGEOT) This PR was squashed before being merged into the 4.2-dev branch (closes #28176). Discussion ---------- [DI] [FrameworkBundle] Add LoggerAwareInterface to auto configuration | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Add the method call `setLogger` for every service implementing `Psr\Log\LoggerAwareInterface` Commits ------- afda3c8 [DI] [FrameworkBundle] Add LoggerAwareInterface to auto configuration
Docs issue: symfony/symfony-docs#10188 Let's please be careful to at least require a docs issue for new features :) |
Add the method call
setLogger
for every service implementingPsr\Log\LoggerAwareInterface