Capsule
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
bool
offsetExists($offset)
No description
mixed
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
mixed
make(string $key)
Make the
mixed
makeWith(string $key, array $parameters = [])
Compilation with parameter
Capsule
bind(string $key, callable $value)
Add to register
Capsule
factory(string $key, Closure|callable $value)
Register the instance of a class
Capsule
instance(string $key, mixed $instance)
Saves the instance of a class
bool
offsetExists($offset)
No description
mixed
offsetGet(mixed $offset)
No description
void
offsetSet(mixed $offset, mixed $value)
No description
void
offsetUnset(mixed $offset)
No description