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

This commit is contained in:
srybkin committed 2025-04-10 14:34:14 +03:00
1 parent 23b75f0e43
commit c9f761bd69
2 files changed
+16 -12

No files matched your search

+7 -3
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;
}