[TASK] Introduce Symfony attribute based registration of CLI commands
CLI commands had to be registered in the extensions `Services.yaml` file with the `console.command` tag. This change enables automatic cli command registration with the tag `console.command` by using the existing `\Symfony\Component\Console\Attribute\AsCommand` symfony PHP attribute. Thus providing an additional and simpler way, without deprecating or enforcing to change already existing registrations. Resolves: #101567 Releases: main, 12.4 Change-Id: I24edf5ad2291ab5b26e3023f13ef490b88dcc98c Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/81559 Tested-by:Stefan Bürk <stefan@buerk.tech> Tested-by:
core-ci <typo3@b13.com> Reviewed-by:
Stefan Bürk <stefan@buerk.tech>
Showing
- typo3/sysext/core/Configuration/Services.php 18 additions, 0 deletionstypo3/sysext/core/Configuration/Services.php
- typo3/sysext/core/Documentation/Changelog/12.4.x/Important-101567-UseSymfonyAttributeToAutoconfigureCliCommands.rst 62 additions, 0 deletions...-101567-UseSymfonyAttributeToAutoconfigureCliCommands.rst
Please register or sign in to comment