Skip to content

Conversation

lkolndeep
Copy link
Contributor

Some corrections and rephrasings concerning the documentation.

Some corrections and rephrasings concerning the documentation.
@carsonbot carsonbot added this to the 6.4 milestone Sep 5, 2025
@lkolndeep lkolndeep changed the title [Types of Injections] Corrections and rephrasings #21346 [Types of Injections] Corrections and rephrasings Sep 5, 2025
@@ -1,13 +1,13 @@
Types of Injection
==================

Making a class's dependencies explicit and requiring that they be injected
Making a class's dependencies explicit and requiring that they must injected
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Making a class's dependencies explicit and requiring that they must injected
Making a class's dependencies explicit and requiring that they must be injected

Copy link
Contributor Author

@lkolndeep lkolndeep Sep 6, 2025

Choose a reason for hiding this comment

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

@xabbuh I corrected it.

@@ -81,17 +81,17 @@ service container configuration:
Type hinting the injected object means that you can be sure that a suitable
dependency has been injected. By type-hinting, you'll get a clear error
immediately if an unsuitable dependency is injected. By type hinting
using an interface rather than a class you can make the choice of dependency
using an interface rather than a class you can make the choice of the dependency
Copy link
Member

Choose a reason for hiding this comment

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

This change looks wrong to me.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@xabbuh Finally, I deleted the "the".


There are several ways that the dependencies can be injected. Each injection
point has advantages and disadvantages to consider, as well as different
ways of working with them when using the service container.
ways of working with when using the service container.
Copy link
Member

Choose a reason for hiding this comment

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

This change looks wrong to me.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@xabbuh I finally put again them. It is ok.

into it is a good way of making a class more reusable, testable and decoupled
from others.
from the others.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
from the others.
from other parts of the code.

Maybe like this?

Copy link
Contributor Author

@lkolndeep lkolndeep Sep 6, 2025

Choose a reason for hiding this comment

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

@xabbuh Yes, I think it is nice. I replaced with your suggestion.

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.

3 participants