count = (int) shell_exec('nproc') * 4; $http_worker->name = 'AdapterMan-Laravel'; $http_worker->onWorkerStart = static function () { Header::$date = gmdate('D, d M Y H:i:s').' GMT'; Timer::add(1, function() { Header::$date = gmdate('D, d M Y H:i:s').' GMT'; }); //init(); require __DIR__.'/start.php'; }; $http_worker->onMessage = static function ($connection) { $connection->send(run()); }; Worker::runAll(); class Header { public static $date; }