/var/www/vhosts/ihelp.ro/httpdocs/vendor/symfony/console
NameSizeModeActions
Attribute/-0755rm
CI/-0755rm
Command/-0755rm
CommandLoader/-0755rm
Completion/-0755rm
DependencyInjection/-0755rm
Descriptor/-0755rm
Event/-0755rm
EventListener/-0755rm
Exception/-0755rm
Formatter/-0755rm
Helper/-0755rm
Input/-0755rm
Logger/-0755rm
Output/-0755rm
Question/-0755rm
Resources/-0755rm
SignalRegistry/-0755rm
Style/-0755rm
Tester/-0755rm
Application.php467370644editdlrm
CHANGELOG.md102770644editdlrm
Color.php37810644editdlrm
composer.json15410644editdlrm
ConsoleEvents.php21740644editdlrm
Cursor.php39860644editdlrm
LICENSE10680644editdlrm
README.md12340644editdlrm
SingleCommandApplication.php17940644editdlrm
Terminal.php70550644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/symfony/console/SingleCommandApplication.php (1794B)
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Console; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; /** * @author Grégoire Pineau */ class SingleCommandApplication extends Command { private string $version = 'UNKNOWN'; private bool $autoExit = true; private bool $running = false; /** * @return $this */ public function setVersion(string $version): static { $this->version = $version; return $this; } /** * @final * * @return $this */ public function setAutoExit(bool $autoExit): static { $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; } }