TQ\Vcs\StreamWrapper\FileBuffer\Factory::createFileBuffer PHP Method

createFileBuffer() public method

Returns the file stream to handle the requested path
public createFileBuffer ( TQ\Vcs\StreamWrapper\PathInformationInterface $path, string $mode ) : TQ\Vcs\Buffer\FileBufferInterface
$path TQ\Vcs\StreamWrapper\PathInformationInterface The path information
$mode string The mode used to open the path
return TQ\Vcs\Buffer\FileBufferInterface The file buffer to handle the path
    public function createFileBuffer(PathInformationInterface $path, $mode)
    {
        $factory = $this->findFactory($path, $mode);
        return $factory->createFileBuffer($path, $mode);
    }