@@ -35,7 +35,7 @@ public function __construct($host = '127.0.0.1', $port = 9001, $username = '', $
35
35
* @return array
36
36
* @throws \Exception
37
37
*/
38
- private function _call ($ method , array $ params = [])
38
+ function __call ($ method , array $ params = [])
39
39
{
40
40
if (strpos ($ method , '. ' ) === false ) {
41
41
$ method = 'supervisor. ' . $ method ;
@@ -75,7 +75,7 @@ private function _call($method, array $params = [])
75
75
*/
76
76
public function getApiVersion ()
77
77
{
78
- return $ this ->_call ('getAPIVersion ' );
78
+ return $ this ->__call ('getAPIVersion ' );
79
79
}
80
80
81
81
/**
@@ -86,7 +86,7 @@ public function getApiVersion()
86
86
*/
87
87
public function getSupervisorVersion ()
88
88
{
89
- return $ this ->_call ('getSupervisorVersion ' );
89
+ return $ this ->__call ('getSupervisorVersion ' );
90
90
}
91
91
92
92
/**
@@ -103,7 +103,7 @@ public function getSupervisorVersion()
103
103
*/
104
104
public function getIdentification ()
105
105
{
106
- return $ this ->_call ('getIdentification ' );
106
+ return $ this ->__call ('getIdentification ' );
107
107
}
108
108
109
109
/**
@@ -142,7 +142,7 @@ public function getIdentification()
142
142
*/
143
143
public function getState ()
144
144
{
145
- return $ this ->_call ('getState ' );
145
+ return $ this ->__call ('getState ' );
146
146
}
147
147
148
148
/**
@@ -153,7 +153,7 @@ public function getState()
153
153
*/
154
154
public function getPid ()
155
155
{
156
- return $ this ->_call ('getPID ' );
156
+ $ this ->__call ('getPID ' );
157
157
}
158
158
159
159
/**
@@ -183,7 +183,7 @@ public function getPid()
183
183
*/
184
184
public function readLog ($ offset , $ length )
185
185
{
186
- return $ this ->_call ('readLog ' , [$ offset , $ length ]);
186
+ $ this ->__call ('readLog ' , [$ offset , $ length ]);
187
187
}
188
188
189
189
/**
@@ -197,7 +197,7 @@ public function readLog($offset, $length)
197
197
*/
198
198
public function clearLog ()
199
199
{
200
- return $ this ->_call ('clearLog ' );
200
+ $ this ->__call ('clearLog ' );
201
201
}
202
202
203
203
/**
@@ -213,7 +213,7 @@ public function clearLog()
213
213
*/
214
214
public function shutdown ()
215
215
{
216
- return $ this ->_call ('shutdown ' );
216
+ $ this ->__call ('shutdown ' );
217
217
}
218
218
219
219
/**
@@ -230,7 +230,7 @@ public function shutdown()
230
230
*/
231
231
public function restart ()
232
232
{
233
- return $ this ->_call ('restart ' );
233
+ $ this ->__call ('restart ' );
234
234
}
235
235
236
236
/**
@@ -258,7 +258,7 @@ public function restart()
258
258
*/
259
259
public function getProcessInfo ($ name )
260
260
{
261
- return $ this ->_call ('getProcessInfo ' , [$ name ]);
261
+ $ this ->__call ('getProcessInfo ' , [$ name ]);
262
262
}
263
263
264
264
/**
@@ -272,7 +272,7 @@ public function getProcessInfo($name)
272
272
*/
273
273
public function getAllProcessInfo ()
274
274
{
275
- return $ this ->_call ('getAllProcessInfo ' );
275
+ $ this ->__call ('getAllProcessInfo ' );
276
276
}
277
277
278
278
/**
@@ -285,7 +285,7 @@ public function getAllProcessInfo()
285
285
*/
286
286
public function startProcess ($ name , $ wait = true )
287
287
{
288
- return $ this ->_call ('startProcess ' , [$ name , $ wait ]);
288
+ $ this ->__call ('startProcess ' , [$ name , $ wait ]);
289
289
}
290
290
291
291
/**
@@ -298,7 +298,7 @@ public function startProcess($name, $wait = true)
298
298
*/
299
299
public function stopProcess ($ name , $ wait = true )
300
300
{
301
- return $ this ->_call ('stopProcess ' , [$ name , $ wait ]);
301
+ return $ this ->__call ('stopProcess ' , [$ name , $ wait ]);
302
302
}
303
303
304
304
/**
@@ -311,7 +311,7 @@ public function stopProcess($name, $wait = true)
311
311
*/
312
312
public function startProcessGroup ($ name , $ wait = true )
313
313
{
314
- return $ this ->_call ('startProcessGroup ' , [$ name , $ wait ]);
314
+ $ this ->__call ('startProcessGroup ' , [$ name , $ wait ]);
315
315
}
316
316
317
317
/**
@@ -324,7 +324,7 @@ public function startProcessGroup($name, $wait = true)
324
324
*/
325
325
public function stopProcessGroup ($ name , $ wait = true )
326
326
{
327
- return $ this ->_call ('stopProcessGroup ' , [$ name , $ wait ]);
327
+ $ this ->__call ('stopProcessGroup ' , [$ name , $ wait ]);
328
328
}
329
329
330
330
/**
@@ -336,7 +336,7 @@ public function stopProcessGroup($name, $wait = true)
336
336
*/
337
337
public function startAllProcesses ($ wait = true )
338
338
{
339
- return $ this ->_call ('startAllProcesses ' , [$ wait ]);
339
+ $ this ->__call ('startAllProcesses ' , [$ wait ]);
340
340
}
341
341
342
342
/**
@@ -348,7 +348,7 @@ public function startAllProcesses($wait = true)
348
348
*/
349
349
public function stopAllProcesses ($ wait = true )
350
350
{
351
- return $ this ->_call ('stopAllProcesses ' , [$ wait ]);
351
+ $ this ->__call ('stopAllProcesses ' , [$ wait ]);
352
352
}
353
353
354
354
/**
@@ -365,7 +365,7 @@ public function stopAllProcesses($wait = true)
365
365
*/
366
366
public function sendProcessStdin ($ name , $ chars )
367
367
{
368
- return $ this ->_call ('sendProcessStdin ' , [$ name , $ chars ]);
368
+ $ this ->__call ('sendProcessStdin ' , [$ name , $ chars ]);
369
369
}
370
370
371
371
/**
@@ -378,7 +378,7 @@ public function sendProcessStdin($name, $chars)
378
378
*/
379
379
public function sendRemoteCommEvent ($ type , $ data )
380
380
{
381
- return $ this ->_call ('sendRemoteCommEvent ' , [$ type , $ data ]);
381
+ $ this ->__call ('sendRemoteCommEvent ' , [$ type , $ data ]);
382
382
}
383
383
384
384
/**
@@ -390,7 +390,7 @@ public function sendRemoteCommEvent($type, $data)
390
390
*/
391
391
public function addProcessGroup ($ name )
392
392
{
393
- return $ this ->_call ('addProcessGroup ' , [$ name ]);
393
+ $ this ->__call ('addProcessGroup ' , [$ name ]);
394
394
}
395
395
396
396
/**
@@ -402,7 +402,7 @@ public function addProcessGroup($name)
402
402
*/
403
403
public function removeProcessGroup ($ name )
404
404
{
405
- return $ this ->_call ('removeProcessGroup ' , [$ name ]);
405
+ return $ this ->__call ('removeProcessGroup ' , [$ name ]);
406
406
}
407
407
408
408
/**
@@ -416,7 +416,7 @@ public function removeProcessGroup($name)
416
416
*/
417
417
public function readProcessStdoutLog ($ name , $ offset , $ length )
418
418
{
419
- return $ this ->_call ('readProcessStdoutLog ' , [$ name , $ offset , $ length ]);
419
+ $ this ->__call ('readProcessStdoutLog ' , [$ name , $ offset , $ length ]);
420
420
}
421
421
422
422
/**
@@ -430,7 +430,7 @@ public function readProcessStdoutLog($name, $offset, $length)
430
430
*/
431
431
public function readProcessStderrLog ($ name , $ offset , $ length )
432
432
{
433
- return $ this ->_call ('readProcessStderrLog ' , [$ name , $ offset , $ length ]);
433
+ $ this ->__call ('readProcessStderrLog ' , [$ name , $ offset , $ length ]);
434
434
}
435
435
436
436
/**
@@ -450,7 +450,7 @@ public function readProcessStderrLog($name, $offset, $length)
450
450
*/
451
451
public function tailProcessStdoutLog ($ name , $ offset , $ length )
452
452
{
453
- return $ this ->_call ('tailProcessStdoutLog ' , [$ name , $ offset , $ length ]);
453
+ $ this ->__call ('tailProcessStdoutLog ' , [$ name , $ offset , $ length ]);
454
454
}
455
455
456
456
/**
@@ -470,7 +470,7 @@ public function tailProcessStdoutLog($name, $offset, $length)
470
470
*/
471
471
public function tailProcessStderrLog ($ name , $ offset , $ length )
472
472
{
473
- return $ this ->_call ('tailProcessStderrLog ' , [$ name , $ offset , $ length ]);
473
+ $ this ->__call ('tailProcessStderrLog ' , [$ name , $ offset , $ length ]);
474
474
}
475
475
476
476
/**
@@ -482,7 +482,7 @@ public function tailProcessStderrLog($name, $offset, $length)
482
482
*/
483
483
public function clearProcessLogs ($ name )
484
484
{
485
- return $ this ->_call ('clearProcessLogs ' , $ name );
485
+ $ this ->__call ('clearProcessLogs ' , $ name );
486
486
}
487
487
488
488
/**
@@ -493,7 +493,7 @@ public function clearProcessLogs($name)
493
493
*/
494
494
public function clearAllProcessLogs ()
495
495
{
496
- return $ this ->_call ('clearAllProcessLogs ' );
496
+ $ this ->__call ('clearAllProcessLogs ' );
497
497
}
498
498
499
499
/**
@@ -504,7 +504,7 @@ public function clearAllProcessLogs()
504
504
*/
505
505
public function listMethods ()
506
506
{
507
- return $ this ->_call ('system.listMethods ' );
507
+ $ this ->__call ('system.listMethods ' );
508
508
}
509
509
510
510
/**
@@ -516,7 +516,7 @@ public function listMethods()
516
516
*/
517
517
public function methodHelp ($ name )
518
518
{
519
- return $ this ->_call ('system.methodHelp ' , ['supervisor. ' . $ name ]);
519
+ $ this ->__call ('system.methodHelp ' , ['supervisor. ' . $ name ]);
520
520
}
521
521
522
522
/**
@@ -529,7 +529,7 @@ public function methodHelp($name)
529
529
*/
530
530
public function methodSignature ($ name )
531
531
{
532
- return $ this ->_call ('system.methodSignature ' , ['supervisor. ' . $ name ]);
532
+ $ this ->__call ('system.methodSignature ' , ['supervisor. ' . $ name ]);
533
533
}
534
534
535
535
/**
@@ -544,7 +544,7 @@ public function methodSignature($name)
544
544
*/
545
545
public function multicall (array $ calls )
546
546
{
547
- return $ this ->_call ('system.multicall ' , [$ calls ]);
547
+ $ this ->__call ('system.multicall ' , [$ calls ]);
548
548
}
549
549
550
550
}
0 commit comments