Project

General

Profile

Actions

Bug #99128

closed

Symfony Command: Keyword 'new' breaks DependencyInjectionContainer file

Added by Philipp Parzer about 2 years ago. Updated about 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 #1

Updated by Chris Müller about 2 years ago

  • Category set to CLI
Actions #2

Updated by Benjamin Franzke about 2 years ago

  • Status changed from New to Needs Feedback

Thanks for reporting this issue.

With which v11 version did you experience this issue?
This should have been fixed as of v11.5.2,
see https://review.typo3.org/c/Packages/TYPO3.CMS/+/71606 and https://forge.typo3.org/issues/95607

Actions #3

Updated by Benjamin Franzke about 2 years ago

  • Is duplicate of Bug #95607: Keyword "new" leads to corrupt DependencyInjectionContainer_...php added
Actions #4

Updated by Philipp Parzer about 2 years ago

  • TYPO3 Version changed from 11 to 10

Can confirm - bug is fixed with 11.5.2
I am on version 10 LTS.

Actions #5

Updated by Georg Ringer about 2 years ago

  • Status changed from Needs Feedback to Closed

closing issue, nothing will be changed for 10 anymore I guess

Actions

Also available in: Atom PDF