Skip to content

Commit 5fb0d6f

Browse files
committed
create frames using FrameFactory in Multiple frame
1 parent e6a2fac commit 5fb0d6f

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

lib/php/console/WinConsole.php

-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
*/
88
class WinConsole implements ConsoleInterface {
99

10-
public function __construct() {
11-
12-
}
13-
1410
/**
1511
* @param integer|string $pid
1612
*

lib/php/frames/Multiple.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function isValid() {
4949
*/
5050
public function createChannelEventFrame() {
5151
return $this
52-
->_nodeSocket
52+
->_nodeSocket->getFrameFactory()
5353
->createChannelEventFrame()
5454
->setAsMultiple($this);
5555
}
@@ -59,7 +59,7 @@ public function createChannelEventFrame() {
5959
*/
6060
public function createEventFrame() {
6161
return $this
62-
->_nodeSocket
62+
->_nodeSocket->getFrameFactory()
6363
->createEventFrame()
6464
->setAsMultiple($this);
6565
}
@@ -76,7 +76,7 @@ public function createMultipleFrame() {
7676
*/
7777
public function createPublicDataFrame() {
7878
return $this
79-
->_nodeSocket
79+
->_nodeSocket->getFrameFactory()
8080
->createPublicDataFrame()
8181
->setAsMultiple($this);
8282
}
@@ -86,7 +86,7 @@ public function createPublicDataFrame() {
8686
*/
8787
public function createInvokeFrame() {
8888
return $this
89-
->_nodeSocket
89+
->_nodeSocket->getFrameFactory()
9090
->createInvokeFrame()
9191
->setAsMultiple($this);
9292
}
@@ -96,7 +96,7 @@ public function createInvokeFrame() {
9696
*/
9797
public function createJQueryFrame() {
9898
return $this
99-
->_nodeSocket
99+
->_nodeSocket->getFrameFactory()
100100
->createJQueryFrame()
101101
->setAsMultiple($this);
102102
}

0 commit comments

Comments
 (0)