VuFind API Documentation

GetServiceTrait

Trait implementing generic getter for top-level services.

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

Table of Contents

$serviceLocator  : ContainerInterface
Service manager
getService()  : T
Retrieve a service

Properties

$serviceLocator

Service manager

protected ContainerInterface $serviceLocator

Methods

getService()

Retrieve a service

public getService(class-string<\VuFind\Service\T> $name) : T
Parameters
$name : class-string<\VuFind\Service\T>

Name of service to retrieve

Tags
template

T

Return values
T

Search results