Feature: #83167 - Replace @validate with @TYPO3\CMS\Extbase\Annotation\Validate¶
See Issue #83167
As a successor to the
@validate annotation, the doctrine annotation
@TYPO3\CMS\Extbase\Annotation\Validate has been introduced.
/** * @TYPO3\CMS\Extbase\Annotation\Validate * @var Foo */ public $property;
Doctrine annotations are actual defined classes, therefore you can also use the annotation with a use statement.
/** * @Validate * @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\Validate * @var Foo */ public $property;
In v9 there is no actual impact. Both the simple
@TYPO3\CMS\Extbase\Annotation\Validate can be used side by side.
@validate is deprecated in v9 and will be removed in v10.