Свойство | Тип | Описание | |
---|---|---|---|
$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 string $method | ||
Результат | string |
public array $middleware | ||
Результат | array |
public array[Path] $paths | ||
Результат | array[Path] |
public ReflectionClass $reflection | ||
Результат | ReflectionClass |
public string $uses | ||
Результат | string |