\Anax\DIDIMagicTrait

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");

Summary

Methods
Properties
Constants
__get()
__call()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__get()

__get(string  $service) : mixed

Magic method to get a service.

Parameters

string $service

name of the service.

Returns

mixed —

as the service requested.

__call()

__call(string  $service, array  $arguments = array()) : mixed

Magic method to get and call a service.

Parameters

string $service

name of the service.

array $arguments

currently NOT USED.

Returns

mixed —

as the service requested.