0 follower

Interface Yiisoft\Middleware\Dispatcher\ParametersResolverInterface

Implemented byYiisoft\Middleware\Dispatcher\CompositeParametersResolver

Resolves parameters of PSR-15 middleware that are provided as callable.

You may implement this interface if you want to introduce custom dependencies or inject additional data from the {@see \Psr\Http\Message\ServerRequestInterface} (e.g. using attributes) to the middleware.

Public Methods

Hide inherited methods

Method Description Defined By
resolve() Resolve parameters of a PSR-15 middleware the provided as callable. Yiisoft\Middleware\Dispatcher\ParametersResolverInterface

Method Details

Hide inherited methods

resolve() public abstract method

Resolve parameters of a PSR-15 middleware the provided as callable.

public abstract array resolve ( ReflectionParameter[] $parameters, \Psr\Http\Message\ServerRequestInterface $request )
$parameters ReflectionParameter[]
$request \Psr\Http\Message\ServerRequestInterface

                public function resolve(array $parameters, ServerRequestInterface $request): array;