/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/DumpCommand.php (2540B)
presenter = $presenter; } /** * {@inheritdoc} */ protected function configure() { $this ->setName('dump') ->setDefinition([ new CodeArgument('target', CodeArgument::REQUIRED, 'A target object or primitive to dump.'), new InputOption('depth', '', InputOption::VALUE_REQUIRED, 'Depth to parse.', 10), new InputOption('all', 'a', InputOption::VALUE_NONE, 'Include private and protected methods and properties.'), ]) ->setDescription('Dump an object or primitive.') ->setHelp( <<<'HELP' Dump an object or primitive. This is like var_dump but way awesomer. e.g. >>> dump $_ >>> dump $someVar >>> dump $stuff->getAll() HELP ); } /** * {@inheritdoc} */ protected function execute(InputInterface $input, OutputInterface $output) { $depth = $input->getOption('depth'); $target = $this->resolveCode($input->getArgument('target')); $output->page($this->presenter->present($target, $depth, $input->getOption('all') ? Presenter::VERBOSE : 0)); if (\is_object($target)) { $this->setCommandScopeVariables(new \ReflectionObject($target)); } return 0; } /** * @deprecated Use `resolveCode` instead * * @param string $name * * @return mixed */ protected function resolveTarget($name) { @\trigger_error('`resolveTarget` is deprecated; use `resolveCode` instead.', \E_USER_DEPRECATED); return $this->resolveCode($name); } }