handle() публичный Метод

public handle ( Request $request, $type = self::MASTER_REQUEST, $catch = true )
$request Symfony\Component\HttpFoundation\Request
Пример #1
0
 /**
  * Register the catch-all route with the Laravel router.
  *
  * @return void
  */
 protected function createLaravelRoute()
 {
     $prefix = $this->app->make('config')->get('fluxbb.route_prefix', '');
     $this->app->make('router')->any($prefix . '/{uri}', ['as' => 'fluxbb', 'uses' => function () {
         $dispatcher = new Dispatcher($this->app->make('FluxBB\\Web\\Router'), $this->app->make('FluxBB\\Web\\ControllerFactory'));
         return $dispatcher->handle($this->app->make('request'));
     }])->where('uri', '.*');
 }