MediaWiki  1.33.0
MWCallbackStream Class Reference

Callback-aware stream. More...

Inheritance diagram for MWCallbackStream:
Collaboration diagram for MWCallbackStream:

Public Member Functions

 __construct (callable $cb)
 write ( $string)

Private Attributes


Detailed Description

Callback-aware stream.

Allows using a callback function to receive data in contexts where a PSR-7 stream is required. This was created so that GuzzleHttpRequest can support our "callback" option, for backward compatibility. Newer code that uses GuzzleHttpRequest should consider using the "sink" option instead.

Access:\n private for use by GuzzleHttpRequest only

Definition at line 33 of file MWCallbackStream.php.

Constructor & Destructor Documentation

◆ __construct()

MWCallbackStream::__construct ( callable  $cb)

Definition at line 38 of file MWCallbackStream.php.

Member Function Documentation

◆ write()

MWCallbackStream::write (   $string)

Definition at line 43 of file MWCallbackStream.php.

Member Data Documentation

◆ $callback


Definition at line 36 of file MWCallbackStream.php.

The documentation for this class was generated from the following file: