BoundMethod
class BoundMethod
Methods
Call a method that has been bound to the container.
Normalize the given callback into a Class@method string.
Get all dependencies for a given method.
Get the proper reflection instance for the given callback.
Get the dependency for the given call parameter.
Determine if the given string is in Class@method syntax.
Details
at line 21
static mixed
call(Container $container, callable|string $callback, array $parameters = [], string|null $defaultMethod = null)
Call the given Closure / class@method and inject its dependencies.
at line 45
static protected mixed
callClass(Container $container, string $target, array $parameters = [], string|null $defaultMethod = null)
Call a string reference to a class using Class@method syntax.
at line 72
static protected mixed
callBoundMethod(Container $container, callable $callback, mixed $default)
Call a method that has been bound to the container.
at line 96
static protected string
normalizeMethod(callable $callback)
Normalize the given callback into a Class@method string.
at line 111
static protected array
getMethodDependencies($container, callable|string $callback, array $parameters = [])
Get all dependencies for a given method.
at line 128
static protected ReflectionFunctionAbstract
getCallReflector(callable|string $callback)
Get the proper reflection instance for the given callback.
at line 148
static protected mixed
addDependencyForCallParameter(Container $container, ReflectionParameter $parameter, array $parameters, array $dependencies)
Get the dependency for the given call parameter.
at line 168
static protected bool
isCallableWithAtSign(mixed $callback)
Determine if the given string is in Class@method syntax.