GetServiceTrait
Trait implementing generic getter for top-level services.
Tags
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