lib/custom/src/MW/View/Helper/Response/Slim.php
public function createStream( $resource )
	{
		if( is_resource( $resource ) === true ) {
			return new \Slim\Http\Stream( $resource );
		}

		if( ( $fh = @fopen( $resource, 'r' ) ) !== false ) {
			return new \Slim\Http\Stream( $fh );
		}

		throw new \Aimeos\MW\Exception( sprintf( 'Unable to open file "%1$s"', $resource ) );
	}
public function createStream( $resource )
	{
		if( is_resource( $resource ) === true ) {
			return new \Slim\Http\Stream( $resource );
		}

		if( ( $fh = @fopen( $resource, 'r' ) ) !== false ) {
			return new \Slim\Http\Stream( $fh );
		}

		throw new \Aimeos\MW\Exception( sprintf( 'Unable to open file "%1$s"', $resource ) );
	}
public function createStream ( $ resource ) { if ( is_resource ( $ resource ) === true ) { return new \ Slim \ Http \ Stream ( $ resource ) ; } if ( ( $ fh = @ fopen ( $ resource , 'r' ) ) !== false ) { return new \ Slim \ Http \ Stream ( $ fh ) ; } throw new \ Aimeos \ MW \ Exception ( sprintf ( 'Unable to open file "%1$s"' , $ resource ) ) ; }
Creates a new PSR-7 stream object

@param string|resource Absolute file path or file descriptor
@return \Psr\Http\Message\StreamInterface Stream object
Creates a new PSR - 7 stream object