[TASK] Use PHP attributes more often to configure DI
Using PHP attributes to configure DI within classes directly is more easy to understand since developers don't need to constantly look up DI configuration Services.yaml files, but have everything in one place. The patch switches all classes that previously used '@cache.xy' to get a specific cache injected to an `Autowire` attribute. Resolves: #103921 Releases: main Change-Id: I16b064242cdbc2bbcfbed89700c97afac012fdf8 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84406 Tested-by:Benjamin Franzke <ben@bnf.dev> Reviewed-by:
Stefan Bürk <stefan@buerk.tech> Reviewed-by:
Benjamin Franzke <ben@bnf.dev> Tested-by:
core-ci <typo3@b13.com> Tested-by:
Stefan Bürk <stefan@buerk.tech>
Showing
- typo3/sysext/backend/Classes/Backend/Avatar/Avatar.php 4 additions, 0 deletionstypo3/sysext/backend/Classes/Backend/Avatar/Avatar.php
- typo3/sysext/backend/Classes/Middleware/ContentSecurityPolicyHeaders.php 7 additions, 5 deletions...ckend/Classes/Middleware/ContentSecurityPolicyHeaders.php
- typo3/sysext/backend/Configuration/Services.yaml 0 additions, 9 deletionstypo3/sysext/backend/Configuration/Services.yaml
- typo3/sysext/core/Classes/Configuration/Extension/ExtLocalconfFactory.php 7 additions, 3 deletions...e/Classes/Configuration/Extension/ExtLocalconfFactory.php
- typo3/sysext/core/Classes/Configuration/Extension/ExtTablesFactory.php 7 additions, 3 deletions...core/Classes/Configuration/Extension/ExtTablesFactory.php
- typo3/sysext/core/Classes/Configuration/Tca/TcaFactory.php 8 additions, 4 deletionstypo3/sysext/core/Classes/Configuration/Tca/TcaFactory.php
- typo3/sysext/core/Classes/DataHandling/SoftReference/SoftReferenceParserFactory.php 8 additions, 13 deletions...DataHandling/SoftReference/SoftReferenceParserFactory.php
- typo3/sysext/core/Classes/ExpressionLanguage/ProviderConfigurationLoader.php 9 additions, 4 deletions...lasses/ExpressionLanguage/ProviderConfigurationLoader.php
- typo3/sysext/core/Classes/Page/ImportMapFactory.php 5 additions, 0 deletionstypo3/sysext/core/Classes/Page/ImportMapFactory.php
- typo3/sysext/core/Classes/Page/PageRenderer.php 2 additions, 1 deletiontypo3/sysext/core/Classes/Page/PageRenderer.php
- typo3/sysext/core/Classes/Service/MarkerBasedTemplateService.php 8 additions, 3 deletions...ysext/core/Classes/Service/MarkerBasedTemplateService.php
- typo3/sysext/core/Classes/TypoScript/PageTsConfigFactory.php 9 additions, 5 deletionstypo3/sysext/core/Classes/TypoScript/PageTsConfigFactory.php
- typo3/sysext/core/Classes/TypoScript/UserTsConfigFactory.php 9 additions, 5 deletionstypo3/sysext/core/Classes/TypoScript/UserTsConfigFactory.php
- typo3/sysext/core/Configuration/Services.yaml 4 additions, 56 deletionstypo3/sysext/core/Configuration/Services.yaml
- typo3/sysext/dashboard/Classes/Widgets/RssWidget.php 4 additions, 2 deletionstypo3/sysext/dashboard/Classes/Widgets/RssWidget.php
- typo3/sysext/dashboard/Configuration/Backend/DashboardWidgets.yaml 0 additions, 2 deletions...ext/dashboard/Configuration/Backend/DashboardWidgets.yaml
- typo3/sysext/dashboard/Documentation/Configuration/WidgetRegistration.rst 0 additions, 2 deletions...hboard/Documentation/Configuration/WidgetRegistration.rst
- typo3/sysext/dashboard/Documentation/Developer/MakeRefreshable.rst 0 additions, 1 deletion...ext/dashboard/Documentation/Developer/MakeRefreshable.rst
- typo3/sysext/dashboard/Documentation/Widgets/RssWidget.rst 0 additions, 6 deletionstypo3/sysext/dashboard/Documentation/Widgets/RssWidget.rst
- typo3/sysext/extbase/Classes/Configuration/BackendConfigurationManager.php 5 additions, 0 deletions...ase/Classes/Configuration/BackendConfigurationManager.php
Please register or sign in to comment