\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

Methods

__construct()

__construct(\Pimple\Container  $pimple) : mixed

Parameters

\Pimple\Container $pimple

Returns

mixed —

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) : bool

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

bool —