PluginFactory
in package
implements
AbstractFactoryInterface
Uses
IniReaderTrait
VuFind Config Plugin Factory
Tags
Interfaces, Classes, Traits and Enums
- AbstractFactoryInterface
Table of Contents
- $iniReader : Ini
- INI reader
- __invoke() : object
- Create a service for the specified name.
- canCreate() : bool
- Can we create a service for the specified name?
- getIniReader() : Ini
- Creates INI reader if it does not exist and returns it.
- loadConfigFile() : Config
- Load the specified configuration file.
Properties
$iniReader
INI reader
protected
Ini
$iniReader
= null
Methods
__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 —getIniReader()
Creates INI reader if it does not exist and returns it.
protected
getIniReader() : Ini
Return values
Ini —loadConfigFile()
Load the specified configuration file.
protected
loadConfigFile(string $filename) : Config
Parameters
- $filename : string
-
Config file name