- Added createStream methods and fixed multiple errors views
This commit is contained in:
parent
06c4f46486
commit
7ee4b2d8bb
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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 |
Loading…
x
Reference in New Issue
Block a user