public function __construct(HttpDownloader $httpDownloader, ?ProcessExecutor $processExecutor = null) { $this->httpDownloader = $httpDownloader; $this->httpDownloader ->enableAsync(); $this->processExecutor = $processExecutor; if ($this->processExecutor) { $this->processExecutor ->enableAsync(); } }