get(Application::class); $worker = $container->get(PSR7Worker::class); while ($req = $worker->waitRequest()) { try { $worker->respond($app->handle($req)); } catch (Throwable $e) { $worker->getWorker()->error((string) $e); } } } else { $container->get(RoadRunnerTaskConsumerToListener::class)->listenForTasks(); } })();