File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -202,10 +202,7 @@ public function respond(
202
202
],
203
203
'errors ' => $ allErrors ,
204
204
];
205
-
206
- // // Log the response
207
- // $this->errorLogger->logInfo('A client was responded to:' . json_encode($response, JSON_THROW_ON_ERROR));
208
-
205
+
209
206
// Set security-related headers
210
207
$ this ->setSecurityHeaders ();
211
208
@@ -233,13 +230,6 @@ public function respond(
233
230
*/
234
231
public function bailOut (?int $ statusCode = 400 ): never
235
232
{
236
- // Log the bailout
237
- $ this ->errorLogger ->warning ('Bailing out ' , [
238
- 'status ' => $ statusCode ,
239
- 'messages ' => $ this ->globalMessages ,
240
- 'errors ' => $ this ->globalErrors ,
241
- ]);
242
-
243
233
// Ensure that globalMessages and globalErrors are initialized as arrays
244
234
$ this ->globalMessages = $ this ->globalMessages ?? [];
245
235
$ this ->globalErrors = $ this ->globalErrors ?? [];
@@ -254,9 +244,7 @@ public function bailOut(?int $statusCode = 400): never
254
244
$ this ->respond (
255
245
false , // failure
256
246
[], // no data
257
- $ this ->globalMessages , // messages
258
- $ this ->globalErrors , // errors
259
- $ statusCode // response code
247
+ $ statusCode // response code
260
248
);
261
249
}
262
250
You can’t perform that action at this time.
0 commit comments