Final Class Yiisoft\RequestModel\HandlerParametersResolver
| Inheritance | Yiisoft\ |
|---|---|
| Implements | Yiisoft\ |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\ |
|
| resolve() | Yiisoft\ |
Method Details
| public mixed __construct ( Yiisoft\ | ||
| $factory | Yiisoft\ |
|
| $container | \ |
|
public function __construct(private RequestModelFactory $factory, private ContainerInterface $container)
{
}
| public resolve ( array $parameters, \ | ||
| $parameters | array | |
| $request | \ |
|
| throws | \ |
|
|---|---|---|
| throws | \ |
|
| throws | ReflectionException | |
public function resolve(array $parameters, ServerRequestInterface $request): array
{
return array_merge(
$this->getAttributeParams($parameters, $request),
$this->factory->createInstances($request, $parameters)
);
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.