PHP 트레잇 Laravel\Lumen\Concerns\RoutesRequests

파일 보기 프로젝트 열기: laravel/lumen-framework

공개 프로퍼티들

프로퍼티 타입 설명
$namedRoutes array All of the named routes and URI pairs.

보호된 프로퍼티들

프로퍼티 타입 설명
$currentRoute array The current route being dispatched.
$dispatcher FastRoute\Dispatcher The FastRoute dispatcher.
$groupAttributes array | null The shared attributes for the current route group.
$middleware array All of the global middleware for the application.
$routeMiddleware array All of the route specific middleware short-hands.
$routes array All of the routes waiting to be registered.

공개 메소드들

메소드 설명
addRoute ( array | string $method, string $uri, mixed $action ) : void Add a route to the collection.
delete ( string $uri, mixed $action ) Register a route with the application.
dispatch ( Request | null $request = null ) : Illuminate\Http\Response Dispatch the incoming request.
get ( string $uri, mixed $action ) Register a route with the application.
getRoutes ( ) : array Get the raw routes for the application.
group ( array $attributes, Closure $callback ) : void Register a set of routes with a set of shared attributes.
handle ( Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true )
middleware ( Closur\Closure | array $middleware ) Add new middleware to the application.
options ( string $uri, mixed $action ) Register a route with the application.
patch ( string $uri, mixed $action ) Register a route with the application.
post ( string $uri, mixed $action ) Register a route with the application.
prepareResponse ( mixed $response ) : Illuminate\Http\Response Prepare the response for sending.
put ( string $uri, mixed $action ) Register a route with the application.
routeMiddleware ( array $middleware ) Define the route middleware for the application.
run ( Request | null $request = null ) : void Run the application and send the response.
setDispatcher ( FastRoute\Dispatcher $dispatcher ) : void Set the FastRoute dispatcher instance.

보호된 메소드들

메소드 설명
callActionOnArrayBasedRoute ( array $routeInfo ) : mixed Call the Closure on the array based route.
callControllerAction ( array $routeInfo ) : mixed Call a controller based route.
callControllerCallable ( callable $callable, array $parameters = [] ) : Illuminate\Http\Response Call a controller callable and return the response.
callLumenController ( mixed $instance, string $method, array $routeInfo ) : mixed Send the request through a Lumen controller.
callLumenControllerWithMiddleware ( mixed $instance, string $method, array $routeInfo, array $middleware ) : mixed Send the request through a set of controller middleware.
callTerminableMiddleware ( mixed $response ) : void Call the terminable middleware.
createDispatcher ( ) : FastRoute\Dispatcher Create a FastRoute dispatcher instance for the application.
gatherMiddlewareClassNames ( string $middleware ) : array Gather the full class names for the middleware short-cut string.
getMethod ( ) : string Get the current HTTP request method.
getPathInfo ( ) : string Get the current HTTP path info.
handleDispatcherResponse ( array $routeInfo ) : mixed Handle the response from the FastRoute dispatcher.
handleFoundRoute ( array $routeInfo ) : mixed Handle a route found by the dispatcher.
mergeGroupAttributes ( array $action ) : array Merge the group attributes into the action.
mergeMiddlewareGroup ( array $action ) : array Merge the middleware group into the action.
mergeNamespaceGroup ( array $action ) : array Merge the namespace group into the action.
parseAction ( mixed $action ) : array Parse the action into an array format.
parseIncomingRequest ( Illuminate\Http\Request | null $request ) : array Parse the incoming request and return the method and path info.
sendThroughPipeline ( array $middleware, Closure $then ) : mixed Send the request through the pipeline with the given callback.
shouldSkipMiddleware ( ) : boolean Determines whether middleware should be skipped during request.

메소드 상세

addRoute() 공개 메소드

Add a route to the collection.
public addRoute ( array | string $method, string $uri, mixed $action ) : void
$method array | string
$uri string
$action mixed
리턴 void

callActionOnArrayBasedRoute() 보호된 메소드

Call the Closure on the array based route.
protected callActionOnArrayBasedRoute ( array $routeInfo ) : mixed
$routeInfo array
리턴 mixed

callControllerAction() 보호된 메소드

Call a controller based route.
protected callControllerAction ( array $routeInfo ) : mixed
$routeInfo array
리턴 mixed

callControllerCallable() 보호된 메소드

Call a controller callable and return the response.
protected callControllerCallable ( callable $callable, array $parameters = [] ) : Illuminate\Http\Response
$callable callable
$parameters array
리턴 Illuminate\Http\Response

callLumenController() 보호된 메소드

Send the request through a Lumen controller.
protected callLumenController ( mixed $instance, string $method, array $routeInfo ) : mixed
$instance mixed
$method string
$routeInfo array
리턴 mixed

callLumenControllerWithMiddleware() 보호된 메소드

Send the request through a set of controller middleware.
protected callLumenControllerWithMiddleware ( mixed $instance, string $method, array $routeInfo, array $middleware ) : mixed
$instance mixed
$method string
$routeInfo array
$middleware array
리턴 mixed

callTerminableMiddleware() 보호된 메소드

Call the terminable middleware.
protected callTerminableMiddleware ( mixed $response ) : void
$response mixed
리턴 void

