\Pivot\Core\ServicesServiceLocator

Service locator object

Summary

Methods
Properties
Constants
__construct()
get()
getConfiguration()
getRequest()
setRequest()
No public properties found
No constants found
getClass()
$configuration
$request
$usedClasses
$factories
$alias
$nonpersistent
$services
$override
N/A
No private methods found
No private properties found
N/A

Properties

$configuration

$configuration : \Pivot\Core\Services\Pivot\Core\Configuration\PivotConfig

Pivot Configruation

Type

\Pivot\Core\Services\Pivot\Core\Configuration\PivotConfig

$request

$request : \Pivot\Core\Services\PSR7

Request

Type

\Pivot\Core\Services\PSR7 — Request

$usedClasses

$usedClasses : array

A collection of classes that have been created

Type

array

$factories

$factories : array

Configuration of all classes -> factories that have factories

Type

array

$alias

$alias : array

Configuration of all aliases -> classes that have aliases

Type

array

$nonpersistent

$nonpersistent : \Pivot\Core\Services\arrray

Configuration of all nonpersistent classes

Type

\Pivot\Core\Services\arrray

$services

$services : \Pivot\Core\Services\arrray

Collection of all regestered services

Type

\Pivot\Core\Services\arrray

$override

$override : array

There are some things that when requested we want another thing to happen This is that list.

Type

array

Methods

__construct()

__construct(object  $configuration) 

Construct a new service locator

Parameters

object $configuration

PivotConfig

get()

get(string  $serviceName,   $persistent = true) : object

Get a service by alias or by (full) class name

Parameters

string $serviceName

string to look for

$persistent

Returns

object

getConfiguration()

getConfiguration() : \Pivot\Core\Services\Pivot\Core\Configuration\PivotConfig

Get the value of Configruation

Returns

\Pivot\Core\Services\Pivot\Core\Configuration\PivotConfig

getRequest()

getRequest() : \Pivot\Core\Services\PSR7

Get the value of Request

Returns

\Pivot\Core\Services\PSR7 —

Request

getClass()

getClass(string  $serviceName, boolean  $persistent = true) : \Pivot\Core\Services\Created

Actual functionality to get a service This was abstracted to make the develop version

Parameters

string $serviceName
boolean $persistent

Returns

\Pivot\Core\Services\Created —

Class