‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Http\FalDumpFileContentsDecoratorStream Class Reference
Inheritance diagram for TYPO3\CMS\Core\Http\FalDumpFileContentsDecoratorStream:

Public Member Functions

 __construct (protected readonly string $identifier, protected readonly DriverInterface $driver, protected readonly int $size)
 emit ()
 getSize ()
 isWritable ()
 write (string $string)

Protected Member Functions

 createStream ()

Detailed Description

A lazy stream, that wraps the FAL dumpFileContents() method to send file contents using emit(), as defined in SelfEmittableStreamInterface. This call will fall back to the FAL getFileContents() method if the fastpath possibility using SelfEmittableStreamInterface is not used.

Definition at line 32 of file FalDumpFileContentsDecoratorStream.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Http\FalDumpFileContentsDecoratorStream::__construct ( protected readonly string  $identifier,
protected readonly DriverInterface  $driver,
protected readonly int  $size 

Definition at line 36 of file FalDumpFileContentsDecoratorStream.php.

Member Function Documentation

◆ createStream()

TYPO3\CMS\Core\Http\FalDumpFileContentsDecoratorStream::createStream ( )

Creates a stream (on demand). This method is consumed by the guzzle StreamDecoratorTrait and is used when this stream is used without the emit() fastpath.

Definition at line 55 of file FalDumpFileContentsDecoratorStream.php.

◆ emit()

TYPO3\CMS\Core\Http\FalDumpFileContentsDecoratorStream::emit ( )

Emit the response to stdout, as specified in SelfEmittableStreamInterface. Offload to the driver method dumpFileContents.

Implements TYPO3\CMS\Core\Http\SelfEmittableStreamInterface.

Definition at line 46 of file FalDumpFileContentsDecoratorStream.php.

◆ getSize()

TYPO3\CMS\Core\Http\FalDumpFileContentsDecoratorStream::getSize ( )

Definition at line 62 of file FalDumpFileContentsDecoratorStream.php.

◆ isWritable()

TYPO3\CMS\Core\Http\FalDumpFileContentsDecoratorStream::isWritable ( )

Definition at line 67 of file FalDumpFileContentsDecoratorStream.php.

◆ write()

TYPO3\CMS\Core\Http\FalDumpFileContentsDecoratorStream::write ( string  $string)

Definition at line 75 of file FalDumpFileContentsDecoratorStream.php.