\Omega\Filesystem\Contracts StreamFactoryInterface

Interface for the stream creation class.

This interface defines a contract for creating stream instances associated with a file in the filesystem. Implementations of this interface are responsible for returning a stream that can be used for reading, writing, and manipulating the content of the specified file.

Summary

Methods
Constants
createStream()
No public constants found

Methods

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.