createStream()
createStream(string $key) : \Omega\Filesystem\Stream\StreamInterface
Creates a new stream instance for the specified file.
This method creates and returns a stream object for the file identified by its key.
The stream can be used for reading, writing, and other file operations. The method
should return an object that implements the StreamInterface
.
Parameters
string | $key | The key or path of the file for which the stream is created. |
Returns
\Omega\Filesystem\Stream\StreamInterface —The stream instance associated with the specified file.