Fully Qualified Name: | Zend\ServiceManager\Factory\FactoryInterface |
Interface for a factory
A factory is an callable object that is able to create an object. It is given the instance of the service locator, the requested name of the class you want to create, and any additional options that could be used to configure the instance state.
Name | Description | Defined By |
---|---|---|
__invoke() | Create an object | FactoryInterface |
Create an object
Parameter Name | Type | Description |
---|---|---|
$container | \ContainerInterface | |
$requestedName | string | |
$options | null|array |
Returns: object