Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.41
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
php /
Symfony /
Component /
Console /
Helper /
Delete
Unzip
Name
Size
Permission
Date
Action
DebugFormatterHelper.php
4.08
KB
-rw-r--r--
2016-06-06 18:05
DescriptorHelper.php
2.59
KB
-rw-r--r--
2016-06-06 18:05
DialogHelper.php
17.19
KB
-rw-r--r--
2016-06-06 18:05
FormatterHelper.php
2.27
KB
-rw-r--r--
2016-06-06 18:05
Helper.php
3.19
KB
-rw-r--r--
2016-06-06 18:05
HelperInterface.php
943
B
-rw-r--r--
2016-06-06 18:05
HelperSet.php
3.43
KB
-rw-r--r--
2016-06-06 18:05
InputAwareHelper.php
747
B
-rw-r--r--
2016-06-06 18:05
ProcessHelper.php
5
KB
-rw-r--r--
2016-06-06 18:05
ProgressBar.php
16.99
KB
-rw-r--r--
2016-06-06 18:05
ProgressHelper.php
12.36
KB
-rw-r--r--
2016-06-06 18:05
ProgressIndicator.php
9.08
KB
-rw-r--r--
2016-06-06 18:05
QuestionHelper.php
13.17
KB
-rw-r--r--
2016-06-06 18:05
SymfonyQuestionHelper.php
3.05
KB
-rw-r--r--
2016-06-06 18:05
Table.php
18.32
KB
-rw-r--r--
2019-11-13 20:36
TableCell.php
1.58
KB
-rw-r--r--
2016-06-06 18:05
TableHelper.php
6.11
KB
-rw-r--r--
2016-06-06 18:05
TableSeparator.php
610
B
-rw-r--r--
2016-06-06 18:05
TableStyle.php
5.18
KB
-rw-r--r--
2016-06-06 18:05
Save
Rename
<?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 Symfony\Component\Console\Helper; use Symfony\Component\Console\Exception\LogicException; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Question\ChoiceQuestion; use Symfony\Component\Console\Question\ConfirmationQuestion; use Symfony\Component\Console\Question\Question; use Symfony\Component\Console\Style\SymfonyStyle; /** * Symfony Style Guide compliant question helper. * * @author Kevin Bond <kevinbond@gmail.com> */ class SymfonyQuestionHelper extends QuestionHelper { /** * {@inheritdoc} */ public function ask(InputInterface $input, OutputInterface $output, Question $question) { $validator = $question->getValidator(); $question->setValidator(function ($value) use ($validator) { if (null !== $validator) { $value = $validator($value); } // make required if (!is_array($value) && !is_bool($value) && 0 === strlen($value)) { throw new LogicException('A value is required.'); } return $value; }); return parent::ask($input, $output, $question); } /** * {@inheritdoc} */ protected function writePrompt(OutputInterface $output, Question $question) { $text = $question->getQuestion(); $default = $question->getDefault(); switch (true) { case null === $default: $text = sprintf(' <info>%s</info>:', $text); break; case $question instanceof ConfirmationQuestion: $text = sprintf(' <info>%s (yes/no)</info> [<comment>%s</comment>]:', $text, $default ? 'yes' : 'no'); break; case $question instanceof ChoiceQuestion: $choices = $question->getChoices(); $text = sprintf(' <info>%s</info> [<comment>%s</comment>]:', $text, $choices[$default]); break; default: $text = sprintf(' <info>%s</info> [<comment>%s</comment>]:', $text, $default); } $output->writeln($text); if ($question instanceof ChoiceQuestion) { $width = max(array_map('strlen', array_keys($question->getChoices()))); foreach ($question->getChoices() as $key => $value) { $output->writeln(sprintf(" [<comment>%-${width}s</comment>] %s", $key, $value)); } } $output->write(' > '); } /** * {@inheritdoc} */ protected function writeError(OutputInterface $output, \Exception $error) { if ($output instanceof SymfonyStyle) { $output->newLine(); $output->error($error->getMessage()); return; } parent::writeError($output, $error); } }