芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/airport-back/vendor/codeception/codeception/src/Codeception/Template/Upgrade4.php
isInstalled()) { $this->sayWarning('Codeception is not installed in this dir.'); return; } $this->sayInfo('Welcome to Codeception v4 Upgrade wizard!'); $this->say(''); $this->say('Codeception is maintained since 2011, is free & open-source.'); $this->say('To make it better we need your feedback on it!'); $this->say(''); $this->say('Please take a minute and fill in a brief survey:'); $this->say('
' . self::SURVEY_LINK . '
'); sleep(5); $this->say(''); $result = $this->ask('
Did you fill in the survey?
', true); if ($result) { $this->say('Thank you! '); } else { $this->say('Anyway...'); } $config = Configuration::config(); $modules = []; $suites = Configuration::suites(); if (empty($suites)) { $this->sayError("No suites found in current config."); $this->sayWarning('If you use sub-configs with `include` option, run this script on subconfigs:'); $this->sayWarning('Example: php vendor/bin/codecept init upgrade4 -c backend/'); throw new \Exception("No suites found, can't upgrade"); } foreach (Configuration::suites() as $suite) { $suiteConfig = Configuration::suiteSettings($suite, $config); $modules = array_merge($modules, Configuration::modules($suiteConfig)); } $numPackages = $this->addModulesToComposer($modules); if ($numPackages === 0) { $this->sayWarning("No upgrade needed! Everything is fine already"); return; } $this->saySuccess("Done upgrading!"); $this->say(''); $this->say('Please consider donating to Codeception on regular basis:'); $this->say(''); $this->say('
' . self::DONATE_LINK . '
'); $this->say(''); $this->say('It\'s ok to pay for reliable software.'); $this->say('Talk to your manager & support further development of Codeception!'); } private function isInstalled() { try { $this->checkInstalled(); } catch (\Exception $e) { return true; } return false; } }