/home/techb158/dev.balacoffee.com/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.php445810644editdlrm
CHANGELOG.md84430644editdlrm
Color.php50960644editdlrm
composer.json18530644editdlrm
ConsoleEvents.php21740644editdlrm
Cursor.php41300644editdlrm
LICENSE10680644editdlrm
README.md12320644editdlrm
SingleCommandApplication.php17730644editdlrm
Terminal.php52170644editdlrm
Edit: /home/techb158/dev.balacoffee.com/vendor/symfony/console/SingleCommandApplication.php (1773B)
* * 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 $autoExit = true; private $running = false; /** * @return $this */ public function setVersion(string $version): self { $this->version = $version; return $this; } /** * @final * * @return $this */ public function setAutoExit(bool $autoExit): self { $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; } }