- Fixed fastroute version into composer

This commit is contained in:
mcndave committed 2021-03-30 17:34:36 +00:00
1 parent 434e3c0c46
commit 421024f260
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -73,9 +73,9 @@ trait ControllerTrait {
return new PdfResponse($rawdata, $status, $headers);
}
public static function renderText(string $html, int $code = 200, array $headers = []) : ResponseInterface
public static function renderText(string $text, int $code = 200, array $headers = []) : ResponseInterface
{
return new TextResponse($html, $code, $headers);
return new TextResponse($text, $code, $headers);
}
public static function renderHtml(string $html, int $code = 200, array $headers = []) : ResponseInterface