Mpociot\ApiDoc\ApiDocGeneratorServiceProvider::register PHP Method

register() public method

Register the API doc commands.
public register ( ) : void
return void
    public function register()
    {
        $this->app['apidoc.generate'] = $this->app->share(function () {
            return new GenerateDocumentation();
        });
        $this->app['apidoc.update'] = $this->app->share(function () {
            return new UpdateDocumentation();
        });
        $this->commands(['apidoc.generate', 'apidoc.update']);
    }
ApiDocGeneratorServiceProvider