Property | Type | Description | |
---|---|---|---|
$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. |
Method | Description | |
---|---|---|
__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. |
Method | Description | |
---|---|---|
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 | |
return | void |
protected gatherRouteMiddlewares ( Dingo\Api\Http\Request $request ) : array | ||
$request | Dingo\Api\Http\Request | |
return | array |
public mergeMiddlewares ( array $middleware ) : void | ||
$middleware | array | |
return | void |
protected parseMiddleware ( string $middleware ) : array | ||
$middleware | string | |
return | array |
protected sendRequestThroughRouter ( Dingo\Api\Http\Request $request ) : |
||
$request | Dingo\Api\Http\Request | |
return |
public setMiddlewares ( array $middleware ) : void | ||
$middleware | array | |
return | void |
protected Application,Illuminate\Contracts\Foundation $app | ||
return | Illuminate\Contracts\Foundation\Application |
protected Dispatcher,Illuminate\Events $events | ||
return | Illuminate\Events\Dispatcher |
protected ExceptionHandler,Dingo\Api\Contract\Debug $exception | ||
return | Dingo\Api\Contract\Debug\ExceptionHandler |
protected Router,Dingo\Api\Routing $router | ||
return |