PHP Class Xpressengine\Routing\ModuleValidator

Author: XE Developers ([email protected])
Inheritance: implements Illuminate\Routing\Matching\ValidatorInterface
Show file Open project: xpressengine/xpressengine Class Usage Examples

Public Methods

Method Description
boot ( Xpressengine\Routing\RouteRepository $routeRepo, MenuHandler $menuHandler, ThemeHandler $themeHandler, SiteHandler $siteHandler ) : void boot
matches ( Illuminate\Routing\Route $route, Illuminate\Http\Request $request ) : boolean Validate a given rule against a route and request.

Private Methods

Method Description
canReview ( Illuminate\Routing\Route $route, Illuminate\Http\Request $request ) : boolean canReview
getHomeInstanceRoute ( ) : InstanceRoute getHomeInstanceRoute
getInstanceRoute ( Illuminate\Http\Request $request ) : InstanceRoute getInstanceRoute
getRouteModule ( Illuminate\Routing\Route $route ) : mixed getRouteModule
setInstanceConfig ( InstanceRoute $instanceRoute, Request $request ) : void setInstanceConfig

Method Details

boot() public method

boot
public boot ( Xpressengine\Routing\RouteRepository $routeRepo, MenuHandler $menuHandler, ThemeHandler $themeHandler, SiteHandler $siteHandler ) : void
$routeRepo Xpressengine\Routing\RouteRepository route handler
$menuHandler Xpressengine\Menu\MenuHandler menu handler
$themeHandler Xpressengine\Theme\ThemeHandler theme handler
$siteHandler Xpressengine\Site\SiteHandler site handler
return void

matches() public method

Validate a given rule against a route and request.
public matches ( Illuminate\Routing\Route $route, Illuminate\Http\Request $request ) : boolean
$route Illuminate\Routing\Route laravel route
$request Illuminate\Http\Request laravel request
return boolean