PHP 클래스 Dingo\Api\Http\Middleware\Request

파일 보기 프로젝트 열기: dingo/api 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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 Dingo\Api\Routing\Router Router instance.
$validator Dingo\Api\Http\Validator HTTP validator instance.

공개 메소드들

메소드 설명
__construct ( Illuminate\Contracts\Container\Container $app, Dingo\Api\Contract\Debug\ExceptionHandler $exception, Router $router, RequestValidator $validator, Illuminate\Events\Dispatcher $events ) : void 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 ) : Response Send the request through the Dingo router.

메소드 상세

__construct() 공개 메소드

Create a new request middleware instance.
public __construct ( Illuminate\Contracts\Container\Container $app, Dingo\Api\Contract\Debug\ExceptionHandler $exception, Router $router, RequestValidator $validator, Illuminate\Events\Dispatcher $events ) : void
$app Illuminate\Contracts\Container\Container
$exception Dingo\Api\Contract\Debug\ExceptionHandler
$router Dingo\Api\Routing\Router
$validator Dingo\Api\Http\RequestValidator
$events Illuminate\Events\Dispatcher
리턴 void

gatherRouteMiddlewares() 보호된 메소드

Gather the middlewares for the route.
protected gatherRouteMiddlewares ( Dingo\Api\Http\Request $request ) : array
$request Dingo\Api\Http\Request
리턴 array

handle() 공개 메소드

Handle an incoming request.
public handle ( Illuminate\Http\Request $request, Closure $next ) : mixed
$request Illuminate\Http\Request
$next Closure
리턴 mixed

mergeMiddlewares() 공개 메소드

Merge new middlewares onto the existing middlewares.
public mergeMiddlewares ( array $middleware ) : void
$middleware array
리턴 void

parseMiddleware() 보호된 메소드

Parse a middleware string to get the name and parameters.
저자: Taylor Otwell
protected parseMiddleware ( string $middleware ) : array
$middleware string
리턴 array

sendRequestThroughRouter() 보호된 메소드

Send the request through the Dingo router.
protected sendRequestThroughRouter ( Dingo\Api\Http\Request $request ) : Response
$request Dingo\Api\Http\Request
리턴 Dingo\Api\Http\Response

setMiddlewares() 공개 메소드

Set the middlewares.
public setMiddlewares ( array $middleware ) : void
$middleware array
리턴 void

terminate() 공개 메소드

Call the terminate method on middlewares.
public terminate ( $request, $response ) : void
리턴 void

프로퍼티 상세

$app 보호되어 있는 프로퍼티

Application instance.
protected Application,Illuminate\Contracts\Foundation $app
리턴 Illuminate\Contracts\Foundation\Application

$events 보호되어 있는 프로퍼티

Event dispatcher instance.
protected Dispatcher,Illuminate\Events $events
리턴 Illuminate\Events\Dispatcher

$exception 보호되어 있는 프로퍼티

Exception handler instance.
protected ExceptionHandler,Dingo\Api\Contract\Debug $exception
리턴 Dingo\Api\Contract\Debug\ExceptionHandler

$middleware 보호되어 있는 프로퍼티

Array of middleware.
protected array $middleware
리턴 array

$router 보호되어 있는 프로퍼티

Router instance.
protected Router,Dingo\Api\Routing $router
리턴 Dingo\Api\Routing\Router

$validator 보호되어 있는 프로퍼티

HTTP validator instance.
protected Validator,Dingo\Api\Http $validator
리턴 Dingo\Api\Http\Validator