PrecognitionCallableDispatcher
class PrecognitionCallableDispatcher extends CallableDispatcher (View source)
Traits
RouteDependencyResolverTrait |
Properties
protected Container | $container | The container instance. | from CallableDispatcher |
Methods
array | resolveClassMethodDependencies(array $parameters, object $instance, string $method)
Resolve the object method's type-hinted dependencies. | from RouteDependencyResolverTrait |
array | resolveMethodDependencies(array $parameters, ReflectionFunctionAbstract $reflector)
Resolve the given method's type-hinted dependencies. | from RouteDependencyResolverTrait |
mixed | transformDependency(ReflectionParameter $parameter, array $parameters, object $skippableValue)
Attempt to transform the given parameter into a class instance. | from RouteDependencyResolverTrait |
bool | alreadyInParameters(string $class, array $parameters)
Determine if an object of the given class is in a list of parameters. | from RouteDependencyResolverTrait |
void | spliceIntoParameters(array $parameters, string $offset, mixed $value)
Splice the given value into the parameter list. | from RouteDependencyResolverTrait |
void | __construct(Container $container)
Create a new callable dispatcher instance. | from CallableDispatcher |
mixed | dispatch(Route $route, callable $callable)
Dispatch a request to a given callable. | |
array | resolveParameters(Route $route, callable $callable)
Resolve the parameters for the callable. | from CallableDispatcher |
Details
protected array resolveClassMethodDependencies(array $parameters, object $instance, string $method)
Resolve the object method's type-hinted dependencies.
array resolveMethodDependencies(array $parameters, ReflectionFunctionAbstract $reflector)
Resolve the given method's type-hinted dependencies.
protected mixed transformDependency(ReflectionParameter $parameter, array $parameters, object $skippableValue)
Attempt to transform the given parameter into a class instance.
protected bool alreadyInParameters(string $class, array $parameters)
Determine if an object of the given class is in a list of parameters.
protected void spliceIntoParameters(array $parameters, string $offset, mixed $value)
Splice the given value into the parameter list.
void __construct(Container $container)
Create a new callable dispatcher instance.
mixed dispatch(Route $route, callable $callable)
Dispatch a request to a given callable.
protected array resolveParameters(Route $route, callable $callable)
Resolve the parameters for the callable.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/9.x/Illuminate/Foundation/Routing/PrecognitionCallableDispatcher.html