src/Providers/AmiServiceProvider.php
protected function registerConnector()
    {
        $this->app->singleton(ConnectorInterface::class, function ($app) {
            $loop = $app[LoopInterface::class];

            return new Connector($loop, (new DnsResolver())->create('8.8.8.8', $loop));
        });
        $this->app->alias(ConnectorInterface::class, 'ami.connector');
    }
protected function registerConnector()
    {
        $this->app->singleton(ConnectorInterface::class, function ($app) {
            $loop = $app[LoopInterface::class];

            return new Connector($loop, (new DnsResolver())->create('8.8.8.8', $loop));
        });
        $this->app->alias(ConnectorInterface::class, 'ami.connector');
    }
protected function registerConnector ( ) { $ this -> app -> singleton ( ConnectorInterface :: class , function ( $ app ) { $ loop = $ app [ LoopInterface :: class ] ; return new Connector ( $ loop , ( new DnsResolver ( ) ) -> create ( '8.8.8.8' , $ loop ) ) ; } ) ; $ this -> app -> alias ( ConnectorInterface :: class , 'ami.connector' ) ; }
Register connector.
Register connector .