protected function execute(InputInterface $input, OutputInterface $output)
 {
     parent::execute($input, $output);
     $this->deleteFolder($input, $output);
     $this->deleteVirtualHost($input, $output);
     $this->deleteDatabase($input, $output);
 }
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     parent::execute($input, $output);
     $this->symlink = $input->getArgument('symlink');
     $this->check($input, $output);
     $this->symlinkProjects($input, $output);
 }
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     parent::execute($input, $output);
     $this->dbname = $input->getOption('dbname');
     $this->dbprefix = $input->getOption('dbprefix');
     $this->nousers = $input->getOption('nousers');
     $this->versions = new Versions();
     if ($input->getOption('clear-cache')) {
         $this->versions->refresh();
     }
     $this->setVersion($input->getOption('joomla'));
     $this->symlink = $input->getOption('symlink');
     if (is_string($this->symlink)) {
         $this->symlink = explode(',', $this->symlink);
     }
     $this->sample_data = $input->getOption('sample-data');
     $this->source_db = $this->target_dir . '/installation/sql/mysql/joomla.sql';
     $this->check($input, $output);
     $this->createFolder($input, $output);
     $this->createDatabase($input, $output);
     $this->modifyConfiguration($input, $output);
     $this->addVirtualHost($input, $output);
     $this->symlinkProjects($input, $output);
     $this->installExtensions($input, $output);
     $this->enableWebInstaller($input, $output);
     // $this->createUser($input, $output);
     if ($this->version) {
         $output->writeln("Your new Joomla site has been created.");
         if (!$this->nousers) {
             $output->writeln("You can login using the following username and password combination: <info></info>/<info>admin</info>.");
         }
     }
 }
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     parent::execute($input, $output);
     $this->extension = $input->getArgument('extension');
     $this->check($input, $output);
     $this->install($input, $output);
 }
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     parent::execute($input, $output);
     $this->check($input, $output);
     require_once $this->target_dir . '/libraries/koowa/libraries/koowa.php';
     require_once $this->target_dir . '/configuration.php';
     \Koowa::getInstance();
     $config = new \JConfig();
     $secret = $config->secret;
     $user = $input->getArgument('username');
     $token = \KObjectManager::getInstance()->getObject('http.token')->setSubject($user)->sign($secret);
     $output->writeln($token);
 }