PHP 클래스 JasonLewis\EnhancedRouter\Router

상속: extends Illuminate\Routing\Router
파일 보기 프로젝트 열기: jasonlewis/enhanced-router 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$httpVerbFilters array The HTTP verb to filter bindings.
$routeGroups array Array of route groups.

공개 메소드들

메소드 설명
bunch ( Closure $callback ) : JasonLewis\EnhancedRouter\RouteGroup An alias of the group method but without the attributes.
dispatch ( Request $request ) : Response Get the response for a given request.
findPatternFilters ( string $method, string $path ) : array Find the patterned filters matching a request.
getRouteGroups ( ) : array Get the array of route groups.
getRoutes ( ) : RouteCollection Get the route collection instance.
group ( array $attributes, Closure $callback ) : JasonLewis\EnhancedRouter\RouteGroup Create a route group with shared attributes. Overloading this method allows developers to chain requirements and filters to all routes within the group.
on ( string | array $verbs, string | array $names ) : void Tie a registered middleware to an HTTP verb or verbs.

보호된 메소드들

메소드 설명
mergeGroupFilters ( Illuminate\Routing\Route $route, JasonLewis\EnhancedRouter\RouteGroup $group ) : void Merge a groups filters onto a route.
mergeRouteGroups ( ) : void Merge route groups into the core route collection.

메소드 상세

bunch() 공개 메소드

An alias of the group method but without the attributes.
public bunch ( Closure $callback ) : JasonLewis\EnhancedRouter\RouteGroup
$callback Closure
리턴 JasonLewis\EnhancedRouter\RouteGroup

dispatch() 공개 메소드

Overloaded so that we can merge route groups.
public dispatch ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
리턴 Symfony\Component\HttpFoundation\Response

findPatternFilters() 공개 메소드

Find the patterned filters matching a request.
public findPatternFilters ( string $method, string $path ) : array
$method string
$path string
리턴 array

getRouteGroups() 공개 메소드

Get the array of route groups.
public getRouteGroups ( ) : array
리턴 array

getRoutes() 공개 메소드

Overloaded so that we can merge route groups.
public getRoutes ( ) : RouteCollection
리턴 Symfony\Component\Routing\RouteCollection

group() 공개 메소드

Create a route group with shared attributes. Overloading this method allows developers to chain requirements and filters to all routes within the group.
public group ( array $attributes, Closure $callback ) : JasonLewis\EnhancedRouter\RouteGroup
$attributes array
$callback Closure
리턴 JasonLewis\EnhancedRouter\RouteGroup

mergeGroupFilters() 보호된 메소드

Merge a groups filters onto a route.
protected mergeGroupFilters ( Illuminate\Routing\Route $route, JasonLewis\EnhancedRouter\RouteGroup $group ) : void
$route Illuminate\Routing\Route
$group JasonLewis\EnhancedRouter\RouteGroup
리턴 void

mergeRouteGroups() 보호된 메소드

Merge route groups into the core route collection.
protected mergeRouteGroups ( ) : void
리턴 void

on() 공개 메소드

Tie a registered middleware to an HTTP verb or verbs.
public on ( string | array $verbs, string | array $names ) : void
$verbs string | array
$names string | array
리턴 void

프로퍼티 상세

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

The HTTP verb to filter bindings.
protected array $httpVerbFilters
리턴 array

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

Array of route groups.
protected array $routeGroups
리턴 array