/var/www/cobraambalaj/vendor/psy/psysh/src/Command
NameSizeModeActions
ListCommand/-0755rm
TimeitCommand/-0755rm
BufferCommand.php22180644editdlrm
ClearCommand.php10590644editdlrm
Command.php79430644editdlrm
DocCommand.php76490644editdlrm
DumpCommand.php25400644editdlrm
EditCommand.php57880644editdlrm
ExitCommand.php10840644editdlrm
HelpCommand.php29440644editdlrm
HistoryCommand.php75700644editdlrm
ListCommand.php99920644editdlrm
ParseCommand.php49990644editdlrm
PsyVersionCommand.php9530644editdlrm
ReflectingCommand.php104520644editdlrm
ShowCommand.php95100644editdlrm
SudoCommand.php37680644editdlrm
ThrowUpCommand.php44310644editdlrm
TimeitCommand.php53450644editdlrm
TraceCommand.php25930644editdlrm
WhereamiCommand.php42910644editdlrm
WtfCommand.php37830644editdlrm
Edit: /var/www/cobraambalaj/vendor/psy/psysh/src/Command/TraceCommand.php (2593B)
filter = new FilterOptions(); parent::__construct($name); } /** * {@inheritdoc} */ protected function configure() { list($grep, $insensitive, $invert) = FilterOptions::getOptions(); $this ->setName('trace') ->setDefinition([ new InputOption('include-psy', 'p', InputOption::VALUE_NONE, 'Include Psy in the call stack.'), new InputOption('num', 'n', InputOption::VALUE_REQUIRED, 'Only include NUM lines.'), $grep, $insensitive, $invert, ]) ->setDescription('Show the current call stack.') ->setHelp( <<<'HELP' Show the current call stack. Optionally, include PsySH in the call stack by passing the --include-psy option. e.g. > trace -n10 > trace --include-psy HELP ); } /** * {@inheritdoc} */ protected function execute(InputInterface $input, OutputInterface $output) { $this->filter->bind($input); $trace = $this->getBacktrace(new \Exception(), $input->getOption('num'), $input->getOption('include-psy')); $output->page($trace, ShellOutput::NUMBER_LINES); return 0; } /** * Get a backtrace for an exception. * * Optionally limit the number of rows to include with $count, and exclude * Psy from the trace. * * @param \Exception $e The exception with a backtrace * @param int $count (default: PHP_INT_MAX) * @param bool $includePsy (default: true) * * @return array Formatted stacktrace lines */ protected function getBacktrace(\Exception $e, $count = null, $includePsy = true) { return TraceFormatter::formatTrace($e, $this->filter, $count, $includePsy); } }