[TASK] Respect the AsCommand `hidden` constructor argument
Symfony's AsCommand attribute encodes `hidden = true` into a trailing `|` for the name attribute. Drop that for our command list and mark the command as hidden in the command registry. Resolves: #102292 Related: #101567 Releases: main, 12.4 Change-Id: I6415e3f5525764aab336bab20432c032e0665632 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/81617 Tested-by:Chris Müller <typo3@krue.ml> Reviewed-by:
Garvin Hicking <gh@faktor-e.de> Tested-by:
Garvin Hicking <gh@faktor-e.de> Reviewed-by:
Benjamin Franzke <ben@bnf.dev> Tested-by:
core-ci <typo3@b13.com> Tested-by:
Benjamin Franzke <ben@bnf.dev> Tested-by:
Oliver Hader <oliver.hader@typo3.org> Reviewed-by:
Oliver Hader <oliver.hader@typo3.org> Reviewed-by:
Chris Müller <typo3@krue.ml>
Showing
- composer.json 1 addition, 0 deletionscomposer.json
- typo3/sysext/core/Configuration/Services.php 3 additions, 3 deletionstypo3/sysext/core/Configuration/Services.php
- typo3/sysext/core/Documentation/Changelog/12.4.x/Important-101567-UseSymfonyAttributeToAutoconfigureCliCommands.rst 6 additions, 7 deletions...-101567-UseSymfonyAttributeToAutoconfigureCliCommands.rst
- typo3/sysext/core/Tests/Functional/DependencyInjection/AsCommandAttributeTest.php 70 additions, 0 deletions...Functional/DependencyInjection/AsCommandAttributeTest.php
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_di/Classes/Command/HiddenTestCommand.php 32 additions, 0 deletions.../Extensions/test_di/Classes/Command/HiddenTestCommand.php
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_di/Classes/Command/VisibleTestCommand.php 32 additions, 0 deletions...Extensions/test_di/Classes/Command/VisibleTestCommand.php
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_di/Configuration/Services.yaml 8 additions, 0 deletions...l/Fixtures/Extensions/test_di/Configuration/Services.yaml
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_di/composer.json 19 additions, 0 deletions...ests/Functional/Fixtures/Extensions/test_di/composer.json
- typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_di/ext_emconf.php 21 additions, 0 deletions...sts/Functional/Fixtures/Extensions/test_di/ext_emconf.php
Please register or sign in to comment