#110780 Не работает консольная команда

This commit is contained in:
2025-04-10 14:34:14 +03:00
parent 23b75f0e43
commit c9f761bd69
2 changed files with 16 additions and 12 deletions

View File

@@ -28,10 +28,14 @@ class AmqpController extends Controller
*/
public function actionCreateAllQueue()
{
$amqp = new AmqpHelper;
foreach(Yii::$app->params['amqp']['queue'] as $key =>$value)
foreach(Yii::$app->params['amqp']['projects'] as $keyProject =>$project)
{
$amqp->getQueueObject($key);
$amqp = new AmqpHelper;
$amqp->setProject($keyProject);
foreach ($project["queues"] as $key =>$value)
{
$amqp->getQueueObject($key);
}
}
return ExitCode::OK;
}