VuFind API Documentation

PluginFactory
in package
implements AbstractFactoryInterface Uses IniReaderTrait

VuFind Config Plugin Factory

Tags
category

VuFind

author

Demian Katz demian.katz@villanova.edu

license

http://opensource.org/licenses/gpl-2.0.php GNU General Public License

link

Wiki

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

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
SuppressWarnings

(PHPMD.UnusedFormalParameter)

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
SuppressWarnings

(PHPMD.UnusedFormalParameter)

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

Return values
Config

Search results