src/GitHubServiceProvider.php
protected function registerGitHubFactory()
    {
        $this->app->singleton('github.factory', function (Container $app) {
            $auth = $app['github.authfactory'];
            $cache = $app['cache'];

            return new GitHubFactory($auth, $cache);
        });

        $this->app->alias('github.factory', GitHubFactory::class);
    }
protected function registerGitHubFactory()
    {
        $this->app->singleton('github.factory', function (Container $app) {
            $auth = $app['github.authfactory'];
            $cache = $app['cache'];

            return new GitHubFactory($auth, $cache);
        });

        $this->app->alias('github.factory', GitHubFactory::class);
    }
protected function registerGitHubFactory ( ) { $ this -> app -> singleton ( 'github.factory' , function ( Container $ app ) { $ auth = $ app [ 'github.authfactory' ] ; $ cache = $ app [ 'cache' ] ; return new GitHubFactory ( $ auth , $ cache ) ; } ) ; $ this -> app -> alias ( 'github.factory' , GitHubFactory :: class ) ; }
Register the github factory class.

@return void
Register the github factory class .