create StreamFactoryInterface
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
"type": "library",
|
||||
"require": {
|
||||
"php": "^8.5",
|
||||
"psr/http-factory": "^1.1",
|
||||
"psr/http-message": "^2.0",
|
||||
"potter/closeable": "^0.0.1",
|
||||
"potter/detachable": "^0.0.1",
|
||||
|
||||
@@ -5,6 +5,11 @@ declare(strict_types=1);
|
||||
namespace Potter\Stream;
|
||||
|
||||
use \Psr\Http\Message\StreamFactoryInterface as BaseStreamFactoryInterface;
|
||||
use \Psr\Http\Message\StreamInterface as BaseStreamInterface;
|
||||
|
||||
interface StreamFactoryInterface extends BaseStreamFactoryInterface
|
||||
{ }
|
||||
{
|
||||
public function createStream(string $content = ''): BaseStreamInterface;
|
||||
public function createStreamFromFile(string $filename, string $mode = 'r'): BaseStreamInterface;
|
||||
public function createStreamFromResource($resource): BaseStreamInterface;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user