#110780 Не работает консольная команда
This commit is contained in:
1 parent
23b75f0e43
commit
c9f761bd69
2 files changed
+16
-12
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user