@@ -34,7 +34,7 @@ Potencier. Whenever a :ref:`service <cgl-services>` has a *service dependency* t
3434class, the technique of *dependency injection * should be used to satisfy that need. TYPO3
3535uses a Symfony component for dependency injection. The component is `PSR-11
3636<https://www.php-fig.org/psr/psr-11/> `_ compliant, and is used throughout
37- core and extensions to standardize the process of obtaining services dependencies.
37+ core and extensions to standardize the process of obtaining service dependencies.
3838
3939By default all API services shipped with the TYPO3 Core system extensions offer dependency
4040injection. The recommended usage is :ref: `constructor injection
@@ -130,9 +130,7 @@ a single cache file just once, and afterwards no expensive calculation is requir
130130for actual creation.
131131
132132Symfony based DI was implemented in TYPO3 v10 and usage of the Extbase
133- ObjectManager was discouraged. With TYPO3 v11 the core doesn't use the
134- ObjectManager any more. It is actively deprecated in v11 and thus leads to
135- 'deprecation' level log entries.
133+ ObjectManager was discouraged.
136134
137135The Extbase ObjectManager has been removed with TYPO3 v12. Making use of
138136Symfony DI integration continues. There
@@ -571,17 +569,9 @@ injecting values from :file:`ext_conf_templates.txt` files using the
571569This example demonstrates the combination of a service class with an alias and
572570a consumer utilizing this alias in an :php: `Autowire ` attribute.
573571
574- TYPO3 core provides several service aliases, but it does not add additional aliases
575- arbitrarily. Injecting state, as in the example above, makes services stateful,
576- which is undesirable unless the state does not change at runtime. Aliases for
577- services that act as shortcuts for factories, like the :php: `cache.runtime `
578- example, will only be added for services that are used very frequently.
579-
580- Service aliases also present backward compatibility challenges when modified.
581- To avoid excessive clutter, TYPO3 core limits the number of service aliases.
582- Developers needing aliases for core services can always add them in
583- instance-specific extensions. The inclusion of such aliases in TYPO3 core will
584- remain a case-by-case decision.
572+ The TYPO3 core provides a couple such service aliases, with the above ones being
573+ the most important ones for extension developers. TYPO3 core does
574+ :ref: `not arbitrarily add <service-aliases >` aliases.
585575
586576
587577.. _dependency-injection-installation-wide :
0 commit comments