get()
get(string $service) : mixed
Finds an entry of the container by its identifier and returns it.
Parameters
| string | $service | Identifier of the entry to look for. |
Throws
- \Anax\DI\Exception\NotFoundException
No entry was found for this identifier.
- \Anax\DI\Exception\Exception
Error while retrieving the entry.
Returns
mixed —Entry.