FileFactory
in package
Table of Contents
- createInstance() : File
- Symfony's !tagged helper expression returns an iterable object; but the FileFactory requires an array.
Methods
createInstance()
Symfony's !tagged helper expression returns an iterable object; but the FileFactory requires an array.
public
static createInstance(DocBlockFactoryInterface $blockFactory, NodesFactory $nodesFactory, IteratorAggregate<string|int, Middleware> $middlewares) : File
This means that we need to unpack the middlewares iterable first as a plain array in this factory.
Parameters
- $blockFactory : DocBlockFactoryInterface
- $nodesFactory : NodesFactory
- $middlewares : IteratorAggregate<string|int, Middleware>