Issue Bug Closed

#99128Symfony Command: Keyword 'new' breaks DependencyInjectionContainer file

Philipp Parzer 11/18/22, 09:02 updated 11/23/22, 07:11

Description

Given following Symfony Command configuration in the file EXT:test/Configuration/Services.yaml:

VENDOR\Test\Command\RegistrationCommand:
    tags:
      - name: 'console.command'
        command: 'test:registration'
        description: 'Checks new User registrations and logins'

The keyword new in the Command description breaks the DependencyInjectionContainer file:

$instance->setDescription('Checks \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstanceForDi(User registrations and logins');

cause of this is following method:

sysext/core/Classes/DependencyInjection/ContainerBuilder.php :: dumpContainer

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.