Interface FactoryInterface

Summary

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

Description

Backwards-compatibility shim for FactoryInterface.

Implementations should update to implement only Laminas\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 Laminas\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