StreamHelper
class StreamHelper (View source)
The StreamHelper class.
Properties
static StreamOutput | $outputObject | Property outputClass for test use. |
Methods
static void
copy(StreamInterface $src, StreamInterface $dest)
Copy stream to another stream.
static void
copyTo(StreamInterface $src, string $dest)
Copy a stream to target resource.
static void
copyFrom(string $src, StreamInterface $dest)
Copy a stream to target resource.
static void
sendAttachment(string|resource $source, ResponseInterface $response = null, array $options = array())
A simple method to quickly send attachment stream download.
Details
at line line 40
static void
copy(StreamInterface $src, StreamInterface $dest)
Copy stream to another stream.
at line line 61
static void
copyTo(StreamInterface $src, string $dest)
Copy a stream to target resource.
at line line 78
static void
copyFrom(string $src, StreamInterface $dest)
Copy a stream to target resource.
at line line 97
static void
sendAttachment(string|resource $source, ResponseInterface $response = null, array $options = array())
A simple method to quickly send attachment stream download.