프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 ( |
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 ( |
||
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 ( |
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. |
protected callActionOnArrayBasedRoute ( array $routeInfo ) : mixed | ||
$routeInfo | array | |
리턴 | mixed |
protected callControllerAction ( array $routeInfo ) : mixed | ||
$routeInfo | array | |
리턴 | mixed |
protected callControllerCallable ( callable $callable, array $parameters = [] ) : Illuminate\Http\Response | ||
$callable | callable | |
$parameters | array | |
리턴 | Illuminate\Http\Response |
protected callTerminableMiddleware ( mixed $response ) : void | ||
$response | mixed | |
리턴 | void |
protected createDispatcher ( ) : FastRoute\Dispatcher | ||
리턴 | FastRoute\Dispatcher |
protected gatherMiddlewareClassNames ( string $middleware ) : array | ||
$middleware | string | |
리턴 | array |
public handle ( |
||
$request |
protected handleDispatcherResponse ( array $routeInfo ) : mixed | ||
$routeInfo | array | |
리턴 | mixed |
protected handleFoundRoute ( array $routeInfo ) : mixed | ||
$routeInfo | array | |
리턴 | mixed |
protected mergeGroupAttributes ( array $action ) : array | ||
$action | array | |
리턴 | array |
protected mergeMiddlewareGroup ( array $action ) : array | ||
$action | array | |
리턴 | array |
protected mergeNamespaceGroup ( array $action ) : array | ||
$action | array | |
리턴 | array |
public middleware ( Closur\Closure | array $middleware ) | ||
$middleware | Closur\Closure | array |
protected parseAction ( mixed $action ) : array | ||
$action | mixed | |
리턴 | array |
protected parseIncomingRequest ( Illuminate\Http\Request | null $request ) : array | ||
$request | Illuminate\Http\Request | null | |
리턴 | array |
public prepareResponse ( mixed $response ) : Illuminate\Http\Response | ||
$response | mixed | |
리턴 | Illuminate\Http\Response |
public routeMiddleware ( array $middleware ) | ||
$middleware | array |
public setDispatcher ( FastRoute\Dispatcher $dispatcher ) : void | ||
$dispatcher | FastRoute\Dispatcher | |
리턴 | void |
protected shouldSkipMiddleware ( ) : boolean | ||
리턴 | boolean |
protected array $currentRoute | ||
리턴 | array |
protected Dispatcher,FastRoute $dispatcher | ||
리턴 | FastRoute\Dispatcher |
protected array $middleware | ||
리턴 | array |
protected array $routeMiddleware | ||
리턴 | array |