Project

General

Profile

Actions

Bug #96370

closed

@TYPO3\CMS\Extbase\Annotation\Inject not working with Services.yaml in TYPO3 10.4.21

Added by Patrik Lang over 2 years ago. Updated over 2 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2021-12-16
Due date:
% Done:

0%

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

Description

Hi, when I register a service through Services.yaml the dependency injection with @TYPO3\CMS\Extbase\Annotation\Inject in my controllers aren't working anymore.

I have removed and changed parts of the Services.yaml and figured out that the namespace to Classes folder configuration causes this error.

Removing this configuration snippet results in working dependency injection:

Vendor\Namespace\:
resource: '../Classes/*'

So I guess there is a bug leading to this.

For now I got the workaround by injecting the needed classes with inject methods, but this should work anyway

Actions

Also available in: Atom PDF