Skip to content

Commit bb3073d

Browse files
committed
Replace references to new Socket
1 parent c2db656 commit bb3073d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Datagram/Factory.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use React\EventLoop\LoopInterface;
66
use React\Dns\Resolver\Resolver;
77
use React\Promise\When;
8+
use Datagram\Socket;
89
use \Exception;
910

1011
class Factory
@@ -29,7 +30,7 @@ public function createClient($host, $port)
2930
throw new Exception('Unable to create client socket: ' . $errstr, $errno);
3031
}
3132

32-
return new Client($loop, $socket, $address);
33+
return new Socket($loop, $socket, $address);
3334
});
3435
}
3536

@@ -42,7 +43,7 @@ public function createServer($port, $host = '127.0.0.1')
4243
return When::reject(new Exception('Unable to create server socket: ' . $errstr, $errno));
4344
}
4445

45-
return When::resolve(new Server($this->loop, $socket, $address));
46+
return When::resolve(new Socket($this->loop, $socket, $address));
4647
}
4748

4849
protected function resolve($host)

0 commit comments

Comments
 (0)