/** * Get the route validators for the instance. * * @return array */ public static function getValidators() { $validators = parent::getValidators(); foreach ($validators as $key => $validator) { if ($validator instanceof UriValidator) { break; } } $validators[] = new AlexaValidator(); return $validators; }
/** * Handle the command. */ public function handle() { Route::$validators = array_filter(array_merge(Route::getValidators(), [new CaseInsensitiveUriValidator()]), function ($validator) { return get_class($validator) != UriValidator::class; }); }
/** * 주요 역활은 ModuleValidator 의 boot 를 실행. * * @return void */ public function boot() { $routeValidator = Route::getValidators(); $routeValidator['module']->boot(app('xe.router'), app('xe.menu'), app('xe.theme'), app('xe.site')); }