Project

General

Profile

Actions

Bug #102858

closed

TYPO3 core >=12.4.9 breaks on disabled composer-plugin typo3/class-alias-loader

Added by Josef Glatz 3 months ago. Updated 3 months ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
-
Start date:
2024-01-18
Due date:
% Done:

100%

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

Description

Problem/Description

Following scenario:

- new TYPO3 project
- based on TYPO3 core >= v12.4.9
- without any deprecated code (yeah, it's possible)
- throws the following error which makes the instance not useable anymore:

Uncaught TYPO3 Exception Attribute class "TYPO3\CMS\Backend\Attribute\Controller" not found
thrown in file /var/www/html/vendor/symfony/dependency-injection/Compiler/AttributeAutoconfigurationPass.php
in line 100

It looks like this is a regression which was introduced within the backport of #102631 (Introduction of #[AsController] attribute)

ToDo(s)

The TYPO3 core should/must run without the need of enabled typo3/class-alias-loader composer-plugin.

Suggestion: re-add `TYPO3\CMS\Backend\Attribute\Controller` to have a longer transitionphase.

Furthermore, I don't know whether it would be better to see the use of the composer plugin typo3/class-alias-loader as mandatory in TYPO3 composer projects.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #102631: Introduce AsControllerClosedOliver Bartsch2023-12-08

Actions
Actions #1

Updated by Benjamin Franzke 3 months ago

  • Status changed from New to Accepted
Actions #2

Updated by Benjamin Franzke 3 months ago

Regression introduced with

82152: [FEATURE] Introduce AsController attribute for auto configuration | https://review.typo3.org/c/Packages/TYPO3.CMS/+/82152

Actions #3

Updated by Benjamin Franzke 3 months ago

Actions #4

Updated by Gerrit Code Review 3 months ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/82507

Actions #5

Updated by Gerrit Code Review 3 months ago

Patch set 2 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/82507

Actions #6

Updated by Oliver Bartsch 3 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF