VuFind API Documentation

AbstractBackendFactory
in package
implements FactoryInterface

Abstract factory for backends.

Tags
category

VuFind

author

David Maus maus@hab.de

license

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

link

Main Site

Interfaces, Classes, Traits and Enums

FactoryInterface

Table of Contents

$serviceLocator  : ContainerInterface
Service container.
__construct()  : mixed
Constructor
setup()  : void
Initialize the factory
createConnectorCache()  : StorageInterface|null
Create cache for the connector if enabled in configuration
createHttpClient()  : Client
Create HTTP Client

Properties

Methods

setup()

Initialize the factory

public setup(ContainerInterface $sm) : void
Parameters
$sm : ContainerInterface

Service manager

Return values
void

createConnectorCache()

Create cache for the connector if enabled in configuration

protected createConnectorCache(Config $searchConfig) : StorageInterface|null
Parameters
$searchConfig : Config

Search configuration

Return values
StorageInterface|null

createHttpClient()

Create HTTP Client

protected createHttpClient([int $timeout = null ][, array<string|int, mixed> $options = [] ][, string $url = null ]) : Client
Parameters
$timeout : int = null

Request timeout

$options : array<string|int, mixed> = []

Other options

$url : string = null

Request URL (needed for proper local address check when the client is being proxified)

Return values
Client

Search results