Bug #50909

Dependency injection for imported namespaces fails for abstract classes

Added by Philipp Maier about 8 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Should have
Category:
Reflection
Target version:
-
Start date:
2013-08-08
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

Description

Within abstract classes, the @var annotation still must be fully qualified.

Working:

abstract class SomeClass {

        ...

    /**
     * @var \TYPO3\Flow\Security\Context
     * @Flow\Inject
     */
    protected $securityContext;

Not working:

use TYPO3\Flow\Security\Context;

abstract class SomeClass {

        ...

    /**
     * @var Context
     * @Flow\Inject
     */
    protected $securityContext;


Related issues

Related to TYPO3.Flow - Bug #46008: Reflection should resolve relative namespacesResolvedSebastian Kurfuerst2013-03-04

Actions
Related to TYPO3.Flow - Bug #57034: Dependency injection for imported namespaces fails for collection classesResolvedBastian Waidelich2014-03-18

Actions

Also available in: Atom PDF