logger = $logger; $this->id = $id; } public function run(){ $this->registerClassLoader(); if(MainLogger::getLogger() === null){ $this->logger->registerStatic(); } gc_enable(); ini_set("memory_limit", '-1'); global $store; $store = []; } public function handleException(\Throwable $e){ $this->logger->logException($e); } public function getThreadName() : string{ return "Asynchronous Worker #" . $this->id; } }