Spork Code Libraries

ServicesAwareTrait

Provides a concise interface to access a service manager while maintaining compatibility with Zend\ServiceManager\ServiceLocatorAwareInterface and Zend\ServiceManager\ServiceManagerAwareInterface

Properties

$services

$services : \Zend\ServiceManager\ServiceLocatorInterface

Service Manager

Type

\Zend\ServiceManager\ServiceLocatorInterface

Methods

__destruct()

__destruct() 

Unset services

getServices()

getServices() : \Zend\ServiceManager\ServiceLocatorInterface

Get Service Manager

Returns

\Zend\ServiceManager\ServiceLocatorInterface

setServices()

setServices(\Zend\ServiceManager\ServiceLocatorInterface  $services) 

Set Service Manager

Parameters

\Zend\ServiceManager\ServiceLocatorInterface $services

getServiceLocator()

getServiceLocator() : \Zend\ServiceManager\ServiceLocatorInterface

Provides compatibility ServiceLocatorAwareInterface

Returns

\Zend\ServiceManager\ServiceLocatorInterface

setServiceLocator()

setServiceLocator(\Zend\ServiceManager\ServiceLocatorInterface  $services) 

Provides compatibility ServiceLocatorAwareInterface

Parameters

\Zend\ServiceManager\ServiceLocatorInterface $services

getServiceManager()

getServiceManager() : \Zend\ServiceManager\ServiceLocatorInterface

Provides compatibility ServiceManagerAwareInterface

Returns

\Zend\ServiceManager\ServiceLocatorInterface

setServiceManager()

setServiceManager(\Zend\ServiceManager\ServiceLocatorInterface  $services) 

Provides compatibility ServiceManagerAwareInterface

Parameters

\Zend\ServiceManager\ServiceLocatorInterface $services