Skip to content

Commit ce16df7

Browse files
committed
Remove undocumented "connection" event and explicit Evenement dependency
1 parent c252676 commit ce16df7

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@
1515
},
1616
"require": {
1717
"php": ">=5.3",
18-
"react/socket": "^1.0 || ^0.8.6",
1918
"react/promise": "^2.1 || ^1.2",
20-
"evenement/evenement": "~3.0|~1.0|~2.0"
19+
"react/socket": "^1.0 || ^0.8.6"
2120
},
2221
"require-dev": {
2322
"phpunit/phpunit": "^6.0 || ^5.7 || ^4.8.35",

src/Server.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Clue\React\Socks;
44

5-
use Evenement\EventEmitter;
65
use React\Socket\ServerInterface;
76
use React\Promise;
87
use React\Promise\Deferred;
@@ -16,7 +15,7 @@
1615
use \Exception;
1716
use React\Promise\Timer\TimeoutException;
1817

19-
class Server extends EventEmitter
18+
class Server
2019
{
2120
// the following error codes are only used for SOCKS5 only
2221
/** @internal */
@@ -55,7 +54,6 @@ public function __construct(LoopInterface $loop, ServerInterface $serverInterfac
5554

5655
$that = $this;
5756
$serverInterface->on('connection', function ($connection) use ($that) {
58-
$that->emit('connection', array($connection));
5957
$that->onConnection($connection);
6058
});
6159
}

0 commit comments

Comments
 (0)