\phpDocumentor\ParserFileFactory

Summary

Methods
Properties
Constants
createInstance()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

createInstance()

createInstance(\phpDocumentor\Reflection\DocBlockFactoryInterface  $blockFactory, \phpDocumentor\Reflection\Php\NodesFactory  $nodesFactory, \IteratorAggregate<\phpDocumentor\Reflection\Middleware\Middleware>  $middlewares) : \phpDocumentor\Reflection\Php\Factory\File

Symfony's !tagged helper expression returns an iterable object; but the FileFactory requires an array.

This means that we need to unpack the middlewares iterable first as a plain array in this factory.

Parameters

\phpDocumentor\Reflection\DocBlockFactoryInterface $blockFactory
\phpDocumentor\Reflection\Php\NodesFactory $nodesFactory
\IteratorAggregate<\phpDocumentor\Reflection\Middleware\Middleware> $middlewares

Returns

\phpDocumentor\Reflection\Php\Factory\File —