Issue Bug Rejected

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

Patrik Lang 12/16/21, 13:38 updated 01/19/22, 07:16

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

Reviews 0

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