generated from yiisoft/package-template
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove wrapper factory, move parameters resolver from
request-model
(…
…#68)
- Loading branch information
Showing
12 changed files
with
238 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Yiisoft\Middleware\Dispatcher; | ||
|
||
use Psr\Http\Message\ServerRequestInterface; | ||
use ReflectionParameter; | ||
|
||
/** | ||
* 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 ServerRequestInterface} (e.g. using attributes) to the middleware. | ||
*/ | ||
interface ParametersResolverInterface | ||
{ | ||
/** | ||
* Resolve parameters of a PSR-15 middleware the provided as callable. | ||
* | ||
* @param ReflectionParameter[] $parameters | ||
* | ||
* @return array<array-key, mixed> | ||
*/ | ||
public function resolve(array $parameters, ServerRequestInterface $request): array; | ||
} |
Oops, something went wrong.