Elemental

Application extends Container
in package

Table of Contents

$bindings  : array<string|int, mixed>
$coreBindings  : array<string|int, mixed>
$coreInstances  : array<string|int, mixed>
$instance  : Application|null
$instances  : array<string|int, mixed>
$resolvedInstances  : array<string|int, mixed>
$router  : Router|null
$basePath  : mixed
__construct()  : mixed
basePath()  : mixed
bind()  : mixed
boot()  : mixed
getInstance()  : mixed
initializeApp()  : mixed
make()  : mixed
resolve()  : mixed
resolveInstance()  : mixed
resolveMethod()  : mixed
setBasePath()  : mixed
singleton()  : mixed
terminate()  : mixed

Properties

$bindings

protected array<string|int, mixed> $bindings = []

$coreBindings

protected array<string|int, mixed> $coreBindings = []

$coreInstances

protected array<string|int, mixed> $coreInstances = [\Core\Main\Application::class, \Core\Router\Router::class, \Core\Request\Request::class, \Core\Response\Response::class, \Core\Database\DatabaseConnection::class, \Core\Database\Database::class, \Core\Config\Config::class, \Core\Config\EnvironmentLoader::class, \Core\Console\Commander::class]

$instances

protected array<string|int, mixed> $instances = []

$resolvedInstances

protected array<string|int, mixed> $resolvedInstances = []

Methods

__construct()

public __construct() : mixed
Return values
mixed

basePath()

public basePath() : mixed
Return values
mixed

bind()

public bind(string $key, string|callable $value) : mixed
Parameters
$key : string
$value : string|callable
Return values
mixed

boot()

public boot() : mixed
Return values
mixed

getInstance()

public static getInstance() : mixed
Return values
mixed

initializeApp()

public initializeApp() : mixed
Return values
mixed

make()

public make(string $key) : mixed
Parameters
$key : string
Return values
mixed

resolve()

public resolve(string $key) : mixed
Parameters
$key : string
Return values
mixed

resolveInstance()

public resolveInstance(string $key) : mixed
Parameters
$key : string
Return values
mixed

resolveMethod()

public resolveMethod(array<string|int, mixed>|callable $action, array<string|int, mixed> $args) : mixed
Parameters
$action : array<string|int, mixed>|callable
$args : array<string|int, mixed>
Return values
mixed

setBasePath()

public setBasePath() : mixed
Return values
mixed

singleton()

public singleton(string $key, string|callable $value) : mixed
Parameters
$key : string
$value : string|callable
Return values
mixed

terminate()

public terminate() : mixed
Return values
mixed

Search results