프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$container | Illuminate\Contracts\Container\Container | Application container instance. | |
$mergedRoutes | array | Array of merged old routes and API routes. | |
$oldRoutes | Illuminate\Routing\RouteCollection | Routes already defined on the router. | |
$router | Laravel router instance. | ||
$routes | array | Array of registered routes. |
메소드 | 설명 | |
---|---|---|
__construct ( |
Create a new laravel routing adapter instance. | |
addRoute ( array $methods, array $versions, string $uri, mixed $action ) : Illuminate\Routing\Route | Add a route to the appropriate route collection. | |
dispatch ( Illuminate\Http\Request $request, string $version ) : mixed | Dispatch a request. | |
gatherRouteMiddlewares ( Illuminate\Routing\Route $route ) : array | Gather the route middlewares. | |
getIterableRoutes ( string $version = null ) : mixed | Get a normalized iterable set of routes. | |
getRouteProperties ( mixed $route, Illuminate\Http\Request $request ) : array | Get the URI, methods, and action from the route. | |
getRouter ( ) : |
Get the Laravel router instance. | |
getRoutes ( string $version = null ) : mixed | Get all routes or only for a specific version. | |
prepareRouteForSerialization ( mixed $route ) : mixed | Prepare a route for serialization. | |
setRoutes ( array $routes ) : void | Set the routes on the adapter. |
메소드 | 설명 | |
---|---|---|
createRouteCollections ( array $versions ) : void | Create the route collections for the versions. | |
mergeOldRoutes ( string $version ) : array | Merge the old application routes with the API routes. |
public __construct ( |
||
$router | ||
리턴 | void |
protected createRouteCollections ( array $versions ) : void | ||
$versions | array | |
리턴 | void |
public gatherRouteMiddlewares ( Illuminate\Routing\Route $route ) : array | ||
$route | Illuminate\Routing\Route | |
리턴 | array |
public getIterableRoutes ( string $version = null ) : mixed | ||
$version | string | |
리턴 | mixed |
public getRouteProperties ( mixed $route, Illuminate\Http\Request $request ) : array | ||
$route | mixed | |
$request | Illuminate\Http\Request | |
리턴 | array |
public getRouter ( ) : |
||
리턴 |
protected mergeOldRoutes ( string $version ) : array | ||
$version | string | |
리턴 | array |
public prepareRouteForSerialization ( mixed $route ) : mixed | ||
$route | mixed | |
리턴 | mixed |
protected Container,Illuminate\Contracts\Container $container | ||
리턴 | Illuminate\Contracts\Container\Container |
protected array $mergedRoutes | ||
리턴 | array |
protected RouteCollection,Illuminate\Routing $oldRoutes | ||
리턴 | Illuminate\Routing\RouteCollection |
protected Router,Illuminate\Routing $router | ||
리턴 |