This commit is contained in:
2024-11-20 12:51:47 +03:00
parent a27213b5d7
commit 86c05390a9
6 changed files with 553 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
<?php
/**
* @link https://www.kuvalda.ru/
* @copyright
* @license
*/
namespace dominion\amqp\console;
use Yii;
use yii\console\Controller;
use yii\console\ExitCode;
use dominion\amqp\AmqpHelper;
/**
* Работа с очередеми
*
* @author Rybkin Sasha <ribkin@dominion.ru>
* @since 0.1
*/
class AmqpController extends Controller
{
/**
* Создать все очереди
* @return int Exit code
*/
public function actionCreateAllQueue()
{
$amqp = new AmqpHelper;
foreach(Yii::$app->params['amqp']['queue'] as $key =>$value)
{
$amqp->getQueueObject($key);
}
return ExitCode::OK;
}
}