create($request['action']); $action->execute($request); } else { $showInactive = filter_input(INPUT_GET, 'show_inactive', FILTER_VALIDATE_BOOLEAN); echo BridgeList::create($showInactive); } } catch (\Throwable $e) { error_log($e); $message = sprintf( 'Uncaught Exception %s: %s at %s line %s', get_class($e), $e->getMessage(), trim_path_prefix($e->getFile()), $e->getLine() ); http_response_code(500); print render('error.html.php', [ 'message' => $message, 'stacktrace' => create_sane_stacktrace($e), ]); }