Interface FactoryInterface

Summary

Fully Qualified Name: Zend\ServiceManager\FactoryInterface
Extends: FactoryInterface

Description

Backwards-compatibility shim for FactoryInterface.

Implementations should update to implement only Zend\ServiceManager\Factory\FactoryInterface.

If upgrading from v2, take the following steps:

Once you have tested your code, you can then update your class to only implement Zend\ServiceManager\Factory\FactoryInterface, and remove the createService() method.

Methods

Name Description Defined By
__invoke() Create an object FactoryInterface
createService() Create service FactoryInterface

Method Details

__invoke()

Create an object

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

Returns: object

createService()

Create service

Parameter Name Type Description
$serviceLocator \ServiceLocatorInterface

Returns: mixed

Top