src/GoogleStorageAdapter.php
protected function getOptionsFromConfig(Config $config)
    {
        $options = [];

        if ($visibility = $config->get('visibility')) {
            $options['predefinedAcl'] = $this->getPredefinedAclForVisibility($visibility);
        } else {
            // if a file is created without an acl, it isn't accessible via the console
            // we therefore default to private
            $options['predefinedAcl'] = $this->getPredefinedAclForVisibility(AdapterInterface::VISIBILITY_PRIVATE);
        }

        if ($metadata = $config->get('metadata')) {
            $options['metadata'] = $metadata;
        }

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

        if ($visibility = $config->get('visibility')) {
            $options['predefinedAcl'] = $this->getPredefinedAclForVisibility($visibility);
        } else {
            // if a file is created without an acl, it isn't accessible via the console
            // we therefore default to private
            $options['predefinedAcl'] = $this->getPredefinedAclForVisibility(AdapterInterface::VISIBILITY_PRIVATE);
        }

        if ($metadata = $config->get('metadata')) {
            $options['metadata'] = $metadata;
        }

        return $options;
    }
protected function getOptionsFromConfig ( Config $ config ) { $ options = [ ] ; if ( $ visibility = $ config -> get ( 'visibility' ) ) { $ options [ 'predefinedAcl' ] = $ this -> getPredefinedAclForVisibility ( $ visibility ) ; } else { // if a file is created without an acl, it isn't accessible via the console // we therefore default to private $ options [ 'predefinedAcl' ] = $ this -> getPredefinedAclForVisibility ( AdapterInterface :: VISIBILITY_PRIVATE ) ; } if ( $ metadata = $ config -> get ( 'metadata' ) ) { $ options [ 'metadata' ] = $ metadata ; } return $ options ; }
Returns an array of options from the config.

@param Config $config

@return array
Returns an array of options from the config .