createDispatcher() 보호된 메소드

Create a FastRoute dispatcher instance for the application.
protected createDispatcher ( ) : FastRoute\Dispatcher
리턴 FastRoute\Dispatcher

delete() 공개 메소드

Register a route with the application.
public delete ( string $uri, mixed $action )
$uri string
$action mixed

dispatch() 공개 메소드

Dispatch the incoming request.
public dispatch ( Request | null $request = null ) : Illuminate\Http\Response
$request Symfony\Component\HttpFoundation\Request | null
리턴 Illuminate\Http\Response

gatherMiddlewareClassNames() 보호된 메소드

Gather the full class names for the middleware short-cut string.
protected gatherMiddlewareClassNames ( string $middleware ) : array
$middleware string
리턴 array

get() 공개 메소드

Register a route with the application.
public get ( string $uri, mixed $action )
$uri string
$action mixed

getMethod() 보호된 메소드

Get the current HTTP request method.
protected getMethod ( ) : string
리턴 string

getPathInfo() 보호된 메소드

Get the current HTTP path info.
protected getPathInfo ( ) : string
리턴 string

getRoutes() 공개 메소드

Get the raw routes for the application.
public getRoutes ( ) : array
리턴 array

group() 공개 메소드

Register a set of routes with a set of shared attributes.
public group ( array $attributes, Closure $callback ) : void
$attributes array
$callback Closure
리턴 void

handle() 공개 메소드

public handle ( Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true )
$request Symfony\Component\HttpFoundation\Request

handleDispatcherResponse() 보호된 메소드

Handle the response from the FastRoute dispatcher.
protected handleDispatcherResponse ( array $routeInfo ) : mixed
$routeInfo array
리턴 mixed

handleFoundRoute() 보호된 메소드

Handle a route found by the dispatcher.
protected handleFoundRoute ( array $routeInfo ) : mixed
$routeInfo array
리턴 mixed

mergeGroupAttributes() 보호된 메소드

Merge the group attributes into the action.
protected mergeGroupAttributes ( array $action ) : array
$action array
리턴 array

mergeMiddlewareGroup() 보호된 메소드

Merge the middleware group into the action.
protected mergeMiddlewareGroup ( array $action ) : array
$action array
리턴 array

mergeNamespaceGroup() 보호된 메소드

Merge the namespace group into the action.
protected mergeNamespaceGroup ( array $action ) : array
$action array
리턴 array

middleware() 공개 메소드

Add new middleware to the application.
public middleware ( Closur\Closure | array $middleware )
$middleware Closur\Closure | array

options() 공개 메소드

Register a route with the application.
public options ( string $uri, mixed $action )
$uri string
$action mixed

parseAction() 보호된 메소드

Parse the action into an array format.
protected parseAction ( mixed $action ) : array
$action mixed
리턴 array

parseIncomingRequest() 보호된 메소드

Parse the incoming request and return the method and path info.
protected parseIncomingRequest ( Illuminate\Http\Request | null $request ) : array
$request Illuminate\Http\Request | null
리턴 array

patch() 공개 메소드

Register a route with the application.
public patch ( string $uri, mixed $action )
$uri string
$action mixed

post() 공개 메소드

Register a route with the application.
public post ( string $uri, mixed $action )
$uri string
$action mixed

prepareResponse() 공개 메소드

Prepare the response for sending.
public prepareResponse ( mixed $response ) : Illuminate\Http\Response
$response mixed
리턴 Illuminate\Http\Response

put() 공개 메소드

Register a route with the application.
public put ( string $uri, mixed $action )
$uri string
$action mixed

routeMiddleware() 공개 메소드

Define the route middleware for the application.
public routeMiddleware ( array $middleware )
$middleware array

run() 공개 메소드

Run the application and send the response.
public run ( Request | null $request = null ) : void
$request Symfony\Component\HttpFoundation\Request | null
리턴 void

sendThroughPipeline() 보호된 메소드

Send the request through the pipeline with the given callback.
protected sendThroughPipeline ( array $middleware, Closure $then ) : mixed
$middleware array
$then Closure
리턴 mixed

setDispatcher() 공개 메소드

Set the FastRoute dispatcher instance.
public setDispatcher ( FastRoute\Dispatcher $dispatcher ) : void
$dispatcher FastRoute\Dispatcher
리턴 void

shouldSkipMiddleware() 보호된 메소드

Determines whether middleware should be skipped during request.
protected shouldSkipMiddleware ( ) : boolean
리턴 boolean

프로퍼티 상세

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

The current route being dispatched.
protected array $currentRoute
리턴 array

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

The FastRoute dispatcher.
protected Dispatcher,FastRoute $dispatcher
리턴 FastRoute\Dispatcher

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

The shared attributes for the current route group.
protected array|null $groupAttributes
리턴 array | null

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

All of the global middleware for the application.
protected array $middleware
리턴 array

$namedRoutes 공개적으로 프로퍼티

All of the named routes and URI pairs.
public array $namedRoutes
리턴 array

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

All of the route specific middleware short-hands.
protected array $routeMiddleware
리턴 array

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

All of the routes waiting to be registered.
protected array $routes
리턴 array