File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 44
55use Psr \Http \Message \RequestInterface ;
66use Psr \Http \Message \ServerRequestInterface ;
7+ use React \Socket \ServerInterface ;
78use RingCentral \Psr7 \Response ;
89
910class Server
@@ -13,7 +14,10 @@ class Server
1314 */
1415 private $ functions ;
1516
16- public function listen (\React \Socket \Server $ socket )
17+ /**
18+ * @param ServerInterface $socket
19+ */
20+ public function listen (ServerInterface $ socket )
1721 {
1822 $ middleWareFunctions = array ();
1923
@@ -62,11 +66,6 @@ public function options(string $path, callable $callable)
6266 $ this ->functions ['options ' ][$ path ] = $ callable ;
6367 }
6468
65- public function connect (string $ path , callable $ callable )
66- {
67- $ this ->functions ['connect ' ][$ path ] = $ callable ;
68- }
69-
7069 public function trace (string $ path , callable $ callable )
7170 {
7271 $ this ->functions ['trace ' ][$ path ] = $ callable ;
You can’t perform that action at this time.
0 commit comments