Capsule
class Capsule implements ArrayAccess (View source)
Methods
static Capsule
getInstance()
Get instance of Capsule
mixed
make(string $key)
Make the
mixed
makeWith(mixed $key, array $parameters = [])
Compilation with parameter
bind(string $key, mixed $value)
Add to register
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
mixed
make(string $key)
Make the
mixed
makeWith(mixed $key, array $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