@@ -14,27 +14,27 @@ class Factory
1414 public function create ($ nameserver , LoopInterface $ loop )
1515 {
1616 $ nameserver = $ this ->addPortToServerIfMissing ($ nameserver );
17- $ executor = $ this ->createExecutor ($ nameserver , $ loop );
17+ $ executor = $ this ->createExecutor ($ loop );
1818
1919 return new Resolver ($ nameserver , $ executor );
2020 }
2121
2222 public function createCached ($ nameserver , LoopInterface $ loop )
2323 {
2424 $ nameserver = $ this ->addPortToServerIfMissing ($ nameserver );
25- $ executor = $ this ->createCachedExecutor ($ nameserver , $ loop );
25+ $ executor = $ this ->createCachedExecutor ($ loop );
2626
2727 return new Resolver ($ nameserver , $ executor );
2828 }
2929
30- protected function createExecutor ($ nameserver , LoopInterface $ loop )
30+ protected function createExecutor (LoopInterface $ loop )
3131 {
3232 return new Executor ($ loop , new Parser (), new BinaryDumper ());
3333 }
3434
35- protected function createCachedExecutor ($ nameserver , LoopInterface $ loop )
35+ protected function createCachedExecutor (LoopInterface $ loop )
3636 {
37- return new CachedExecutor ($ this ->createExecutor (), new RecordCache ());
37+ return new CachedExecutor ($ this ->createExecutor ($ loop ), new RecordCache ());
3838 }
3939
4040 protected function addPortToServerIfMissing ($ nameserver )
0 commit comments