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

    Variable ENABLE_VERIFY_PHPConst

    ENABLE_VERIFY_PHP: "$out = ['ok' => true];\n\ntry {\n\t$list = array_keys(Drupal::configFactory()->get('core.extension')->get('module') ?? []);\n\t$out['enabled'] = in_array('drupflare', $list, true);\n\t$out['moduleCount'] = count($list);\n} catch (Throwable $e) {\n\t$out['configError'] = $e->getMessage();\n}\n\n// the four services that were unreached. has() rather than get(), so a construction failure is\n// told apart from an absent definition.\nforeach (['logger.cfw', 'drupflare.http_deferred', 'drupflare.request_resetter'] as $id) {\n\ttry {\n\t\t$out['has'][$id] = Drupal::hasService($id);\n\t} catch (Throwable $e) {\n\t\t$out['has'][$id] = 'error: ' . $e->getMessage();\n\t}\n}\n\n// the real test: does a Drupal::logger() call reach CfwLogger. A registered service that nothing\n// routes to is still dead, and the logger channel is exactly where that distinction hides.\ntry {\n\t$marker = 'cfw-enable-' . substr(sha1((string) mt_rand()), 0, 8);\n\tDrupal::logger('cfw-enable')->warning('reached @m', ['@m' => $marker]);\n\t$seen = false;\n\tif (function_exists('vrzno_env')) {\n\t\t$probe = vrzno_env('cfwLogTail');\n\t\tif (is_object($probe) || is_callable($probe)) {\n\t\t\t$seen = true;\n\t\t}\n\t}\n\t$out['loggerMarker'] = $marker;\n\t$out['loggerCalled'] = true;\n\t$out['loggerTailAvailable'] = $seen;\n} catch (Throwable $e) {\n\t$out['loggerError'] = $e->getMessage();\n\t$out['ok'] = false;\n}\n\n// which class answers path.matcher, and whether it can be reset. A services.yml override that did\n// not take leaves core's PathMatcher in place, method_exists() finds no reset(), and the front-page\n// memo keeps leaking with every symptom intact -- so this has to be read rather than assumed.\ntry {\n\t$matcher = Drupal::service('path.matcher');\n\t$out['pathMatcherClass'] = get_class($matcher);\n\t$out['pathMatcherResettable'] = method_exists($matcher, 'reset');\n\t$out['isFrontPageNow'] = $matcher->isFrontPage();\n} catch (Throwable $e) {\n\t$out['pathMatcherError'] = $e->getMessage();\n}\n\ntry {\n\t$out['routerRoutes'] = (int) Drupal::database()\n\t\t->query('SELECT COUNT(*) FROM {router}')\n\t\t->fetchField();\n} catch (Throwable $e) {\n\t$out['routerError'] = $e->getMessage();\n}\n\necho json_encode($out);\n"