Interface FactoryInterface

Summary

Fully Qualified Name: Zend\ServiceManager\Factory\FactoryInterface

Description

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.

Methods

Name Description Defined By
__invoke() Create an object FactoryInterface

Method Details

__invoke()

Create an object

Parameter Name Type Description
$container \ContainerInterface
$requestedName string
$options null|array

Returns: object

Top