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. |
Throws
- \Psr\Container\NotFoundExceptionInterface
No entry was found for this identifier.
- \Psr\Container\ContainerExceptionInterface
Error while retrieving the entry.
Returns
mixed —Entry.