Свойство | 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. |
Méthode | 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. |
Méthode | 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 | |
Résultat | void |
protected gatherRouteMiddlewares ( Dingo\Api\Http\Request $request ) : array | ||
$request | Dingo\Api\Http\Request | |
Résultat | array |
public mergeMiddlewares ( array $middleware ) : void | ||
$middleware | array | |
Résultat | void |
protected parseMiddleware ( string $middleware ) : array | ||
$middleware | string | |
Résultat | array |
protected sendRequestThroughRouter ( Dingo\Api\Http\Request $request ) : |
||
$request | Dingo\Api\Http\Request | |
Résultat |
public setMiddlewares ( array $middleware ) : void | ||
$middleware | array | |
Résultat | void |
protected Application,Illuminate\Contracts\Foundation $app | ||
Résultat | Illuminate\Contracts\Foundation\Application |
protected Dispatcher,Illuminate\Events $events | ||
Résultat | Illuminate\Events\Dispatcher |
protected ExceptionHandler,Dingo\Api\Contract\Debug $exception | ||
Résultat | Dingo\Api\Contract\Debug\ExceptionHandler |
protected Router,Dingo\Api\Routing $router | ||
Résultat |