src/Config/StorageConfig.php
public function getBucket(string $name): array
    {
        if (!$this->hasBucket($name)) {
            throw new ConfigException("Undefined bucket `{$name}`");
        }

        $bucket = $this->config['buckets'][$name];

        if (!array_key_exists('options', $bucket)) {
            throw new ConfigException("Bucket `{$name}` must specify `options`");
        }

        if (!array_key_exists('prefix', $bucket)) {
            throw new ConfigException("Bucket `{$name}` must specify `prefix`");
        }

        if (!array_key_exists('server', $bucket)) {
            throw new ConfigException("Bucket `{$name}` must specify `server` name.");
        }

        return $bucket;
    }
public function getBucket(string $name): array
    {
        if (!$this->hasBucket($name)) {
            throw new ConfigException("Undefined bucket `{$name}`");
        }

        $bucket = $this->config['buckets'][$name];

        if (!array_key_exists('options', $bucket)) {
            throw new ConfigException("Bucket `{$name}` must specify `options`");
        }

        if (!array_key_exists('prefix', $bucket)) {
            throw new ConfigException("Bucket `{$name}` must specify `prefix`");
        }

        if (!array_key_exists('server', $bucket)) {
            throw new ConfigException("Bucket `{$name}` must specify `server` name.");
        }

        return $bucket;
    }
public function getBucket ( string $ name ) : array { if ( ! $ this -> hasBucket ( $ name ) ) { throw new ConfigException ( "Undefined bucket `{$name}`" ) ; } $ bucket = $ this -> config [ 'buckets' ] [ $ name ] ; if ( ! array_key_exists ( 'options' , $ bucket ) ) { throw new ConfigException ( "Bucket `{$name}` must specify `options`" ) ; } if ( ! array_key_exists ( 'prefix' , $ bucket ) ) { throw new ConfigException ( "Bucket `{$name}` must specify `prefix`" ) ; } if ( ! array_key_exists ( 'server' , $ bucket ) ) { throw new ConfigException ( "Bucket `{$name}` must specify `server` name." ) ; } return $ bucket ; }
Get bucket options.

@param string $name
@return array

@throws ConfigException
Get bucket options .