This commit is contained in:
2021-04-12 16:40:07 +08:00
parent c316ef0202
commit c9574ec09c
2 changed files with 2 additions and 5 deletions
+1 -2
View File
@@ -73,13 +73,12 @@ class ' . $managerName . 'Consumer extends \Rpc\Consumer
/**
* @param Users $users
* @param string $event
* @param array $params
* @throws Exception
*/
#[Consumer(\'default\')]
public function push(Users $users, string $event, array $params)
public function push(string $event, array $params)
{
}
+1 -3
View File
@@ -56,13 +56,11 @@ class ' . $managerName . 'Producer extends Controller
/**
* @param Users $users
* @param string $event
* @param array $params
* @throws Exception
*/
#[RpcProducer(cmd: \'default\', port: ' . $port . ')]
public function actionIndex()
public function actionIndex(array $params)
{
}