ACIL FM
Dark
Refresh
Current DIR:
/opt/cpanel/ea-wappspector/vendor/rector/rector/vendor/symfony/console/Input
/
opt
cpanel
ea-wappspector
vendor
rector
rector
vendor
symfony
console
Input
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
ArgvInput.php
12.55 MB
chmod
View
DL
Edit
Rename
Delete
ArrayInput.php
5.85 MB
chmod
View
DL
Edit
Rename
Delete
Input.php
5.28 MB
chmod
View
DL
Edit
Rename
Delete
InputArgument.php
5.22 MB
chmod
View
DL
Edit
Rename
Delete
InputAwareInterface.php
615 B
chmod
View
DL
Edit
Rename
Delete
InputDefinition.php
11.89 MB
chmod
View
DL
Edit
Rename
Delete
InputInterface.php
4.62 MB
chmod
View
DL
Edit
Rename
Delete
InputOption.php
8.56 MB
chmod
View
DL
Edit
Rename
Delete
StreamableInputInterface.php
917 B
chmod
View
DL
Edit
Rename
Delete
StringInput.php
2.74 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /opt/cpanel/ea-wappspector/vendor/rector/rector/vendor/symfony/console/Input/Input.php
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace RectorPrefix202411\Symfony\Component\Console\Input; use RectorPrefix202411\Symfony\Component\Console\Exception\InvalidArgumentException; use RectorPrefix202411\Symfony\Component\Console\Exception\RuntimeException; /** * Input is the base class for all concrete Input classes. * * Three concrete classes are provided by default: * * * `ArgvInput`: The input comes from the CLI arguments (argv) * * `StringInput`: The input is provided as a string * * `ArrayInput`: The input is provided as an array * * @author Fabien Potencier <fabien@symfony.com> */ abstract class Input implements InputInterface, StreamableInputInterface { protected $definition; /** @var resource */ protected $stream; protected $options = []; protected $arguments = []; protected $interactive = \true; public function __construct(?InputDefinition $definition = null) { if (null === $definition) { $this->definition = new InputDefinition(); } else { $this->bind($definition); $this->validate(); } } /** * @return void */ public function bind(InputDefinition $definition) { $this->arguments = []; $this->options = []; $this->definition = $definition; $this->parse(); } /** * Processes command line arguments. * * @return void */ protected abstract function parse(); /** * @return void */ public function validate() { $definition = $this->definition; $givenArguments = $this->arguments; $missingArguments = \array_filter(\array_keys($definition->getArguments()), function ($argument) use($givenArguments, $definition) { return !\array_key_exists($argument, $givenArguments) && $definition->getArgument($argument)->isRequired(); }); if (\count($missingArguments) > 0) { throw new RuntimeException(\sprintf('Not enough arguments (missing: "%s").', \implode(', ', $missingArguments))); } } public function isInteractive() : bool { return $this->interactive; } /** * @return void */ public function setInteractive(bool $interactive) { $this->interactive = $interactive; } public function getArguments() : array { return \array_merge($this->definition->getArgumentDefaults(), $this->arguments); } /** * @return mixed */ public function getArgument(string $name) { if (!$this->definition->hasArgument($name)) { throw new InvalidArgumentException(\sprintf('The "%s" argument does not exist.', $name)); } return $this->arguments[$name] ?? $this->definition->getArgument($name)->getDefault(); } /** * @return void * @param mixed $value */ public function setArgument(string $name, $value) { if (!$this->definition->hasArgument($name)) { throw new InvalidArgumentException(\sprintf('The "%s" argument does not exist.', $name)); } $this->arguments[$name] = $value; } public function hasArgument(string $name) : bool { return $this->definition->hasArgument($name); } public function getOptions() : array { return \array_merge($this->definition->getOptionDefaults(), $this->options); } /** * @return mixed */ public function getOption(string $name) { if ($this->definition->hasNegation($name)) { if (null === ($value = $this->getOption($this->definition->negationToName($name)))) { return $value; } return !$value; } if (!$this->definition->hasOption($name)) { throw new InvalidArgumentException(\sprintf('The "%s" option does not exist.', $name)); } return \array_key_exists($name, $this->options) ? $this->options[$name] : $this->definition->getOption($name)->getDefault(); } /** * @return void * @param mixed $value */ public function setOption(string $name, $value) { if ($this->definition->hasNegation($name)) { $this->options[$this->definition->negationToName($name)] = !$value; return; } elseif (!$this->definition->hasOption($name)) { throw new InvalidArgumentException(\sprintf('The "%s" option does not exist.', $name)); } $this->options[$name] = $value; } public function hasOption(string $name) : bool { return $this->definition->hasOption($name) || $this->definition->hasNegation($name); } /** * Escapes a token through escapeshellarg if it contains unsafe chars. */ public function escapeToken(string $token) : string { return \preg_match('{^[\\w-]+$}', $token) ? $token : \escapeshellarg($token); } /** * @param resource $stream * * @return void */ public function setStream($stream) { $this->stream = $stream; } /** * @return resource */ public function getStream() { return $this->stream; } }
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply