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)

Configuration Loader

pushMiddleware(array $middlewares)

Push middlewares

array
getMiddlewares()

Middleware collection

array
namespaces()

Get app namespace

array
middlewares()

Middleware collection

array
configurations()

Load services

static Loader
getInstance()

Alias of singleton

void
withoutSession()

Define if the configuration going to boot without session manager

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)

Configuration Loader

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 services

Return Value

array

static Loader getInstance()

Alias of singleton

Return Value

Loader

Exceptions

void withoutSession()

Define if the configuration going to boot without session manager

Return Value

void

Loader boot()

Load configuration

Return Value

Loader

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

__invoke

Parameters

$key
null $value

Return Value

mixed

offsetExists($offset)

No description

Parameters

$offset

offsetGet($offset)

No description

Parameters

$offset

offsetSet($offset, $value)

No description

Parameters

$offset
$value

offsetUnset($offset)

No description

Parameters

$offset