Update community IDs in graph.json and manifest.json; modify migration command in liara_pre_start.sh; enhance error logging in ExceptionSubscriber.php; add new AST cache files.

This commit is contained in:
hamed
2026-06-29 19:29:10 +03:30
parent 97958ecc7d
commit afb5b28272
10 changed files with 119 additions and 115 deletions
@@ -108,10 +108,18 @@ class ExceptionSubscriber implements EventSubscriberInterface
return;
}
// Generic fallback: never leak stack traces or internal details in API responses
$this->logger->error('Unhandled exception', [
// Generic fallback: never leak stack traces or internal details in API responses.
// The class/message/location go into the log MESSAGE itself so they surface in
// platforms (e.g. Liara) whose default logger only prints the message string.
$this->logger->error(sprintf(
'Unhandled exception: %s: %s @ %s:%d [path=%s]',
$exception::class,
$exception->getMessage(),
$exception->getFile(),
$exception->getLine(),
$event->getRequest()->getPathInfo(),
), [
'exception' => $exception,
'path' => $event->getRequest()->getPathInfo(),
]);
$event->setResponse(new JsonResponse(