public function actionUnsubscribe($queue_name)
    {
        /** @var QueueInterface $queue */
        list($queue, $authItems) = $this->loadQueue($queue_name, ['nfy.queue.unsubscribe']);
        $queue->unsubscribe(Yii::$app->user->getId());

        return $this->redirect(['index']);
    }
public function actionUnsubscribe($queue_name)
    {
        /** @var QueueInterface $queue */
        list($queue, $authItems) = $this->loadQueue($queue_name, ['nfy.queue.unsubscribe']);
        $queue->unsubscribe(Yii::$app->user->getId());

        return $this->redirect(['index']);
    }
public function actionUnsubscribe ( $ queue_name ) { /** @var QueueInterface $queue */ list ( $ queue , $ authItems ) = $ this -> loadQueue ( $ queue_name , [ 'nfy.queue.unsubscribe' ] ) ; $ queue -> unsubscribe ( Yii :: $ app -> user -> getId ( ) ) ; return $ this -> redirect ( [ 'index' ] ) ; }
Unsubscribe current user from selected queue.
@param string $queue_name
@return \yii\web\Response
Unsubscribe current user from selected queue .