class Loader implements ArrayAccess (View source)

Properties

static protected Loader $instance
protected Arraydotify $config
protected string $base_path
protected bool $booted

Methods

static Loader
configure(string $base_path)

takeInstance singleton

pushMiddleware(array $middlewares)

Push middlewares

array
getMiddlewares()

Middleware collection

array
namespaces()

Get app namespace

array
middlewares()

Middleware collection

array
configurations()

Load serivces

static Loader
getInstance()

Alias de singleton

boot()

Load configuration

mixed
__invoke($key, null $value = null)

__invoke

offsetExists($offset)

No description

offsetGet($offset)

No description

offsetSet($offset, $value)

No description

offsetUnset($offset)

No description

Details

static Loader configure(string $base_path)

takeInstance singleton

Parameters

string $base_path

Return Value

Loader

Exceptions

pushMiddleware(array $middlewares)

Push middlewares

Parameters

array $middlewares

array getMiddlewares()

Middleware collection

Return Value

array

array namespaces()

Get app namespace

Return Value

array

array middlewares()

Middleware collection

Return Value

array

array configurations()

Load serivces

Return Value

array

static Loader getInstance()

Alias de singleton

Return Value

Loader

Exceptions

Loader boot()

Load configuration

Return Value

Loader

mixed __invoke($key, null $value = null)

__invoke

Parameters

$key
null $value

Return Value

mixed

offsetExists($offset)

Parameters

$offset

offsetGet($offset)

Parameters

$offset

offsetSet($offset, $value)

Parameters

$offset
$value

offsetUnset($offset)

Parameters

$offset