- Added an event manager for Lean's route dispatching
This commit is contained in:
1 parent
f0082bf0a9
commit
8390506361
8 files changed
+102
-70
No files matched your search
@@ -92,7 +92,7 @@ trait ControllerTrait {
|
||||
return new HtmlResponse($html, $code, $headers);
|
||||
}
|
||||
|
||||
public static function renderJson(/*\JsonSerializable|array*/ $data, int $code = 200, array $headers = []) : ResponseInterface
|
||||
public static function renderJson(mixed $data, int $code = 200, array $headers = []) : ResponseInterface
|
||||
{
|
||||
return new JsonResponse($data, $code, $headers);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user