ConfigAbstractFactory
in package
implements
AbstractFactoryInterface
FinalYes
Table of Contents
Interfaces
- AbstractFactoryInterface
- Interface for an abstract factory.
Methods
- __invoke() : object
- Create an object
- canCreate() : bool
- Factory can create the service if there is a key for it in the config
Methods
__invoke()
Create an object
public
__invoke(ContainerInterface $container, mixed $requestedName[, array<string|int, mixed>|null $options = null ]) : object
Parameters
- $container : ContainerInterface
- $requestedName : mixed
- $options : array<string|int, mixed>|null = null
Return values
objectcanCreate()
Factory can create the service if there is a key for it in the config
public
canCreate(ContainerInterface $container, mixed $requestedName) : bool
Parameters
- $container : ContainerInterface
- $requestedName : mixed