Skip to content

Commit 95e5e7d

Browse files
committed
Use new Socket API
1 parent 6e0f7ce commit 95e5e7d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ proxy servers etc.), you can explicitly pass a custom instance of the
122122
[`ConnectorInterface`](https://github.com/reactphp/socket#connectorinterface):
123123

124124
```php
125-
$connector = new React\Socket\Connector(null, array(
125+
$connector = new React\Socket\Connector(array(
126126
'dns' => '127.0.0.1',
127127
'tcp' => array(
128128
'bindto' => '192.168.10.1:0'

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"evenement/evenement": "^3.0 || ^2.0 || ^1.0",
1616
"react/event-loop": "^1.2",
1717
"react/promise": "^2.0 || ^1.1",
18-
"react/socket": "^1.8"
18+
"react/socket": "^1.9"
1919
},
2020
"require-dev": {
2121
"clue/block-react": "^1.2",

src/Factory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* [`ConnectorInterface`](https://github.com/reactphp/socket#connectorinterface):
2626
*
2727
* ```php
28-
* $connector = new React\Socket\Connector(null, array(
28+
* $connector = new React\Socket\Connector(array(
2929
* 'dns' => '127.0.0.1',
3030
* 'tcp' => array(
3131
* 'bindto' => '192.168.10.1:0'
@@ -46,7 +46,7 @@ class Factory
4646
public function __construct(LoopInterface $loop = null, ConnectorInterface $connector = null)
4747
{
4848
if ($connector === null) {
49-
$connector = new Connector($loop);
49+
$connector = new Connector(array(), $loop);
5050
}
5151

5252
$this->connector = $connector;

0 commit comments

Comments
 (0)