<?php

namespace Hubleto\App\Community\Cloud\Controllers;

use Hubleto\App\Community\Cloud\PremiumAccount;

class ActivateSubscriptionRenewal extends \Hubleto\Erp\Controller
{
  public function prepareView(): void
  {
    parent::prepareView();

    $premiumAccount = $this->getService(PremiumAccount::class);
    $premiumAccount->activateSubscriptionRenewal();

    $this->router()->redirectTo('cloud');
  }

}
