__get()
__get(string $service) : mixed
Magic method to get a service.
Parameters
| string | $service | name of the service. |
Returns
mixed —as the service requested.
Trait to use to make a DI container use magic for getting services. A class using a DI container can access $this->di->session; as an alternative to $this->di->get("session");