PluginFactory
extends AbstractPluginFactory
in package
Form handler plugin factory
Tags
Table of Contents
- $classSuffix : string
- Optional suffix to append to class names
- $defaultNamespace : string
- Default namespace for building class names
- __construct() : mixed
- Constructor
- __invoke() : object
- Create a service for the specified name.
- canCreate() : bool
- Can we create a service for the specified name?
- getClassName() : string
- Get the name of a class for a given plugin name.
Properties
$classSuffix
Optional suffix to append to class names
protected
string
$classSuffix
= ''
$defaultNamespace
Default namespace for building class names
protected
string
$defaultNamespace
Methods
__construct()
Constructor
public
__construct() : mixed
Return values
mixed —__invoke()
Create a service for the specified name.
public
__invoke(ContainerInterface $container, string $requestedName[, array<string|int, mixed> $options = null ]) : object
Parameters
- $container : ContainerInterface
-
Service container
- $requestedName : string
-
Name of service
- $options : array<string|int, mixed> = null
-
Options (unused)
Tags
Return values
object —canCreate()
Can we create a service for the specified name?
public
canCreate(ContainerInterface $container, string $requestedName) : bool
Parameters
- $container : ContainerInterface
-
Service container
- $requestedName : string
-
Name of service
Tags
Return values
bool —getClassName()
Get the name of a class for a given plugin name.
protected
getClassName(string $requestedName) : string
Parameters
- $requestedName : string
-
Name of service
Return values
string —Fully qualified class name