class Capsule implements ArrayAccess (View source)

Methods

static Capsule
getInstance()

Get instance of Capsule

mixed
make(string $key)

Make the

mixed
makeWith(string $key, array $parameters = [])

Compilation with parameter

bind(string $key, callable $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

bool
offsetExists($offset)

No description

offsetGet(mixed $offset)

No description

void
offsetSet(mixed $offset, mixed $value)

No description

void
offsetUnset(mixed $offset)

No description

Details

static Capsule getInstance()

Get instance of Capsule

Return Value

Capsule

mixed make(string $key)

Make the

Parameters

string $key

Return Value

mixed

Exceptions

mixed makeWith(string $key, array $parameters = [])

Compilation with parameter

Parameters

string $key
array $parameters

Return Value

mixed

Exceptions

bind(string $key, callable $value)

Add to register

Parameters

string $key
callable $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

bool offsetExists($offset)

No description

Parameters

$offset

Return Value

bool

offsetGet(mixed $offset)

No description

Parameters

mixed $offset

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