Feature #87457
closedUse symfony/property-info to gather doc block information
100%
Description
This patch introduces the requirement to symfony/property-info
which provides a neat api to extract information about
properties via several different extractors.
The package comes with a PhpDocExtractor, which is kind of
a drop in replacement (functional wise) for the extbase
DocCommentParser which has been removed.
Along with the replacement of the doc block extractor
the package comes with an api to fetch context data that
enables us to resolve non fully qualified class names.
This is now possible:
```
use TYPO3\CMS\Extbase\Persistence\ObjectStorage;
use ExtbaseTeam\BlogExample\Domain\Model\Comment;
class Post
{
/*
* @var ObjectStorage<Comment>
*/
public $comments;
}
```
Important:
This only works in extbase models as the reflection
costs are high and the information is only needed
in this case.
The non fully qualified class name is now also
supported for injection properties, although it is
still recommended to avoid injection properties in
favor of injection methods or constructor injection.
Example:
```
use TYPO3\CMS\Extbase\Annotation as Extbase;
use TYPO3\CMS\Extbase\Configuration\ConfigurationManager;
class Service
{
/*
* @Extbase\Inject
* @var ConfigurationManager
*/
public $configurationManager;
}
```