\Pop\ServiceContainer

Service container class

Summary

Methods
Properties
Constants
set()
has()
get()
remove()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$locators
N/A

Properties

$locators

$locators : array

Array service locators

Type

array

Methods

set()

set(string  $name, \Pop\Service\Locator  $locator) : void

Set a service locator

Parameters

string $name
\Pop\Service\Locator $locator

has()

has(string  $name) : boolean

Determine if a service locator has been set

Parameters

string $name

Returns

boolean

get()

get(string  $name = 'default') : \Pop\Service\Locator

Get a service locator

Parameters

string $name

Throws

\Pop\Service\Exception

Returns

\Pop\Service\Locator

remove()

remove(string  $name) : void

Remove a service locator

Parameters

string $name