このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン 次のリビジョン 両方とも次のリビジョン | ||
apricot:usage:ja:middleware [2020/08/03 12:26] tanaka [Middleware インターフェース] |
apricot:usage:ja:middleware [2020/08/20 14:01] y2sunlight [Apricot ミドルウェア] |
||
---|---|---|---|
行 6: | 行 6: | ||
--- // | --- // | ||
- | [[apricot: | + | [[apricot: |
目次 | 目次 | ||
+ | * [[apricot: | ||
* [[apricot: | * [[apricot: | ||
+ | * [[apricot: | ||
* [[apricot: | * [[apricot: | ||
* [[apricot: | * [[apricot: | ||
- | * [[apricot: | + | * [[apricot: |
+ | * [[apricot: | ||
* Apricot ミドルウェア | * Apricot ミドルウェア | ||
* [[apricot: | * [[apricot: | ||
- | * [[apricot: | ||
* [[apricot: | * [[apricot: | ||
行 45: | 行 47: | ||
<code php Middleware.php> | <code php Middleware.php> | ||
<?php | <?php | ||
- | namespace | + | namespace |
- | use Core\Foundation\Invoker; | + | use Apricot\Foundation\Invoker; |
- | use Core\Foundation\Response; | + | use Apricot\Foundation\Response; |
/** | /** | ||
行 56: | 行 58: | ||
{ | { | ||
/** | /** | ||
- | | + | |
- | * @param Invoker $next Next invoker | + | * |
- | * @return \Core\Foundation\Response if return response, then don'true call next action | + | * @param Invoker $next Next invoker. |
+ | * @return \Apricot\Foundation\Response if return | ||
*/ | */ | ||
public function process(Invoker $next) :Response; | public function process(Invoker $next) :Response; |