protected function getRawVisibility($path)
    {
        $command = $this->s3Client->getCommand(
            'getObjectAcl',
            [
                'Bucket' => $this->bucket,
                'Key'    => $this->applyPathPrefix($path),
            ]
        );

        $result = $this->s3Client->execute($command);
        $visibility = AdapterInterface::VISIBILITY_PRIVATE;

        foreach ($result->get('Grants') as $grant) {
            if (
                isset($grant['Grantee']['URI'])
                && $grant['Grantee']['URI'] === self::PUBLIC_GRANT_URI
                && $grant['Permission'] === 'READ'
            ) {
                $visibility = AdapterInterface::VISIBILITY_PUBLIC;
                break;
            }
        }

        return $visibility;
    }
protected function getRawVisibility($path)
    {
        $command = $this->s3Client->getCommand(
            'getObjectAcl',
            [
                'Bucket' => $this->bucket,
                'Key'    => $this->applyPathPrefix($path),
            ]
        );

        $result = $this->s3Client->execute($command);
        $visibility = AdapterInterface::VISIBILITY_PRIVATE;

        foreach ($result->get('Grants') as $grant) {
            if (
                isset($grant['Grantee']['URI'])
                && $grant['Grantee']['URI'] === self::PUBLIC_GRANT_URI
                && $grant['Permission'] === 'READ'
            ) {
                $visibility = AdapterInterface::VISIBILITY_PUBLIC;
                break;
            }
        }

        return $visibility;
    }
protected function getRawVisibility ( $ path ) { $ command = $ this -> s3Client -> getCommand ( 'getObjectAcl' , [ 'Bucket' => $ this -> bucket , 'Key' => $ this -> applyPathPrefix ( $ path ) , ] ) ; $ result = $ this -> s3Client -> execute ( $ command ) ; $ visibility = AdapterInterface :: VISIBILITY_PRIVATE ; foreach ( $ result -> get ( 'Grants' ) as $ grant ) { if ( isset ( $ grant [ 'Grantee' ] [ 'URI' ] ) && $ grant [ 'Grantee' ] [ 'URI' ] === self :: PUBLIC_GRANT_URI && $ grant [ 'Permission' ] === 'READ' ) { $ visibility = AdapterInterface :: VISIBILITY_PUBLIC ; break ; } } return $ visibility ; }
Get the object acl presented as a visibility.

@param string $path

@return string
Get the object acl presented as a visibility .