-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Improved the docs for the DependencyInjection component #6504
Conversation
javiereguiluz
commented
Apr 20, 2016
Q | A |
---|---|
Doc fix? | no |
New docs? | yes |
Applies to | 2.3+ |
Fixed tickets | - |
First up is the class of a definition, this is the class of the object returned | ||
when the service is requested from the container. | ||
The first optional argument of the ``Definition`` class is the fully qualified | ||
class name of the object returned when the service is get from the container:: |
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.
[...] is requested [...]
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.
or [...] is fetched [...]
I've fixed everything and made some rewords. Ready for another review. Thanks! |
.. tip:: | ||
|
||
Registering service definitions is so common that the container provides a | ||
shortcut method called ``register()``: |
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.
missing the second colon
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.
Fixed. Thanks.
👍 |
@@ -4,6 +4,9 @@ | |||
Working with Container Service Definitions | |||
========================================== | |||
|
|||
Service definitions are the instructions followed by the container to build a |
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.
Maybe "[...] are the instructions describing how the container should build a service. They are not the actual services used by our applications" ?
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.
Mucha better. Thanks
These old components articles are the ones that don't recieve a lot of attention, thanks for taking care of this one! |
…javiereguiluz) This PR was squashed before being merged into the 2.3 branch (closes #6504). Discussion ---------- Improved the docs for the DependencyInjection component | Q | A | ------------- | --- | Doc fix? | no | New docs? | yes | Applies to | 2.3+ | Fixed tickets | - Commits ------- 221ddf7 Improved the docs for the DependencyInjection component