- Added createStream methods and fixed multiple errors views
This commit is contained in:
1 parent
06c4f46486
commit
7ee4b2d8bb
3 files changed
+7
-3
No files matched your search
@@ -63,6 +63,6 @@ class HttpFactory implements HttpFactoryInterface
|
||||
|
||||
public static function createStream(string $content): StreamInterface
|
||||
{
|
||||
return (new StreamFactory())->createStream($content);
|
||||
return new StreamFactory()->createStream($content);
|
||||
}
|
||||
}
|
||||
@@ -18,4 +18,4 @@ interface HttpFactoryInterface
|
||||
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 createStream(string $content) : StreamInterface;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user