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

[TASK] Mention method injection in services chapter #5267

Merged
merged 1 commit into from
Jan 31, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Documentation/PhpArchitecture/Services.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ repository service that accepts an identifier (e.g. the uid of a product) and re
a data object (the product).

Services may depend on other services and should use dependency injection to obtain
these dependencies, typically via :ref:`constructor injection <Constructor-injection>`.
these dependencies, typically using :ref:`constructor injection <Constructor-injection>`
for "leaf" classes and :ref:`method injection <method-injection>` for abstract classes.

In TYPO3, most classes are service classes unless they function as data objects to
transport data.
Expand Down
Loading