mirror of
https://github.com/danog/dns.git
synced 2024-12-03 09:57:56 +01:00
20 lines
301 B
PHP
20 lines
301 B
PHP
|
<?php
|
||
|
|
||
|
namespace Addr;
|
||
|
|
||
|
use Alert\Reactor;
|
||
|
|
||
|
class ResolverFactory
|
||
|
{
|
||
|
/**
|
||
|
* Create a new resolver instance
|
||
|
*
|
||
|
* @param Reactor $reactor
|
||
|
* @return Resolver
|
||
|
*/
|
||
|
public function createResolver(Reactor $reactor)
|
||
|
{
|
||
|
return new Resolver($reactor, new Cache);
|
||
|
}
|
||
|
}
|