프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$app | Illuminate\Contracts\Foundation\Application | Application instance. | |
$events | Illuminate\Events\Dispatcher | Event dispatcher instance. | |
$exception | Dingo\Api\Contract\Debug\ExceptionHandler | Exception handler instance. | |
$middleware | array | Array of middleware. | |
$router | Router instance. | ||
$validator | Dingo\Api\Http\Validator | HTTP validator instance. |
메소드 | 설명 | |
---|---|---|
__construct ( Illuminate\Contracts\Container\Container $app, Dingo\Api\Contract\Debug\ExceptionHandler $exception, |
Create a new request middleware instance. | |
handle ( Illuminate\Http\Request $request, Closure $next ) : mixed | Handle an incoming request. | |
mergeMiddlewares ( array $middleware ) : void | Merge new middlewares onto the existing middlewares. | |
setMiddlewares ( array $middleware ) : void | Set the middlewares. | |
terminate ( $request, $response ) : void | Call the terminate method on middlewares. |
메소드 | 설명 | |
---|---|---|
gatherRouteMiddlewares ( Dingo\Api\Http\Request $request ) : array | Gather the middlewares for the route. | |
parseMiddleware ( string $middleware ) : array | Parse a middleware string to get the name and parameters. | |
sendRequestThroughRouter ( Dingo\Api\Http\Request $request ) : |
Send the request through the Dingo router. |
public __construct ( Illuminate\Contracts\Container\Container $app, Dingo\Api\Contract\Debug\ExceptionHandler $exception, |
||
$app | Illuminate\Contracts\Container\Container | |
$exception | Dingo\Api\Contract\Debug\ExceptionHandler | |
$router | ||
$validator | ||
$events | Illuminate\Events\Dispatcher | |
리턴 | void |
protected gatherRouteMiddlewares ( Dingo\Api\Http\Request $request ) : array | ||
$request | Dingo\Api\Http\Request | |
리턴 | array |
public mergeMiddlewares ( array $middleware ) : void | ||
$middleware | array | |
리턴 | void |
protected parseMiddleware ( string $middleware ) : array | ||
$middleware | string | |
리턴 | array |
protected sendRequestThroughRouter ( Dingo\Api\Http\Request $request ) : |
||
$request | Dingo\Api\Http\Request | |
리턴 |
public setMiddlewares ( array $middleware ) : void | ||
$middleware | array | |
리턴 | void |
protected Application,Illuminate\Contracts\Foundation $app | ||
리턴 | Illuminate\Contracts\Foundation\Application |
protected Dispatcher,Illuminate\Events $events | ||
리턴 | Illuminate\Events\Dispatcher |
protected ExceptionHandler,Dingo\Api\Contract\Debug $exception | ||
리턴 | Dingo\Api\Contract\Debug\ExceptionHandler |
protected Router,Dingo\Api\Routing $router | ||
리턴 |