Project

General

Profile

Actions

Bug #99128

closed

Symfony Command: Keyword 'new' breaks DependencyInjectionContainer file

Added by Philipp Parzer about 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
CLI
Target version:
-
Start date:
2022-11-18
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #95607: Keyword "new" leads to corrupt DependencyInjectionContainer_...phpClosedBenjamin Franzke2021-10-12

Actions
Actions

Also available in: Atom PDF