class Capsule implements ArrayAccess (View source)

Methods

static Capsule
getInstance()

Get instance of Capsule

make($key)

Make the

makeWith($key, $parameters = [])

Compilation with parameter

bind(string $key, mixed $value)

Add to register

void
factory(string $key, Closure $value)

Register the instance of a class

void
instance(string $key, mixed $instance)

Saves the instance of a class

offsetExists($offset)

No description

offsetGet($offset)

No description

offsetSet($offset, $value)

No description

offsetUnset($offset)

No description

Details

static Capsule getInstance()

Get instance of Capsule

Return Value

Capsule

make($key)

Make the

Parameters

$key

makeWith($key, $parameters = [])

Compilation with parameter

Parameters

$key
$parameters

bind(string $key, mixed $value)

Add to register

Parameters

string $key
mixed $value

void factory(string $key, Closure $value)

Register the instance of a class

Parameters

string $key
Closure $value

Return Value

void

void instance(string $key, mixed $instance)

Saves the instance of a class

Parameters

string $key
mixed $instance

Return Value

void

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