\Anax\KernelCAnaxSingleton

Anax base class for an application.

Summary

Methods
Properties
Constants
instance()
setDI()
__get()
__call()
No public properties found
No constants found
__construct()
$di
N/A
No private methods found
$instance
N/A

Properties

$di

$di : 

Properties

Type

$instance

$instance : 

Properties

Type

Methods

instance()

instance() 

Create or get singleton instance of class.

setDI()

setDI(\Anax\DI\class  $di) : $this

Set the service container to use

Parameters

\Anax\DI\class $di

a service container

Returns

$this

__get()

__get(string  $service) : \Anax\DI\class

Magic method to get and create services.

When created it is also stored as a parameter of this object.

Parameters

string $service

name of class property not existing.

Returns

\Anax\DI\class —

as the service requested.

__call()

__call(string  $service, array  $arguments = array()) : \Anax\DI\class

Magic method to get and create services as a method call.

When created it is also stored as a parameter of this object.

Parameters

string $service

name of class property not existing.

array $arguments

Additional arguments to sen to the method (NOT IMPLEMENTED).

Returns

\Anax\DI\class —

as the service requested.

__construct()

__construct() 

Construct.