Variable RUN_HEALTH_SELF_TEST_PHPConst
RUN_HEALTH_SELF_TEST_PHP: "\nuse Drupal\\drupflare\\Health\\BootSelfTest;\nuse Drupal\\drupflare\\Health\\HealthLedger;\nuse Drupal\\drupflare\\Health\\TripwireRegistry;\n\n// __CFW_FIBER_SHIM__\nchdir('/drupal');\n\n$out = ['ran' => false, 'findings' => [], 'recorded' => 0, 'mayServe' => true];\n$clock = function () {\n\treturn microtime(true) * 1000;\n};\n$t0 = $clock();\n\ntry {\n\t$autoload = '/drupal/autoload.php';\n\tif (!is_object($GLOBALS['__pw_autoloader'] ?? null)) {\n\t\t// require, never require_once: a second include answers TRUE rather than the ClassLoader,\n\t\t// and a heap restore lands in exactly that state\n\t\t$GLOBALS['__pw_autoloader'] = require $autoload;\n\t}\n\t$loader = $GLOBALS['__pw_autoloader'];\n\tif (is_object($loader)) {\n\t\t$loader->addPsr4('Drupal\\\\drupflare\\\\', '/drupal/modules/custom/drupflare/src/');\n\t}\n\n\t$boot = BootSelfTest::class;\n\t$registry = TripwireRegistry::class;\n\t$ledger = HealthLedger::class;\n\tif (!class_exists($boot)) {\n\t\t$out['reason'] = 'the drupflare module is not installed';\n\t} else {\n\t\t$observation = json_decode(__CFW_OBSERVATION__, true);\n\t\tif (!is_array($observation)) {\n\t\t\t$observation = [];\n\t\t}\n\t\t$findings = $boot::run($observation);\n\t\t// the tripwires take the same bag; the ones needing a render simply find nothing in it\n\t\t$findings = array_merge($findings, (new $registry())->run($observation));\n\n\t\t$out['mayServe'] = $boot::mayServe($findings);\n\t\t$out['recorded'] = $ledger::recordAll($findings);\n\t\tforeach ($findings as $finding) {\n\t\t\t$out['findings'][] = $finding->toArray();\n\t\t}\n\t\t$out['ran'] = true;\n\t}\n} catch (Throwable $e) {\n\t$out['error'] = get_class($e) . ': ' . $e->getMessage();\n}\n\n$out['ms'] = round($clock() - $t0, 2);\necho json_encode($out);\n"