Skip to content

[FrameworkBundle] Add missing autowiring aliases for common interfaces #21517

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

Merged
merged 1 commit into from
Feb 3, 2017

Conversation

chalasr
Copy link
Member

@chalasr chalasr commented Feb 2, 2017

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR n/a

@nicolas-grekas
Copy link
Member

should we add LoggerInterface also? or do we consider it should be done on monolog bundle?

@chalasr
Copy link
Member Author

chalasr commented Feb 3, 2017

do we consider it should be done on monolog bundle?

Not sure but I would say yes so each bundle is responsible for supporting autowiring for its services

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.

👍

@fabpot
Copy link
Member

fabpot commented Feb 3, 2017

Thank you @chalasr.

@fabpot fabpot merged commit c3a2141 into symfony:master Feb 3, 2017
fabpot added a commit that referenced this pull request Feb 3, 2017
…ommon interfaces (chalasr)

This PR was merged into the 3.3-dev branch.

Discussion
----------

[FrameworkBundle] Add missing autowiring aliases for common interfaces

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

Commits
-------

c3a2141 [FrameworkBundle] Add more autowiring aliases

return array(
new FrameworkBundle(),
new SecurityBundle(),
Copy link
Member

Choose a reason for hiding this comment

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

Why is this test located in the FrameworkBundle and not in the SecurityBundle?

Copy link
Member Author

Choose a reason for hiding this comment

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

@xabbuh I thought about that but it was simpler to integrate a new test here than duplicating the whole test case on the SecurityBundle. Does it hurt?

Copy link
Member

Choose a reason for hiding this comment

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

I missed that, but indeed, that's not good. @chalasr Can you move it to SecurityBundle?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok I'll do

Copy link
Member Author

Choose a reason for hiding this comment

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

See #21522

@chalasr
Copy link
Member Author

chalasr commented Feb 3, 2017

@nicolas-grekas See symfony/monolog-bundle#203 for LoggerInterface

@stof
Copy link
Member

stof commented Feb 3, 2017

I would also ensure that translator can be autowired properly (we also decorate it in dev)

fabpot added a commit that referenced this pull request Feb 3, 2017
This PR was merged into the 3.3-dev branch.

Discussion
----------

[SecurityBundle] Add AutowiringTypesTest

| Q             | A
| ------------- | ---
| Branch?       | master
| Tests pass?   | yes
| Fixed tickets | #21517 (comment)
| License       | MIT

Commits
-------

d1001d4 [SecurityBundle] Add AutowiringTypesTest
@fabpot fabpot mentioned this pull request May 1, 2017
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.

6 participants