src/Providers/AmiServiceProvider.php
protected function registerFactory()
    {
        $this->app->singleton(Factory::class, function ($app) {
            return new Factory($app[LoopInterface::class], $app[ConnectorInterface::class]);
        });
        $this->app->alias(Factory::class, 'ami.factory');
    }
protected function registerFactory()
    {
        $this->app->singleton(Factory::class, function ($app) {
            return new Factory($app[LoopInterface::class], $app[ConnectorInterface::class]);
        });
        $this->app->alias(Factory::class, 'ami.factory');
    }
protected function registerFactory ( ) { $ this -> app -> singleton ( Factory :: class , function ( $ app ) { return new Factory ( $ app [ LoopInterface :: class ] , $ app [ ConnectorInterface :: class ] ) ; } ) ; $ this -> app -> alias ( Factory :: class , 'ami.factory' ) ; }
Register factory.
Register factory .