- Added createStream methods and fixed multiple errors views

This commit is contained in:
Dave M. 2025-12-20 12:44:13 -05:00 committed by Dave Mc Nicoll
parent 06c4f46486
commit 7ee4b2d8bb
3 changed files with 7 additions and 3 deletions

View File

@ -63,6 +63,6 @@ class HttpFactory implements HttpFactoryInterface
public static function createStream(string $content): StreamInterface public static function createStream(string $content): StreamInterface
{ {
return (new StreamFactory())->createStream($content); return new StreamFactory()->createStream($content);
} }
} }

View File

@ -18,4 +18,4 @@ interface HttpFactoryInterface
public static function createImageResponse(string $data, int $code = 200, array $headers = []) : ResponseInterface; public static function createImageResponse(string $data, int $code = 200, array $headers = []) : ResponseInterface;
public static function createFileDownloadResponse(string $path, int $code = 200, array $headers = []) : ResponseInterface; public static function createFileDownloadResponse(string $path, int $code = 200, array $headers = []) : ResponseInterface;
public static function createStream(string $content) : StreamInterface; public static function createStream(string $content) : StreamInterface;
} }

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 42 KiB