Server IP : 162.213.251.212 / Your IP : 3.147.65.146 [ Web Server : LiteSpeed System : Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : allssztx ( 535) PHP Version : 8.1.31 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/allssztx/www/easybuyer/vendor/league/flysystem/src/Adapter/Polyfill/ |
Upload File : |
<?php namespace League\Flysystem\Adapter\Polyfill; /** * A helper for adapters that only handle strings to provide read streams. */ trait StreamedReadingTrait { /** * Reads a file as a stream. * * @param string $path * * @return array|false * * @see League\Flysystem\ReadInterface::readStream() */ public function readStream($path) { if ( ! $data = $this->read($path)) { return false; } $stream = fopen('php://temp', 'w+b'); fwrite($stream, $data['contents']); rewind($stream); $data['stream'] = $stream; unset($data['contents']); return $data; } /** * Reads a file. * * @param string $path * * @return array|false * * @see League\Flysystem\ReadInterface::read() */ abstract public function read($path); }