Methods

All methods in the Solar class.

Public

apiVersion()

Returns the API version for Solar.

callbacks()

Runs a series of callbacks using call_user_func_array().

cleanGlobals()

Cleans the global scope of all variables that are found in other super-globals.

dependency()

Combination dependency-injection and service-locator method; returns a dependency object as passed, or an object from the registry, or a new factory instance.

dump()

Dumps a variable to output.

exception()

Generates a simple exception, but does not throw it.

factory()

Convenience method to instantiate and configure an object.

start()

Starts Solar: loads configuration values and and sets up the environment.

stop()

Stops Solar: runs stop scripts and cleans up the Solar environment.

Protected

None.

Private

__construct()

Constructor is disabled to enforce a singleton pattern.



Local