public function getConfig(string $name = 'default') : array
    {
        if (isset($this->config['host']) && ! is_array($this->config['host'])) {
            $this->logger->warning(
                'laravel-bitcoind: You are using legacy config format which '.
                'was deprecated and will be removed in the next version. '.
                'Please update your config file by running [php artisan '.
                'vendor:publish '.
                '--provider="Denpa\Bitcoin\Providers\ServiceProvider" --force].'
            );

            return $this->withDefaults($this->config);
        }

        if (! array_key_exists($name, $this->config)) {
            throw new InvalidArgumentException(
                "Could not find client configuration [$name]"
            );
        }

        return $this->withDefaults($this->config[$name]);
    }
public function getConfig(string $name = 'default') : array
    {
        if (isset($this->config['host']) && ! is_array($this->config['host'])) {
            $this->logger->warning(
                'laravel-bitcoind: You are using legacy config format which '.
                'was deprecated and will be removed in the next version. '.
                'Please update your config file by running [php artisan '.
                'vendor:publish '.
                '--provider="Denpa\Bitcoin\Providers\ServiceProvider" --force].'
            );

            return $this->withDefaults($this->config);
        }

        if (! array_key_exists($name, $this->config)) {
            throw new InvalidArgumentException(
                "Could not find client configuration [$name]"
            );
        }

        return $this->withDefaults($this->config[$name]);
    }
public function getConfig ( string $ name = 'default' ) : array { if ( isset ( $ this -> config [ 'host' ] ) && ! is_array ( $ this -> config [ 'host' ] ) ) { $ this -> logger -> warning ( 'laravel-bitcoind: You are using legacy config format which ' . 'was deprecated and will be removed in the next version. ' . 'Please update your config file by running [php artisan ' . 'vendor:publish ' . '--provider="Denpa\Bitcoin\Providers\ServiceProvider" --force].' ) ; return $ this -> withDefaults ( $ this -> config ) ; } if ( ! array_key_exists ( $ name , $ this -> config ) ) { throw new InvalidArgumentException ( "Could not find client configuration [$name]" ) ; } return $ this -> withDefaults ( $ this -> config [ $ name ] ) ; }
Gets client config by name.

@param  string  $name

@return array
Gets client config by name .