FileAccess Orion

InvokableFactory
in package
implements FactoryInterface

Factory for instantiating classes with no dependencies or which accept a single array.

The InvokableFactory can be used for any class that:

  • has no constructor arguments;
  • accepts a single array of arguments via the constructor.

It replaces the "invokables" and "invokable class" functionality of the v2 service manager.

Interfaces, Classes, Traits and Enums

FactoryInterface
Interface for a factory

Table of Contents

__invoke()  : object
Create an object

Methods

__invoke()

Create an object

public __invoke(ContainerInterface $container, mixed $requestedName[, array<string|int, mixed> $options = null ]) : object
Parameters
$container : ContainerInterface
$requestedName : mixed
$options : array<string|int, mixed> = null
Return values
object

Search results