/
home
/
clp
/
htdocs
/
app
/
files
/
src
/
Command
/
up file
home
<?php namespace App\Command; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Question\ConfirmationQuestion; use App\Command\SiteCommand as SiteCommand; class SiteDeleteCommand extends SiteCommand { protected function configure() : void { goto D3e4a; df595: $this->setDescription("\x63\x6c\x70\143\164\154\40\163\151\x74\145\x3a\x64\145\x6c\x65\x74\145\x20\x2d\55\x64\157\x6d\x61\x69\156\x4e\141\155\145\75\167\x77\167\56\144\x6f\x6d\x61\151\156\56\x63\157\x6d"); goto F70a2; D3e4a: $this->setName("\x73\151\164\145\x3a\144\145\x6c\x65\x74\x65"); goto df595; e33d5: $this->addOption("\146\x6f\162\x63\x65", null, InputOption::VALUE_NONE); goto A5eda; F70a2: $this->addOption("\x64\157\x6d\141\x69\x6e\116\141\155\145", null, InputOption::VALUE_REQUIRED); goto e33d5; A5eda: } protected function execute(InputInterface $input, OutputInterface $output) : int { try { goto C1df2; b6854: $question = new ConfirmationQuestion(sprintf("\74\x69\156\x66\157\x3e\103\x6f\156\146\x69\162\x6d\40\x74\157\40\x64\x65\154\145\x74\145\40\x74\x68\x65\40\163\x69\164\145\x3a\x20\x25\163\74\57\151\156\x66\157\x3e\x20\x3c\143\x6f\x6d\x6d\x65\x6e\x74\76\x28\171\145\163\x2f\x6e\157\x29\72\74\x2f\x63\157\155\x6d\x65\156\x74\x3e\40", $domainName), false, "\57\x5e\x28\x79\145\163\x29\57\151"); goto d48aa; ac62c: if (!(false === $force)) { goto a40a1; } goto Ff270; Efbcd: $site = $this->getSite($domainName); goto ac62c; F3a21: if (!(false === $answer)) { goto B2d36; } goto B1d9c; b163b: C892b: goto B1519; B1519: return SiteCommand::SUCCESS; goto C5a11; B1d9c: return SiteCommand::SUCCESS; goto Dba4d; d48aa: $answer = $helper->ask($input, $output, $question); goto F3a21; c1fbe: $siteDeleter->delete(); goto def93; Ff270: $helper = $this->getHelper("\x71\165\x65\163\164\151\157\x6e"); goto b6854; F3785: $domainName = trim($input->getOption("\144\x6f\x6d\141\x69\x6e\x4e\141\x6d\x65")); goto e4d78; C1df2: $this->validateInput($input); goto F3785; D6190: $siteDeleter = $this->getSiteDeleter($site); goto c1fbe; e4d78: $force = $input->getOption("\146\157\162\x63\x65") === true; goto Efbcd; fad27: $siteEntity = $this->getSiteEntity($domainName); goto F9348; Dba4d: B2d36: goto Bdfa4; Bdfa4: a40a1: goto fad27; def93: $this->siteEntityManager->deleteEntity($siteEntity); goto A2aac; F9348: if (!(false === is_null($siteEntity))) { goto C892b; } goto D6190; A2aac: $output->writeln(sprintf("\x3c\151\156\146\157\x3e\x53\x69\x74\145\x3c\x2f\x69\x6e\x66\157\x3e\40\x3c\x63\157\155\x6d\145\156\x74\x3e\x25\x73\x3c\57\143\x6f\155\155\145\156\x74\76\x20\74\151\156\x66\157\x3e\150\141\163\40\x62\145\145\156\x20\144\x65\x6c\145\164\x65\x64\x2e\74\x2f\151\156\x66\157\76", $domainName)); goto b163b; C5a11: } catch (\Exception $e) { goto Bb6f6; a4d8d: return SiteCommand::FAILURE; goto aedb6; b24f9: $output->writeln(sprintf("\x3c\x65\x72\x72\157\162\x3e\x25\163\74\57\x65\162\162\157\162\x3e", $errorMessage)); goto a4d8d; Bb6f6: $errorMessage = $e->getMessage(); goto b24f9; aedb6: } } }