Dingo\Api\Provider\DingoServiceProvider::registerDispatcher PHP Method

registerDispatcher() public method

Register the internal dispatcher.
public registerDispatcher ( ) : void
return void
    public function registerDispatcher()
    {
        $this->app->singleton('api.dispatcher', function ($app) {
            $dispatcher = new Dispatcher($app, $app['files'], $app['Dingo\\Api\\Routing\\Router'], $app['Dingo\\Api\\Auth\\Auth']);
            $dispatcher->setSubtype($this->config('subtype'));
            $dispatcher->setStandardsTree($this->config('standardsTree'));
            $dispatcher->setPrefix($this->config('prefix'));
            $dispatcher->setDefaultVersion($this->config('version'));
            $dispatcher->setDefaultDomain($this->config('domain'));
            $dispatcher->setDefaultFormat($this->config('defaultFormat'));
            return $dispatcher;
        });
    }