function __construct(ec2 $ec2) { $this->ec2 = $ec2; $this->dns = new \Hoa\Dns\Resolver(new \Hoa\Socket\Server($this->listener)); }