class KernelTesting extends Loader (View source)

Properties

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

Methods

bool
isCli()

Check if php running env is cli

from  Loader
string
getBasePath()

Get the base path

from  Loader
static Loader
configure(string $base_path)

Configuration Loader

from  Loader
array
getMiddlewares()

Middleware collection

from  Loader
array
getNamespaces()

Namespaces collection

from  Loader
array
namespaces()

Get app namespace

from  Loader
array
middlewares()

No description

array
configurations()

No description

array
events()

No description

static Loader
getInstance()

Alias of singleton

from  Loader
withoutSession()

Define if the configuration going to boot without session manager

from  Loader
boot()

Load configuration

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

__invoke

from  Loader
bool
offsetExists(mixed $offset)

No description

from  Loader
mixed
offsetGet(mixed $offset)

No description

from  Loader
void
offsetSet(mixed $offset, mixed $value)

No description

from  Loader
void
offsetUnset(mixed $offset)

No description

from  Loader
static void
withConfigurations(array $configurations)

Set the loading configuration

static void
withEvents(array $events)

Set the loading events

static void
withMiddlewares(array $middlewares)

Set the loading middlewares

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

array getMiddlewares()

Middleware collection

Return Value

array

array getNamespaces()

Namespaces collection

Return Value

array

array namespaces()

Get app namespace

Return Value

array

array middlewares()

No description

Return Value

array

array configurations()

No description

Return Value

array

array events()

No description

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

static void withConfigurations(array $configurations)

Set the loading configuration

Parameters

array $configurations

Return Value

void

static void withEvents(array $events)

Set the loading events

Parameters

array $events

Return Value

void

static void withMiddlewares(array $middlewares)

Set the loading middlewares

Parameters

array $middlewares

Return Value

void