\Pimple\Psr11Container

PSR-11 compliant wrapper.

Summary

Methods
Properties
Constants
__construct()
get()
has()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$pimple
N/A

Properties

$pimple

$pimple : 

Type

Methods

__construct()

__construct(\Pimple\Container  $pimple) 

Parameters

\Pimple\Container $pimple

get()

get(string  $id) : mixed

Finds an entry of the container by its identifier and returns it.

Parameters

string $id

Identifier of the entry to look for.

Returns

mixed —

Entry.

has()

has(string  $id) : boolean

Returns true if the container can return an entry for the given identifier.

Returns false otherwise.

has($id) returning true does not mean that get($id) will not throw an exception. It does however mean that get($id) will not throw a NotFoundExceptionInterface.

Parameters

string $id

Identifier of the entry to look for.

Returns

boolean