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

registerDocsCommand() protected method

Register the documentation command.
protected registerDocsCommand ( ) : void
return void
    protected function registerDocsCommand()
    {
        $this->app->singleton('Dingo\\Api\\Console\\Command\\Docs', function ($app) {
            return new Command\Docs($app['Dingo\\Api\\Routing\\Router'], $app['Dingo\\Blueprint\\Blueprint'], $app['Dingo\\Blueprint\\Writer'], $this->config('name'), $this->config('version'));
        });
        $this->commands(['Dingo\\Api\\Console\\Command\\Docs']);
    }