protected function getOptionsFromConfig(Config $config)
    {
        $options = [];

        if ($config->has('visibility')) {
            switch (true) {
                case $config->get('visibility') === AdapterInterface::VISIBILITY_PUBLIC:
                    $options['predefinedAcl'] = static::GCS_VISIBILITY_PUBLIC_READ;
                    break;
                case $config->get('visibility') === AdapterInterface::VISIBILITY_PRIVATE:
                default:
                    $options['predefinedAcl'] = static::GCS_VISIBILITY_PROJECT_PRIVATE;
                    break;
            }
        }

        return $options;
    }
protected function getOptionsFromConfig(Config $config)
    {
        $options = [];

        if ($config->has('visibility')) {
            switch (true) {
                case $config->get('visibility') === AdapterInterface::VISIBILITY_PUBLIC:
                    $options['predefinedAcl'] = static::GCS_VISIBILITY_PUBLIC_READ;
                    break;
                case $config->get('visibility') === AdapterInterface::VISIBILITY_PRIVATE:
                default:
                    $options['predefinedAcl'] = static::GCS_VISIBILITY_PROJECT_PRIVATE;
                    break;
            }
        }

        return $options;
    }
protected function getOptionsFromConfig ( Config $ config ) { $ options = [ ] ; if ( $ config -> has ( 'visibility' ) ) { switch ( true ) { case $ config -> get ( 'visibility' ) === AdapterInterface :: VISIBILITY_PUBLIC : $ options [ 'predefinedAcl' ] = static :: GCS_VISIBILITY_PUBLIC_READ ; break ; case $ config -> get ( 'visibility' ) === AdapterInterface :: VISIBILITY_PRIVATE : default : $ options [ 'predefinedAcl' ] = static :: GCS_VISIBILITY_PROJECT_PRIVATE ; break ; } } return $ options ; }
Converts flysystem specific config to options for the underlying API client

@param $config Config

@return array
Converts flysystem specific config to options for the underlying API client