Skip to content
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

Make channel selection work with autowired arguments #254

Merged
merged 1 commit into from
Mar 5, 2018

Conversation

stof
Copy link
Member

@stof stof commented Mar 2, 2018

This only works on Symfony 3.4+, not on Symfony 3.3, but 3.3 is EOL already so this is fine.

Closes #218
Closes #228
Replaces #251

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great :)

@stof
Copy link
Member Author

stof commented Mar 2, 2018

While discussing with @nicolas-grekas, we realized that the whole logic we have to handle the logger references could be replaced by another binding once we drop support for Symfony < 3.4 (which will wait until Symfony 2.8 reaches EOL at the end of the year as we want to keep support for it until then)

This only works on Symfony 3.4+, not on Symfony 3.3, but 3.3 is EOL already
so this is fine.
@stof stof merged commit 457032a into symfony:master Mar 5, 2018
stof added a commit that referenced this pull request Mar 5, 2018
This PR was merged into the 3.x-dev branch.

Discussion
----------

Make channel selection work with autowired arguments

This only works on Symfony 3.4+, not on Symfony 3.3, but 3.3 is EOL already so this is fine.

Closes #218
Closes #228
Replaces #251

Commits
-------

457032a Make channel selection work with autowired arguments
@stof stof deleted the channel_autowiring branch March 5, 2018 14:36
fabpot added a commit to symfony/symfony that referenced this pull request May 17, 2018
…rekas)

This PR was merged into the 3.4 branch.

Discussion
----------

[DI] Allow defining bindings on ChildDefinition

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Spotted by @stof while trying to put symfony/monolog-bundle#254 into practice.
Binding log channels doesn't work because we put this artificial restriction in place.
Let's allow ChildDefinition to have bindings (but only at the DI extension level, loaders still forbid defining them at their level because of the parent vs _defaults ambiguity.)

Commits
-------

1c3b105 [DI] Allow defining bindings on ChildDefinition
symfony-splitter pushed a commit to symfony/dependency-injection that referenced this pull request May 17, 2018
…rekas)

This PR was merged into the 3.4 branch.

Discussion
----------

[DI] Allow defining bindings on ChildDefinition

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Spotted by @stof while trying to put symfony/monolog-bundle#254 into practice.
Binding log channels doesn't work because we put this artificial restriction in place.
Let's allow ChildDefinition to have bindings (but only at the DI extension level, loaders still forbid defining them at their level because of the parent vs _defaults ambiguity.)

Commits
-------

1c3b1055df [DI] Allow defining bindings on ChildDefinition
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants