AliasTrait
trait AliasTrait
Methods
Alias for bind.
Alias for bind.
Fetches from container with getContent.
Alias for has.
Allow retrieving container values via magic properties.
Allows the use of isset() to determine if something exists in the container.
Allows the use of unset() to remove key a key from the container.
Bind a new key or fetch an existing one if no argument is provided.
Details
at line 17
AliasTrait
register(string|array $keyOrData, callable|null $data = null)
Alias for bind.
at line 30
AliasTrait
set(string|array $keyOrData, callable|null $data = null)
Alias for bind.
at line 42
mixed
resolve(string $key)
Fetches from container with getContent.
at line 54
bool
contains(string $key)
Alias for has.
at line 66
mixed
__get(string $key)
Allow retrieving container values via magic properties.
at line 78
bool
__isset(string $key)
Allows the use of isset() to determine if something exists in the container.
at line 90
void
__unset(string $key)
Allows the use of unset() to remove key a key from the container.
at line 104
mixed
__call(string $key, array $data)
Bind a new key or fetch an existing one if no argument is provided.
. If an argument is provided: Only the first one will be considered and it must be a callable.