/opt/cpanel/ea-wappspector/vendor/rector/rector/vendor/symfony/console
NameSizeModeActions
Attribute/-0755rm
CI/-0755rm
Command/-0755rm
CommandLoader/-0755rm
Completion/-0755rm
DataCollector/-0755rm
Debug/-0755rm
DependencyInjection/-0755rm
Descriptor/-0755rm
Exception/-0755rm
Formatter/-0755rm
Helper/-0755rm
Input/-0755rm
Logger/-0755rm
Messenger/-0755rm
Output/-0755rm
Question/-0755rm
Resources/-0755rm
SignalRegistry/-0755rm
Style/-0755rm
Application.php488880644editdlrm
Color.php37180644editdlrm
composer.json18680644editdlrm
ConsoleEvents.php22240644editdlrm
Cursor.php40050644editdlrm
LICENSE10680644editdlrm
PATCHES.txt2650644editdlrm
README.md12340644editdlrm
SingleCommandApplication.php19360644editdlrm
Terminal.php73980644editdlrm
Edit: /opt/cpanel/ea-wappspector/vendor/rector/rector/vendor/symfony/console/SingleCommandApplication.php (1936B)
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace RectorPrefix202411\Symfony\Component\Console; use RectorPrefix202411\Symfony\Component\Console\Command\Command; use RectorPrefix202411\Symfony\Component\Console\Input\InputInterface; use RectorPrefix202411\Symfony\Component\Console\Output\OutputInterface; /** * @author Grégoire Pineau */ class SingleCommandApplication extends Command { /** * @var string */ private $version = 'UNKNOWN'; /** * @var bool */ private $autoExit = \true; /** * @var bool */ private $running = \false; /** * @return $this */ public function setVersion(string $version) { $this->version = $version; return $this; } /** * @final * * @return $this */ public function setAutoExit(bool $autoExit) { $this->autoExit = $autoExit; return $this; } public function run(?InputInterface $input = null, ?OutputInterface $output = null) : int { if ($this->running) { return parent::run($input, $output); } // We use the command name as the application name $application = new Application($this->getName() ?: 'UNKNOWN', $this->version); $application->setAutoExit($this->autoExit); // Fix the usage of the command displayed with "--help" $this->setName($_SERVER['argv'][0]); $application->add($this); $application->setDefaultCommand($this->getName(), \true); $this->running = \true; try { $ret = $application->run($input, $output); } finally { $this->running = \false; } return $ret ?? 1; } }