1 | <?php |
||
66 | class WorkerCommand extends Controller |
||
67 | { |
||
68 | use CommandTrait; |
||
69 | |||
70 | /** |
||
71 | * @var string |
||
72 | */ |
||
73 | public $defaultAction = 'work'; |
||
74 | |||
75 | /** |
||
76 | * @var int |
||
77 | */ |
||
78 | public $delay = 15; |
||
79 | |||
80 | /** |
||
81 | * Node js listener. |
||
82 | * |
||
83 | * @throws \Exception |
||
84 | */ |
||
85 | public function actionNodeJsServer() |
||
92 | |||
93 | /** |
||
94 | * Php listener |
||
95 | * |
||
96 | * @throws \Exception |
||
97 | */ |
||
98 | public function actionPhpServer() |
||
104 | |||
105 | /** |
||
106 | * @return FileOutput |
||
107 | */ |
||
108 | protected function output($text) |
||
112 | } |
||
113 |