MediaWiki fundraising/REL1_35
|
Callback-aware stream. More...
Public Member Functions | |
__construct (callable $cb) | |
write ( $string) | |
Protected Attributes | |
StreamInterface | $stream |
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 36 of file MWCallbackStream.php.
MWCallbackStream::__construct | ( | callable | $cb | ) |
Definition at line 44 of file MWCallbackStream.php.
MWCallbackStream::write | ( | $string | ) |
Definition at line 49 of file MWCallbackStream.php.
|
private |
Definition at line 39 of file MWCallbackStream.php.
|
protected |
Definition at line 42 of file MWCallbackStream.php.