Skip to content

Update service_container.rst #12985

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 15, 2020
Merged

Update service_container.rst #12985

merged 1 commit into from
Feb 15, 2020

Conversation

l-vo
Copy link
Contributor

@l-vo l-vo commented Jan 25, 2020

From Symfony 4.0, there is no public: false in _defaults anymore. As I understand it's the default value (true) of the property private in Definition class + the ResolvePrivatesPass compiler pass that make services as private by default.

Copy link
Contributor

@HeahDude HeahDude left a comment

Choose a reason for hiding this comment

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

Thank you for that PR, great work so far!

The PHP config needs more changes though, could you please take care of it too?

@l-vo
Copy link
Contributor Author

l-vo commented Feb 10, 2020

@HeahDude ContainerConfiguration used instead of register calls 🙂

@l-vo l-vo force-pushed the patch-4 branch 2 times, most recently from e85f57d to 380f946 Compare February 10, 2020 17:50
Copy link
Contributor

@HeahDude HeahDude left a comment

Choose a reason for hiding this comment

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

A final round of comments, thanks again!

@l-vo
Copy link
Contributor Author

l-vo commented Feb 13, 2020

@HeahDude Requested changes done :)

Copy link
Contributor

@HeahDude HeahDude left a comment

Choose a reason for hiding this comment

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

Looks very good, thanks a lot for your work on this!

@javiereguiluz
Copy link
Member

These are very nice changes! Thanks Laurent.

javiereguiluz added a commit that referenced this pull request Feb 15, 2020
This PR was squashed before being merged into the 4.4 branch (closes #12985).

Discussion
----------

Update service_container.rst

From Symfony 4.0, there is no `public: false` in `_defaults` anymore. As I understand it's the default value (`true`) of the property `private` in [Definition class](https://github.com/symfony/symfony/blob/4.0/src/Symfony/Component/DependencyInjection/Definition.php) + the [ResolvePrivatesPass](
https://github.com/symfony/symfony/blob/4.0/src/Symfony/Component/DependencyInjection/Compiler/ResolvePrivatesPass.php) compiler pass that make services as private by default.

Commits
-------

b274029 Update service_container.rst
@javiereguiluz javiereguiluz merged commit b274029 into symfony:4.4 Feb 15, 2020
@l-vo l-vo deleted the patch-4 branch February 16, 2020 09:56
OskarStark added a commit that referenced this pull request Feb 19, 2020
…hDude)

This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[DependencyInjection] Fixed public service use case

Supersedes #12977 which was merged in 5.0, this time using a different approach and targeting 4.4.

Fixes #12978 and complements #12985.

Commits
-------

3694980 [DependencyInjection] Fixed public service use case
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