File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ public static function invoke(\BNETDocs\Interfaces\Model $model): void
1111 throw new \BNETDocs \Exceptions \InvalidModelException ($ model );
1212 }
1313
14- echo json_encode ($ model-> status , self ::jsonFlags ());
14+ echo \ json_encode ($ model , self ::jsonFlags ());
1515 $ model ->_responseHeaders ['Content-Type ' ] = self ::mimeType ();
1616 }
1717}
Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ public static function invoke(\BNETDocs\Interfaces\Model $model): void
1111 throw new \BNETDocs \Exceptions \InvalidModelException ($ model );
1212 }
1313
14- echo \BNETDocs \Libraries \Core \ArrayFlattener::flatten ($ model ->status );
14+ $ serialized = $ model ->jsonSerialize (); /* to drop _responseCode, etc. from Base */
15+ echo \BNETDocs \Libraries \Core \ArrayFlattener::flatten ($ serialized );
1516 $ model ->_responseHeaders ['Content-Type ' ] = self ::mimeType ();
1617 }
1718}
You can’t perform that action at this time.
0 commit comments