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

Improved the docs for the DependencyInjection component #6504

Closed
wants to merge 5 commits into from

Conversation

javiereguiluz
Copy link
Member

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::
Copy link
Member

Choose a reason for hiding this comment

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

[...] is requested [...]

Copy link
Member

Choose a reason for hiding this comment

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

or [...] is fetched [...]

@javiereguiluz
Copy link
Member Author

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()``:
Copy link
Member

Choose a reason for hiding this comment

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

missing the second colon

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed. Thanks.

@xabbuh
Copy link
Member

xabbuh commented Apr 30, 2016

👍

@@ -4,6 +4,9 @@
Working with Container Service Definitions
==========================================

Service definitions are the instructions followed by the container to build a
Copy link
Member

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" ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Mucha better. Thanks

@wouterj
Copy link
Member

wouterj commented May 5, 2016

These old components articles are the ones that don't recieve a lot of attention, thanks for taking care of this one!

wouterj added a commit that referenced this pull request May 5, 2016
…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
@wouterj wouterj closed this May 5, 2016
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