* @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; } }