Documentation

Container
in package

Service container class

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

Copyright (c) 2009-2024 NOLA Interactive, LLC. (http://www.nolainteractive.com)

license

http://www.popphp.org/license New BSD License

version
4.2.0

Table of Contents

Properties

$locators  : array<string|int, mixed>
Array service locators

Methods

get()  : Locator
Get a service locator
has()  : bool
Determine if a service locator has been set
remove()  : void
Remove a service locator
set()  : void
Set a service locator

Properties

$locators

Array service locators

private static array<string|int, mixed> $locators = ['default' => null]

Methods

get()

Get a service locator

public static get([string $name = 'default' ]) : Locator
Parameters
$name : string = 'default'
Tags
throws
Exception
Return values
Locator

has()

Determine if a service locator has been set

public static has(string $name) : bool
Parameters
$name : string
Return values
bool

remove()

Remove a service locator

public static remove(string $name) : void
Parameters
$name : string

set()

Set a service locator

public static set(string $name, Locator $locator) : void
Parameters
$name : string
$locator : Locator

        
On this page

Search results