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
bind(string $key, callable $value)
Add to register
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
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