trait
Illuminate
/
Routing
/
ResolvesRouteDependencies
ResolvesRouteDependencies
Methods
protected
resolveClassMethodDependencies ( array $parameters , $instance , $method ) : array
Resolve the object method's type-hinted dependencies.
Parameters
- $parameters array
- $instance object
- $method string
public
resolveMethodDependencies ( array $parameters , ReflectionFunctionAbstract $reflector ) : array
Resolve the given method's type-hinted dependencies.
Parameters
- $parameters array
- $reflector ReflectionFunctionAbstract
protected
transformDependency ( ReflectionParameter $parameter , $parameters , $skippableValue ) : mixed
Attempt to transform the given parameter into a class instance.
Parameters
- $parameter ReflectionParameter
- $parameters array
- $skippableValue object
protected
alreadyInParameters ( $class , array $parameters ) : bool
Determine if an object of the given class is in a list of parameters.
Parameters
- $class string
- $parameters array
protected
spliceIntoParameters ( array $parameters , $offset , $value ) : void
Splice the given value into the parameter list.
Parameters
- $parameters array
- $offset string
- $value mixed