|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Describes the interface of a container that exposes methods to read its entries. More...
Inheritance diagram for Psr\Container\ContainerInterface:
Collaboration diagram for Psr\Container\ContainerInterface:Public Member Functions | |
| get ($id) | |
| Finds an entry of the container by its identifier and returns it. More... | |
| has ($id) | |
| Returns true if the container can return an entry for the given identifier. More... | |
Describes the interface of a container that exposes methods to read its entries.
Definition at line 11 of file ContainerInterface.php.
| Psr\Container\ContainerInterface::get | ( | $id | ) |
Finds an entry of the container by its identifier and returns it.
| string | $id | Identifier of the entry to look for. |
| NotFoundExceptionInterface | No entry was found for this identifier. |
| ContainerExceptionInterface | Error while retrieving the entry. |
Implemented in Slim\Container.
| Psr\Container\ContainerInterface::has | ( | $id | ) |
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.
| string | $id | Identifier of the entry to look for. |
Implemented in Slim\Container.