Skip to content
This repository was archived by the owner on Sep 20, 2021. It is now read-only.

Commit 5da8e99

Browse files
committed
Add Response::getStream that return STDOUT resource
1 parent 2a54faf commit 5da8e99

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Response/Response.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -916,6 +916,16 @@ public function truncate($size)
916916
return true;
917917
}
918918

919+
/**
920+
* Get the current stream.
921+
*
922+
* @return resource
923+
*/
924+
public function getStream()
925+
{
926+
return fopen('php://stdout', 'w');
927+
}
928+
919929
/**
920930
* Get this object hash.
921931
*

0 commit comments

Comments
 (0)