class Loader implements ArrayAccess (View source)

Properties

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

Methods

bool
isCli()

Check if php running env is cli

string
getBasePath()

Get the base path

static Loader
configure(string $base_path)

Configuration Loader

void
pushMiddleware(array $middlewares)

Push middlewares

void
pushNamespaces(array $namespaces)

Push namespaces

array
getMiddlewares()

Middleware collection

array
getNamespaces()

Namespaces collection

array
namespaces()

Get app namespace

array
middlewares()

Middleware collection

array
configurations()

Load services

array
events()

Load events

static Loader
getInstance()

Alias of singleton

withoutSession()

Define if the configuration going to boot without session manager

boot()

Load configuration

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

__invoke

bool
offsetExists(mixed $offset)

No description

mixed
offsetGet(mixed $offset)

No description

void
offsetSet(mixed $offset, mixed $value)

No description

void
offsetUnset(mixed $offset)

No description

Details

bool isCli()

Check if php running env is cli

Return Value

bool

string getBasePath()

Get the base path

Return Value

string

static Loader configure(string $base_path)

Configuration Loader

Parameters

string $base_path

Return Value

Loader

Exceptions

void pushMiddleware(array $middlewares)

Push middlewares

Parameters

array $middlewares

Return Value

void

void pushNamespaces(array $namespaces)

Push namespaces

Parameters

array $namespaces

Return Value

void

array getMiddlewares()

Middleware collection

Return Value

array

array getNamespaces()

Namespaces 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

array events()

Load events

Return Value

array

static Loader getInstance()

Alias of singleton

Return Value

Loader

Exceptions

ApplicationException

Loader withoutSession()

Define if the configuration going to boot without session manager

Return Value

Loader

Loader boot()

Load configuration

Return Value

Loader

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

__invoke

Parameters

string $key
mixed $value

Return Value

mixed

bool offsetExists(mixed $offset)

No description

Parameters

mixed $offset

Return Value

bool

mixed offsetGet(mixed $offset)

No description

Parameters

mixed $offset

Return Value

mixed

void offsetSet(mixed $offset, mixed $value)

No description

Parameters

mixed $offset
mixed $value

Return Value

void

void offsetUnset(mixed $offset)

No description

Parameters

mixed $offset

Return Value

void