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

    Variable TCP_LIVE_PHPConst

    TCP_LIVE_PHP: "\nuse Drupal\\drupflare\\Network\\CfwTcp;\n\n// __CFW_HOST_HELPERS__\nchdir('/drupal');\n\n$opt = json_decode(__CFW_PAYLOAD__, true);\n$out = ['protocol' => $opt['protocol']];\n\ntry {\n\t// require rather than require_once: the latter returns TRUE on a second call, and a heap restore\n\t// reaches that state; see the note in site-php.ts\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// the pack does not enable this module, so nothing else registers its namespace\n\t$GLOBALS['__pw_autoloader']->addPsr4(\n\t\t'Drupal\\\\drupflare\\\\',\n\t\t'/drupal/modules/custom/drupflare/src/',\n\t);\n\n\t$out['available'] = CfwTcp::available();\n\tif ($opt['protocol'] === 'redis') {\n\t\t$reply = CfwTcp::redis($opt['args']);\n\t\t$out['ok'] = $reply['ok'] ?? false;\n\t\t$out['value'] = $reply['value'] ?? null;\n\t\t$out['error'] = $reply['error'] ?? null;\n\t\t$out['queued'] = $reply['queued'] ?? false;\n\t} else {\n\t\t$out['ok'] = CfwTcp::syslog($opt['message'], 'info', ['msgId' => 'cfwtcp']);\n\t}\n} catch (Throwable $e) {\n\t$out['throw'] = get_class($e) . ': ' . $e->getMessage();\n}\n\necho json_encode($out);\n"