Container
Table of Contents
-
$bindings
: array<string|int, mixed>
-
$coreBindings
: array<string|int, mixed>
-
$coreInstances
: array<string|int, mixed>
-
$instances
: array<string|int, mixed>
-
$resolvedInstances
: array<string|int, mixed>
-
bind()
: mixed
-
make()
: mixed
-
resolve()
: mixed
-
resolveInstance()
: mixed
-
resolveMethod()
: mixed
-
singleton()
: mixed
$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
= []
bind()
public
bind(string $key, string|callable $value) : mixed
Parameters
-
$key
: string
-
-
$value
: string|callable
-
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
—
singleton()
public
singleton(string $key, string|callable $value) : mixed
Parameters
-
$key
: string
-
-
$value
: string|callable
-
Return values
mixed
—