/var/www/vhosts/ihelp.ro/httpdocs/vendor/psy/psysh/src/Command
NameSizeModeActions
ListCommand/-0755rm
TimeitCommand/-0755rm
BufferCommand.php24850644editdlrm
ClearCommand.php11280644editdlrm
Command.php78590644editdlrm
DocCommand.php92490644editdlrm
DumpCommand.php26160644editdlrm
EditCommand.php58590644editdlrm
ExitCommand.php11530644editdlrm
HelpCommand.php30210644editdlrm
HistoryCommand.php76890644editdlrm
ListCommand.php100460644editdlrm
ParseCommand.php47870644editdlrm
PsyVersionCommand.php9530644editdlrm
ReflectingCommand.php118800644editdlrm
ShowCommand.php98730644editdlrm
SudoCommand.php38510644editdlrm
ThrowUpCommand.php44690644editdlrm
TimeitCommand.php57350644editdlrm
TraceCommand.php26960644editdlrm
WhereamiCommand.php43660644editdlrm
WtfCommand.php38520644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/psy/psysh/src/Command/DumpCommand.php (2616B)
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} * * @return int 0 if everything went fine, or an exit code */ 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(string $name) { @\trigger_error('`resolveTarget` is deprecated; use `resolveCode` instead.', \E_USER_DEPRECATED); return $this->resolveCode($name); } }