프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$classMiddleware | array | All of the class level "inherited" middleware defined for the pathless endpoint. | |
$method | string | The method that handles the route. | |
$middleware | array | All of the middleware defined for the pathless endpoint. | |
$paths | array[Path] | The route paths for the definition. | |
$reflection | ReflectionClass | The ReflectionClass instance for the controller class. | |
$uses | string | The controller and method that handles the route. |
메소드 | 설명 | |
---|---|---|
__construct ( array $attributes = [] ) : void | Create a new route definition instance. | |
getPaths ( ) : array | Get all of the path definitions for an endpoint. | |
hasPaths ( ) : boolean | Determine if the endpoint has any paths. | |
toRouteDefinition ( ) : string | Transform the endpoint into a route definition. |
메소드 | 설명 | |
---|---|---|
getClassMiddlewareForPath ( |
Get the class middleware for the given path. | |
getMiddleware ( |
Get the middleware for the path. | |
getTemplate ( ) : string | Get the template for the endpoint. |
public __construct ( array $attributes = [] ) : void | ||
$attributes | array | |
리턴 | void |
protected getClassMiddlewareForPath ( |
||
$path | ||
리턴 | array |
protected getMiddleware ( |
||
$path | ||
리턴 | array |
protected getTemplate ( ) : string | ||
리턴 | string |
public toRouteDefinition ( ) : string | ||
리턴 | string |
public array $classMiddleware | ||
리턴 | array |
public array $middleware | ||
리턴 | array |
public ReflectionClass $reflection | ||
리턴 | ReflectionClass |