protected function readObject($path)
    {
        $options = [
            'Bucket' => $this->bucket,
            'Key'    => $this->applyPathPrefix($path),
        ];

        if (isset($this->options['@http'])) {
            $options['@http'] = $this->options['@http'];
        }

        $command = $this->s3Client->getCommand('getObject', $options + $this->options);

        try {
            /** @var Result $response */
            $response = $this->s3Client->execute($command);
        } catch (S3Exception $e) {
            return false;
        }

        return $this->normalizeResponse($response->toArray(), $path);
    }
protected function readObject($path)
    {
        $options = [
            'Bucket' => $this->bucket,
            'Key'    => $this->applyPathPrefix($path),
        ];

        if (isset($this->options['@http'])) {
            $options['@http'] = $this->options['@http'];
        }

        $command = $this->s3Client->getCommand('getObject', $options + $this->options);

        try {
            /** @var Result $response */
            $response = $this->s3Client->execute($command);
        } catch (S3Exception $e) {
            return false;
        }

        return $this->normalizeResponse($response->toArray(), $path);
    }
protected function readObject ( $ path ) { $ options = [ 'Bucket' => $ this -> bucket , 'Key' => $ this -> applyPathPrefix ( $ path ) , ] ; if ( isset ( $ this -> options [ '@http' ] ) ) { $ options [ '@http' ] = $ this -> options [ '@http' ] ; } $ command = $ this -> s3Client -> getCommand ( 'getObject' , $ options + $ this -> options ) ; try { /** @var Result $response */ $ response = $ this -> s3Client -> execute ( $ command ) ; } catch ( S3Exception $ e ) { return false ; } return $ this -> normalizeResponse ( $ response -> toArray ( ) , $ path ) ; }
Read an object and normalize the response.

@param $path

@return array|bool
Read an object and normalize the response .