drupflare/worker - v1.0.4
    Preparing search index...

    Variable BOOT_KERNEL_PHPConst

    BOOT_KERNEL_PHP: "\nuse Drupal\\Core\\DrupalKernel;\nuse Drupal\\Core\\Site\\Settings;\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n// __CFW_FIBER_SHIM__\n// __CFW_HOST_HELPERS__\nchdir('/drupal');\n\n$clock = function () {\n\treturn microtime(true) * 1000;\n};\n$mark = [];\n$t0 = $clock();\n\n$_SERVER['HTTP_HOST'] = 'localhost';\n$_SERVER['SERVER_NAME'] = 'localhost';\n$_SERVER['SERVER_PORT'] = '80';\n$_SERVER['REQUEST_URI'] = '/';\n$_SERVER['REQUEST_METHOD'] = 'GET';\n$_SERVER['SCRIPT_NAME'] = '/index.php';\n$_SERVER['SCRIPT_FILENAME'] = '/drupal/index.php';\n$_SERVER['PHP_SELF'] = '/index.php';\n$_SERVER['DOCUMENT_ROOT'] = '/drupal';\n$_SERVER['REMOTE_ADDR'] = '127.0.0.1';\n$_SERVER['SERVER_SOFTWARE'] = 'workerd';\n$_SERVER['SERVER_PROTOCOL'] = 'HTTP/1.1';\n\ntry {\n\tif (!isset($GLOBALS['__pw_autoloader']) || !is_object($GLOBALS['__pw_autoloader'])) {\n\t\t$GLOBALS['__pw_autoloader'] = require '/drupal/autoload.php';\n\t}\n\t$autoloader = $GLOBALS['__pw_autoloader'];\n\t$mark['alreadyBooted'] = isset($GLOBALS['__pw_site_booted']) ? 1 : 0;\n\n\tif (!isset($GLOBALS['__pw_kernel'])) {\n\t\t$a = $clock();\n\t\t$request = Request::create('/', 'GET');\n\t\t$kernel = new DrupalKernel('prod', $autoloader);\n\t\tDrupalKernel::bootEnvironment();\n\t\t$sitePath = DrupalKernel::findSitePath($request);\n\t\t$kernel->setSitePath($sitePath);\n\t\tSettings::initialize('/drupal', $sitePath, $autoloader);\n\t\t$kernel->boot();\n\t\t$mark['kernelBootMs'] = round($clock() - $a, 2);\n\t\t$GLOBALS['__pw_kernel'] = $kernel;\n\t\t$GLOBALS['__pw_site_booted'] = true;\n\t}\n\n\t// the container has to be reachable, or the \"booted\" claim is empty\n\t$container = Drupal::hasContainer() ? Drupal::getContainer() : null;\n\t$mark['ok'] = $container !== null;\n\t$mark['hasDb'] = $container !== null && $container->has('database');\n\t$mark['totalMs'] = round($clock() - $t0, 2);\n\techo json_encode($mark);\n} catch (Throwable $e) {\n\techo json_encode(['ok' => false, 'error' => get_class($e) . ': ' . $e->getMessage()]);\n}\n"