-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Update service_container.rst #12985
Conversation
1cb10a0
to
aa595f4
Compare
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.
Thank you for that PR, great work so far!
The PHP config needs more changes though, could you please take care of it too?
1081fc0
to
a63e7bd
Compare
@HeahDude ContainerConfiguration used instead of register calls 🙂 |
e85f57d
to
380f946
Compare
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.
A final round of comments, thanks again!
@HeahDude Requested changes done :) |
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.
Looks very good, thanks a lot for your work on this!
97b1d0b
to
b274029
Compare
These are very nice changes! Thanks Laurent. |
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
…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
From Symfony 4.0, there is no
public: false
in_defaults
anymore. As I understand it's the default value (true
) of the propertyprivate
in Definition class + the ResolvePrivatesPass compiler pass that make services as private by default.