File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -110,6 +110,6 @@ private function boolParam($value)
110110
111111 private function request ($ name , array $ args = array ())
112112 {
113- return $ this ->client ->request (new Action ($ name , $ args ));
113+ return $ this ->client ->request ($ this -> client -> createAction ($ name , $ args ));
114114 }
115115}
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ class Client extends EventEmitter
2020 private $ pending = array ();
2121 private $ ending = false ;
2222
23+ private $ actionId = 0 ;
24+
2325 public function __construct (Stream $ stream , Parser $ parser = null )
2426 {
2527 if ($ parser === null ) {
@@ -124,4 +126,11 @@ public function isBusy()
124126 {
125127 return !!$ this ->pending ;
126128 }
129+
130+ public function createAction ($ name , array $ args = array ())
131+ {
132+ $ args = array ('ActionID ' => (string )++$ this ->actionId ) + $ args ;
133+
134+ return new Action ($ name , $ args );
135+ }
127136}
You can’t perform that action at this time.
0 commit comments