MediaWiki REL1_33
|
Callback-aware stream. More...
Public Member Functions | |
__construct (callable $cb) | |
write ( $string) | |
Private Attributes | |
$callback | |
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.
Definition at line 33 of file MWCallbackStream.php.
MWCallbackStream::__construct | ( | callable | $cb | ) |
Definition at line 38 of file MWCallbackStream.php.
References and().
MWCallbackStream::write | ( | $string | ) |
Definition at line 43 of file MWCallbackStream.php.
References and().
|
private |
Definition at line 36 of file MWCallbackStream.php.