create StreamFactoryInterface

This commit is contained in:
2026-06-12 14:10:54 -04:00
parent 73e367349f
commit 40e7bf7898
2 changed files with 7 additions and 1 deletions
+1
View File
@@ -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",
+6 -1
View File
@@ -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;
}