lib/custom/src/MW/Filesystem/Laravel.php
public function reads( $path )
	{
		try {
			$content = $this->fs->get( $path );
		} catch( \Exception $e ) {
			throw new Exception( $e->getMessage(), 0, $e );
		}

		if( ( $stream = tmpfile() ) === false ) {
			throw new Exception( 'Couldn\'t create temporary file' );
		}

		if( fwrite( $stream, $content ) === false ) {
			throw new Exception( 'Couldn\'t write to temporary file' );
		}

		if( rewind( $stream ) === false ) {
			throw new Exception( 'Couldn\'t rewind temporary file' );
		}

		return $stream;
	}
public function reads( $path )
	{
		try {
			$content = $this->fs->get( $path );
		} catch( \Exception $e ) {
			throw new Exception( $e->getMessage(), 0, $e );
		}

		if( ( $stream = tmpfile() ) === false ) {
			throw new Exception( 'Couldn\'t create temporary file' );
		}

		if( fwrite( $stream, $content ) === false ) {
			throw new Exception( 'Couldn\'t write to temporary file' );
		}

		if( rewind( $stream ) === false ) {
			throw new Exception( 'Couldn\'t rewind temporary file' );
		}

		return $stream;
	}
public function reads ( $ path ) { try { $ content = $ this -> fs -> get ( $ path ) ; } catch ( \ Exception $ e ) { throw new Exception ( $ e -> getMessage ( ) , 0 , $ e ) ; } if ( ( $ stream = tmpfile ( ) ) === false ) { throw new Exception ( 'Couldn\'t create temporary file' ) ; } if ( fwrite ( $ stream , $ content ) === false ) { throw new Exception ( 'Couldn\'t write to temporary file' ) ; } if ( rewind ( $ stream ) === false ) { throw new Exception ( 'Couldn\'t rewind temporary file' ) ; } return $ stream ; }
Returns the stream descriptor for the file

{@inheritDoc}

@param string $path Path to the file
@return resource File stream descriptor
@throws \Aimeos\MW\Filesystem\Exception If an error occurs
Returns the stream descriptor for the file