lib/private/Files/ObjectStore/S3.php
/**
	 * @param string $urn the unified resource name used to identify the object
	 * @return resource stream with the read data
	 * @throws \Exception when something goes wrong, message will be logged
	 * @since 7.0.0
	 */
@param string $urn the unified resource name used to identify the object
@return resource stream with the read data
@throws \Exception when something goes wrong, message will be logged
@since 7.0.0
@param string $urn the unified resource name used to identify the object @return resource stream with the read data @throws \ Exception when something goes wrong message will be logged @since 7 . 0 . 0
function readObject($urn) {
		$request = $this->getConnection()->getCommand('GetObject', [
			'Bucket' => $this->bucket,
			'Key' => $urn
		])->prepare();
		$request->dispatch('request.before_send', array(
			'request' => $request
		));
		$headers = $request->getHeaderLines();
		$headers[] = 'Connection: close';
		$opts = [
			'http' => [
				'method' => "GET",
				'header' => $headers
			],
			'ssl' => [
				'verify_peer' => true
			]
		];
		$context = stream_context_create($opts);
		return fopen($request->getUrl(), 'r', false, $context);
	}
function readObject ( $ urn ) { $ request = $ this -> getConnection ( ) -> getCommand ( 'GetObject' , [ 'Bucket' => $ this -> bucket , 'Key' => $ urn ] ) -> prepare ( ) ; $ request -> dispatch ( 'request.before_send' , array ( 'request' => $ request ) ) ; $ headers = $ request -> getHeaderLines ( ) ; $ headers [ ] = 'Connection: close' ; $ opts = [ 'http' => [ 'method' => " GET " , 'header' => $ headers ] , 'ssl' => [ 'verify_peer' => true ] ] ; $ context = stream_context_create ( $ opts ) ; return fopen ( $ request -> getUrl ( ) , 'r' , false , $ context ) ; }
@param string $urn the unified resource name used to identify the object
 @return resource stream with the read data
 @throws \Exception when something goes wrong, message will be logged
 @since 7.0.0
@param string $urn the unified resource name used to identify the object @return resource stream with the read data @throws \ Exception when something goes wrong message will be logged @since 7 . 0 . 0
// Create the command and serialize the request