Mpociot\CaptainHook\CaptainHookServiceProvider::registerCommands PHP Method

registerCommands() protected method

Register the artisan commands.
protected registerCommands ( )
    protected function registerCommands()
    {
        $this->app['hook.list'] = $this->app->share(function () {
            return new ListWebhooks();
        });
        $this->app['hook.add'] = $this->app->share(function () {
            return new AddWebhook();
        });
        $this->app['hook.delete'] = $this->app->share(function () {
            return new DeleteWebhook();
        });
        $this->commands('hook.list', 'hook.add', 'hook.delete');
    }