- Fixed fastroute version into composer

This commit is contained in:
Dave M. 2021-03-30 17:34:36 +00:00
parent 434e3c0c46
commit 421024f260
2 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@
"mcnd/notes-security": "dev-master", "mcnd/notes-security": "dev-master",
"mcnd/notes-tell": "dev-master", "mcnd/notes-tell": "dev-master",
"swiftmailer/swiftmailer": "^6.2@dev", "swiftmailer/swiftmailer": "^6.2@dev",
"league/route": "dev-master", "league/route": "^5.0.0-dev",
"laminas/laminas-diactoros": "2.5.x-dev", "laminas/laminas-diactoros": "2.5.x-dev",
"laminas/laminas-httphandlerrunner": "1.3.x-dev", "laminas/laminas-httphandlerrunner": "1.3.x-dev",
"vlucas/phpdotenv": "^3.4@dev", "vlucas/phpdotenv": "^3.4@dev",

View File

@ -73,9 +73,9 @@ trait ControllerTrait {
return new PdfResponse($rawdata, $status, $headers); 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 public static function renderHtml(string $html, int $code = 200, array $headers = []) : ResponseInterface