/var/www/vhosts/ihelp.ro/_OLD/vendor/symfony/console
NameSizeModeActions
Command/-0755rm
CommandLoader/-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
Style/-0755rm
Tester/-0755rm
Application.php400770644editdlrm
CHANGELOG.md70990644editdlrm
composer.json17390644editdlrm
ConsoleEvents.php13240644editdlrm
Cursor.php36240644editdlrm
LICENSE10650644editdlrm
README.md6860644editdlrm
SingleCommandApplication.php14690644editdlrm
Terminal.php49990644editdlrm
Edit: /var/www/vhosts/ihelp.ro/_OLD/vendor/symfony/console/SingleCommandApplication.php (1469B)
* * 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 $version = 'UNKNOWN'; private $running = false; public function setVersion(string $version): self { $this->version = $version; 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); // 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; } }