protected function registerDigitalOceanFactory()
    {
        $this->app->singleton('digitalocean.factory', function (Container $app) {
            $adapter = $app['digitalocean.adapterfactory'];

            return new DigitalOceanFactory($adapter);
        });

        $this->app->alias('digitalocean.factory', DigitalOceanFactory::class);
    }
protected function registerDigitalOceanFactory()
    {
        $this->app->singleton('digitalocean.factory', function (Container $app) {
            $adapter = $app['digitalocean.adapterfactory'];

            return new DigitalOceanFactory($adapter);
        });

        $this->app->alias('digitalocean.factory', DigitalOceanFactory::class);
    }
protected function registerDigitalOceanFactory ( ) { $ this -> app -> singleton ( 'digitalocean.factory' , function ( Container $ app ) { $ adapter = $ app [ 'digitalocean.adapterfactory' ] ; return new DigitalOceanFactory ( $ adapter ) ; } ) ; $ this -> app -> alias ( 'digitalocean.factory' , DigitalOceanFactory :: class ) ; }
Register the digitalocean factory class.

@return void
Register the digitalocean factory class .