<?php
namespace Claromentis\Console\Command;

$GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848e" . "536215"] ?: array()) + array("_1ac0335a1f605e216d9ffde5545a8" . "1e3" => base64_decode("YW" . "xs"), "_f78bbd3114fdb8f3ece993cc" . "e3ed36e9" => base64_decode("UnVuIHBlbmRpbmcgZGF0Y" . "WJhc2UgYW5kIGRhdGEgbW" . "lncmF0aW9ucw=="), "_636dfcf207e4016e321e" . "da49f4640c02" => base64_decode("SW5zdGFsbCBhcHBsaWNhdGlvbnMgaWYgdGhleSdyZSBub3QgaW5zdGF" . "sbGVk"), "_a606a2dcd236a54" . "9db0574a9c167592" . "7" => base64_decode("cg" . "=="), "_eb3d18600" . "8f632a0f30" . "f9ceb2ecf5" . "d9c" => base64_decode("cmVjb3Zlc" . "g=="), "_5eb80b3e" . "f353c095f" . "d1956a037" . "ca5892" => base64_decode("Tm90IGluc3Rhb" . "GxlZCwgaW5zdG" . "FsbGluZyBpbnN" . "0ZWFk"));
use Claromentis\Setup\Exception\NotInstalledException;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Style\SymfonyStyle;




class AppUpgradeCommand extends AppInstallCommand
{
    protected function configure()
    {
        parent::configure();
        $this->setDescription($GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["_f78bbd3114fdb8f3ece993c" . "ce3ed36e9"])->addOption($GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_eb3d186008f632a0f30f9ceb2ec" . "f5d9c"], $GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["_a606a2dcd23" . "6a549db0574a" . "9c1675927"], InputOption::VALUE_NONE, $GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["_636dfcf207e4016e32" . "1eda49f4640c02"]);
    }
    
    
    
    
    
    
    
    
    
    protected function executeTask(SymfonyStyle $_864a669886d8589b69da46fc523ffd71, InputInterface $_db34e0d240ded70491dbd8f19596a6cd, $_f44467aacb8a4520c7382769d24aa422)
    {
        $_eb3d186008f632a0f30f9ceb2ecf5d9c = $_db34e0d240ded70491dbd8f19596a6cd->getOption($GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_eb3d186008f632a0f30f9ceb2e" . "cf5d9c"]) || $_db34e0d240ded70491dbd8f19596a6cd->getOption($GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_1ac0335a1f605e216d9ffde" . "5545a81e3"]);
        $_c6a2115f762b2695bf8d81d19df793de = $this->getModuleApi()->getVersionFileOrFail($_f44467aacb8a4520c7382769d24aa422);
        try {
            $this->upgradeApplication($_864a669886d8589b69da46fc523ffd71, $_c6a2115f762b2695bf8d81d19df793de);
        } catch (NotInstalledException $_c35473364fa7a050299058f332ec29c1) {
            if (!$_eb3d186008f632a0f30f9ceb2ecf5d9c) {
                throw $_c35473364fa7a050299058f332ec29c1;
            }
            $this->logger->notice($GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"]["_5eb80b3ef353" . "c095fd1956a03" . "7ca5892"]);
            $this->installApplication($_864a669886d8589b69da46fc523ffd71, $_db34e0d240ded70491dbd8f19596a6cd, $_c6a2115f762b2695bf8d81d19df793de);
        }
    }
}