<?php
namespace Qii\Base\Middleware;

use Closure;
use \Qii\Base\Request as MiddlewareQuery;
/**
 * middleware 中间件
 */
interface Request {
    /**
     * request middleware 当return false的时候，就会阻止程序往下运行
     *
     * @param MiddlewareQuery $request
     * @param Closure $next
     * @return mixed
     */
    public function handle(MiddlewareQuery $request, Closure $next);
}