Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[FrameworkBundle] Add optional logger to cache pools#18631

Merged
nicolas-grekas merged 1 commit into
symfony:masterfrom
nicolas-grekas:cache-logger
Apr 27, 2016
Merged

[FrameworkBundle] Add optional logger to cache pools#18631
nicolas-grekas merged 1 commit into
symfony:masterfrom
nicolas-grekas:cache-logger

Conversation

@nicolas-grekas
Copy link
Copy Markdown
Member

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 -

<argument /> <!-- namespace -->
<argument /> <!-- default lifetime -->
<call method="setLogger">
<argument type="service" id="logger" on-invalid="ignore" />
Copy link
Copy Markdown
Member

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?

Copy link
Copy Markdown
Contributor

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?

Copy link
Copy Markdown
Member Author

@nicolas-grekas nicolas-grekas Apr 25, 2016

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.

Copy link
Copy Markdown
Member

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.

@javiereguiluz
Copy link
Copy Markdown
Member

👍

@nicolas-grekas nicolas-grekas merged commit db2c576 into symfony:master Apr 27, 2016
nicolas-grekas added a commit that referenced this pull request Apr 27, 2016
…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
@fabpot fabpot mentioned this pull request May 13, 2016
@nicolas-grekas nicolas-grekas deleted the cache-logger branch May 14, 2016 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants