-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle] Add optional logger to cache pools #18631
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
nicolas-grekas
commented
Apr 25, 2016
Q | A |
---|---|
Branch? | 3.1 |
Bug fix? | no |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | - |
License | MIT |
Doc PR | - |
b070ab2
to
db2c576
Compare
<argument /> <!-- namespace --> | ||
<argument /> <!-- default lifetime --> | ||
<call method="setLogger"> | ||
<argument type="service" id="logger" on-invalid="ignore" /> |
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.
Does on-invalid="ignore"
make sense?
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.
Isn't that the way to say "this service does not need to exist", i.e. it is optional?
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.
on-invalid="ignore"
is mandatory because the tag is not handled by the FrameworkBundle but by the MonologBundle, which is not a hard dep of it. This attribute (or its "null" variant) is used everywhere monlog.logger
already is.
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.
Ah yeah, you're right.
👍 |
…nicolas-grekas) This PR was merged into the 3.1-dev branch. Discussion ---------- [FrameworkBundle] Add optional logger to cache pools | Q | A | ------------- | --- | Branch? | 3.1 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- db2c576 [FrameworkBundle] Add optional logger to cache pools