create() ), new ResponseInterpreter( (new DecoderFactory)->create() ), $serverAddr, $serverPort, $requestTimeout ); $cache = new MemoryCache; $hostsFile = new HostsFile($nameValidator, $hostsFilePath); return new Resolver($reactor, $nameValidator, $client, $cache, $hostsFile); } }