- Added AdapterProxy autoload in ORM
This commit is contained in:
1 parent
69382f912b
commit
42f33d9f13
11 files changed
+76
-42
No files matched your search
@@ -147,13 +147,15 @@ trait ControllerTrait {
|
||||
#[Ignore]
|
||||
public function renderCLI(ServerRequestInterface $request, mixed $data) : ResponseInterface
|
||||
{
|
||||
if ($data instanceof \JsonSerializable ) {
|
||||
return $this->renderJson(
|
||||
$data
|
||||
);
|
||||
}
|
||||
elseif ( is_array($data) ) {
|
||||
var_export($data);
|
||||
if (! $data instanceof \Stringable) {
|
||||
if ($data instanceof \JsonSerializable) {
|
||||
return $this->renderJson(
|
||||
$data
|
||||
);
|
||||
}
|
||||
elseif (is_iterable($data) || is_object($data)) {
|
||||
return $this->renderText(var_export($data, true));
|
||||
}
|
||||
}
|
||||
|
||||
return $this->renderText(
|
||||
|
||||
Reference in new issue
Block a user