Feature: #82869 - Replace @inject with @TYPO3\CMS\Extbase\Annotation\Inject ¶
See Issue #82869
As a successor to the
annotation, the doctrine annotation
has been introduced.
/** * @TYPO3\CMS\Extbase\Annotation\Inject * @var Foo */ public $property;
Doctrine annotations are actual defined classes, therefore you can also use the annotation with a use statement.
/** * @Inject * @var Foo */ public $property;
Used annotations can also be aliased which the core will most likely be using a lot in the future.
use TYPO3\CMS\Extbase\Annotation as Extbase;
/** * @Extbase\Inject * @var Foo */ public $property;
In 9.x there is no actual impact. Both the simple
can be used side by side.
is deprecated in 9.x and will be removed in version 10.