18 | */
19 | class OutOfMemoryException extends FatalErrorException
20 | {
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_1.php:
--------------------------------------------------------------------------------
1 | title('Title');
11 | $output->warning('Lorem ipsum dolor sit amet');
12 | $output->title('Title');
13 | };
14 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Exception/InvalidArgumentException.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Console\Exception;
13 |
14 | /**
15 | * @author Jérôme Tamarelle
16 | */
17 | class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface
18 | {
19 | }
20 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_17.php:
--------------------------------------------------------------------------------
1 | title('Title ending with \\');
12 | $output->section('Section ending with \\');
13 | };
14 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_9.php:
--------------------------------------------------------------------------------
1 | block(array('Custom block', 'Second custom block line'), 'CUSTOM', 'fg=white;bg=green', 'X ', true);
11 | };
12 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/command_mbstring.md:
--------------------------------------------------------------------------------
1 | `descriptor:åèä`
2 | ----------------
3 |
4 | command åèä description
5 |
6 | ### Usage
7 |
8 | * `descriptor:åèä [-o|--option_åèä] [--] `
9 | * `descriptor:åèä -o|--option_name `
10 | * `descriptor:åèä `
11 |
12 | command åèä help
13 |
14 | ### Arguments
15 |
16 | #### `argument_åèä`
17 |
18 | * Is required: yes
19 | * Is array: no
20 | * Default: `NULL`
21 |
22 | ### Options
23 |
24 | #### `--option_åèä|-o`
25 |
26 | * Accept value: no
27 | * Is value required: no
28 | * Is multiple: no
29 | * Default: `false`
30 |
--------------------------------------------------------------------------------
/vendor/symfony/debug/Tests/MockExceptionHandler.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Debug\Tests;
13 |
14 | use Symfony\Component\Debug\ExceptionHandler;
15 |
16 | class MockExceptionHandler extends ExceptionHandler
17 | {
18 | public $e;
19 |
20 | public function handle(\Exception $e)
21 | {
22 | $this->e = $e;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/Foo2Command.php:
--------------------------------------------------------------------------------
1 | setName('foo1:bar')
13 | ->setDescription('The foo1:bar command')
14 | ->setAliases(array('afoobar2'))
15 | ;
16 | }
17 |
18 | protected function execute(InputInterface $input, OutputInterface $output)
19 | {
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/command_2.md:
--------------------------------------------------------------------------------
1 | `descriptor:command2`
2 | ---------------------
3 |
4 | command 2 description
5 |
6 | ### Usage
7 |
8 | * `descriptor:command2 [-o|--option_name] [--] `
9 | * `descriptor:command2 -o|--option_name `
10 | * `descriptor:command2 `
11 |
12 | command 2 help
13 |
14 | ### Arguments
15 |
16 | #### `argument_name`
17 |
18 | * Is required: yes
19 | * Is array: no
20 | * Default: `NULL`
21 |
22 | ### Options
23 |
24 | #### `--option_name|-o`
25 |
26 | * Accept value: no
27 | * Is value required: no
28 | * Is multiple: no
29 | * Default: `false`
30 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Exception/InvalidOptionException.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Console\Exception;
13 |
14 | /**
15 | * Represents an incorrect option name typed in the console.
16 | *
17 | * @author Jérôme Tamarelle
18 | */
19 | class InvalidOptionException extends \InvalidArgumentException implements ExceptionInterface
20 | {
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/symfony/var-dumper/Resources/functions/dump.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | use Symfony\Component\VarDumper\VarDumper;
13 |
14 | if (!function_exists('dump')) {
15 | /**
16 | * @author Nicolas Grekas
17 | */
18 | function dump($var)
19 | {
20 | foreach (func_get_args() as $var) {
21 | VarDumper::dump($var);
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/input_definition_4.json:
--------------------------------------------------------------------------------
1 | {
2 | "arguments": {
3 | "argument_name": {
4 | "name": "argument_name",
5 | "is_required": true,
6 | "is_array": false,
7 | "description": "",
8 | "default": null
9 | }
10 | },
11 | "options": {
12 | "option_name": {
13 | "name": "--option_name",
14 | "shortcut": "-o",
15 | "accept_value": false,
16 | "is_value_required": false,
17 | "is_multiple": false,
18 | "description": "",
19 | "default": false
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "selden1992/cmd",
3 | "description": "framework",
4 | "license": "proprietary",
5 | "type": "project",
6 | "authors": [
7 | {
8 | "name": "ming yue you se",
9 | "email": "2206582181@qq.com"
10 | }
11 | ],
12 | "autoload": {
13 | "psr-4": {
14 | "Command\\": "cmd/",
15 | "Packers\\":"packers/"
16 | },
17 | "classmap":["src/"]
18 | },
19 | "repositories": {
20 | "packagist": {
21 | "type": "composer",
22 | "url": "https://packagist.phpcomposer.com"
23 | }
24 | },
25 | "require": {
26 | "symfony/var-dumper": "^3.3",
27 | "symfony/console": "~3.3"
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_6.php:
--------------------------------------------------------------------------------
1 | listing(array(
12 | 'Lorem ipsum dolor sit amet',
13 | 'consectetur adipiscing elit',
14 | ));
15 | $output->success('Lorem ipsum dolor sit amet');
16 | };
17 |
--------------------------------------------------------------------------------
/bin/phps:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | dir=$(d=${0%[/\\]*}; cd "$d" > /dev/null; cd "../" && pwd)
4 |
5 | # See if we are running in Cygwin by checking for cygpath program
6 | if command -v 'cygpath' >/dev/null 2>&1; then
7 | # Cygwin paths start with /cygdrive/ which will break windows PHP,
8 | # so we need to translate the dir path to windows format. However
9 | # we could be using cygwin PHP which does not require this, so we
10 | # test if the path to PHP starts with /cygdrive/ rather than /usr/bin
11 | if [[ $(which php) == /cygdrive/* ]]; then
12 | dir=$(cygpath -m "$dir");
13 | fi
14 | fi
15 |
16 | dir=$(echo $dir | sed 's/ /\ /g')
17 | "${dir}/phps" "$@"
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_10.txt:
--------------------------------------------------------------------------------
1 |
2 | X [CUSTOM] Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
3 | X dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
4 | X commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat
5 | X nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit
6 | X anim id est laborum
7 |
8 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_15.txt:
--------------------------------------------------------------------------------
1 |
2 | [TEST] Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore
3 | magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
4 | consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
5 | pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est
6 | laborum
7 |
8 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/application_run1.txt:
--------------------------------------------------------------------------------
1 | Console Tool
2 |
3 | Usage:
4 | command [options] [arguments]
5 |
6 | Options:
7 | -h, --help Display this help message
8 | -q, --quiet Do not output any message
9 | -V, --version Display this application version
10 | --ansi Force ANSI output
11 | --no-ansi Disable ANSI output
12 | -n, --no-interaction Do not ask any interactive question
13 | -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
14 |
15 | Available commands:
16 | help Displays help for a command
17 | list Lists commands
18 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/application_renderexception3.txt:
--------------------------------------------------------------------------------
1 |
2 |
3 | [Exception]
4 | Third exception comment>
5 |
6 |
7 |
8 | [Exception]
9 | Second exception comment
10 |
11 |
12 |
13 | [Exception]
14 | First exception
this is html
15 |
16 |
17 | foo3:bar
18 |
19 |
--------------------------------------------------------------------------------
/vendor/symfony/debug/Tests/Fixtures/ToStringThrower.php:
--------------------------------------------------------------------------------
1 | exception = $e;
12 | }
13 |
14 | public function __toString()
15 | {
16 | try {
17 | throw $this->exception;
18 | } catch (\Exception $e) {
19 | // Using user_error() here is on purpose so we do not forget
20 | // that this alias also should work alongside with trigger_error().
21 | return user_error($e, E_USER_ERROR);
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/vendor/psr/log/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "psr/log",
3 | "description": "Common interface for logging libraries",
4 | "keywords": ["psr", "psr-3", "log"],
5 | "homepage": "https://github.com/php-fig/log",
6 | "license": "MIT",
7 | "authors": [
8 | {
9 | "name": "PHP-FIG",
10 | "homepage": "http://www.php-fig.org/"
11 | }
12 | ],
13 | "require": {
14 | "php": ">=5.3.0"
15 | },
16 | "autoload": {
17 | "psr-4": {
18 | "Psr\\Log\\": "Psr/Log/"
19 | }
20 | },
21 | "extra": {
22 | "branch-alias": {
23 | "dev-master": "1.0.x-dev"
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_2.php:
--------------------------------------------------------------------------------
1 | warning('Warning');
11 | $output->caution('Caution');
12 | $output->error('Error');
13 | $output->success('Success');
14 | $output->note('Note');
15 | $output->block('Custom block', 'CUSTOM', 'fg=white;bg=green', 'X ', true);
16 | };
17 |
--------------------------------------------------------------------------------
/vendor/composer/autoload_psr4.php:
--------------------------------------------------------------------------------
1 | array($vendorDir . '/symfony/polyfill-mbstring'),
10 | 'Symfony\\Component\\VarDumper\\' => array($vendorDir . '/symfony/var-dumper'),
11 | 'Symfony\\Component\\Debug\\' => array($vendorDir . '/symfony/debug'),
12 | 'Symfony\\Component\\Console\\' => array($vendorDir . '/symfony/console'),
13 | 'Psr\\Log\\' => array($vendorDir . '/psr/log/Psr/Log'),
14 | 'Packers\\' => array($baseDir . '/packers'),
15 | 'Command\\' => array($baseDir . '/cmd'),
16 | );
17 |
--------------------------------------------------------------------------------
/vendor/symfony/var-dumper/README.md:
--------------------------------------------------------------------------------
1 | VarDumper Component
2 | ===================
3 |
4 | The VarDumper component provides mechanisms for walking through any arbitrary
5 | PHP variable. Built on top, it provides a better `dump()` function that you
6 | can use instead of `var_dump`.
7 |
8 | Resources
9 | ---------
10 |
11 | * [Documentation](https://symfony.com/doc/current/components/var_dumper/introduction.html)
12 | * [Contributing](https://symfony.com/doc/current/contributing/index.html)
13 | * [Report issues](https://github.com/symfony/symfony/issues) and
14 | [send Pull Requests](https://github.com/symfony/symfony/pulls)
15 | in the [main Symfony repository](https://github.com/symfony/symfony)
16 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/DescriptorApplicationMbString.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Console\Tests\Fixtures;
13 |
14 | use Symfony\Component\Console\Application;
15 |
16 | class DescriptorApplicationMbString extends Application
17 | {
18 | public function __construct()
19 | {
20 | parent::__construct('MbString åpplicätion');
21 |
22 | $this->add(new DescriptorCommandMbString());
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/FoobarCommand.php:
--------------------------------------------------------------------------------
1 | setName('foobar:foo')
16 | ->setDescription('The foobar:foo command')
17 | ;
18 | }
19 |
20 | protected function execute(InputInterface $input, OutputInterface $output)
21 | {
22 | $this->input = $input;
23 | $this->output = $output;
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_11.php:
--------------------------------------------------------------------------------
1 | block($word, 'CUSTOM', 'fg=white;bg=blue', ' § ', false);
12 | };
13 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/FooLockCommand.php:
--------------------------------------------------------------------------------
1 | setName('foo:lock');
15 | }
16 |
17 | protected function execute(InputInterface $input, OutputInterface $output)
18 | {
19 | if (!$this->lock()) {
20 | return 1;
21 | }
22 |
23 | $this->release();
24 |
25 | return 2;
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Descriptor/XmlDescriptorTest.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Console\Tests\Descriptor;
13 |
14 | use Symfony\Component\Console\Descriptor\XmlDescriptor;
15 |
16 | class XmlDescriptorTest extends AbstractDescriptorTest
17 | {
18 | protected function getDescriptor()
19 | {
20 | return new XmlDescriptor();
21 | }
22 |
23 | protected function getFormat()
24 | {
25 | return 'xml';
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/vendor/symfony/var-dumper/Cloner/ClonerInterface.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\VarDumper\Cloner;
13 |
14 | /**
15 | * @author Nicolas Grekas
16 | */
17 | interface ClonerInterface
18 | {
19 | /**
20 | * Clones a PHP variable.
21 | *
22 | * @param mixed $var Any PHP variable
23 | *
24 | * @return Data The cloned variable represented by a Data object
25 | */
26 | public function cloneVar($var);
27 | }
28 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Helper/TableSeparator.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Console\Helper;
13 |
14 | /**
15 | * Marks a row as being a separator.
16 | *
17 | * @author Fabien Potencier
18 | */
19 | class TableSeparator extends TableCell
20 | {
21 | /**
22 | * @param array $options
23 | */
24 | public function __construct(array $options = array())
25 | {
26 | parent::__construct('', $options);
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/DescriptorCommand4.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Console\Tests\Fixtures;
13 |
14 | use Symfony\Component\Console\Command\Command;
15 |
16 | class DescriptorCommand4 extends Command
17 | {
18 | protected function configure()
19 | {
20 | $this
21 | ->setName('descriptor:command4')
22 | ->setAliases(array('descriptor:alias_command4', 'command4:descriptor'))
23 | ;
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/Foo1Command.php:
--------------------------------------------------------------------------------
1 | setName('foo:bar1')
16 | ->setDescription('The foo:bar1 command')
17 | ->setAliases(array('afoobar1'))
18 | ;
19 | }
20 |
21 | protected function execute(InputInterface $input, OutputInterface $output)
22 | {
23 | $this->input = $input;
24 | $this->output = $output;
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/interactive_command_1.php:
--------------------------------------------------------------------------------
1 | setStream($stream);
15 |
16 | $output->ask('What\'s your name?');
17 | $output->ask('How are you?');
18 | $output->ask('Where do you come from?');
19 | };
20 |
--------------------------------------------------------------------------------
/vendor/symfony/var-dumper/Dumper/DataDumperInterface.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\VarDumper\Dumper;
13 |
14 | use Symfony\Component\VarDumper\Cloner\Data;
15 |
16 | /**
17 | * DataDumperInterface for dumping Data objects.
18 | *
19 | * @author Nicolas Grekas
20 | */
21 | interface DataDumperInterface
22 | {
23 | /**
24 | * Dumps a Data object.
25 | *
26 | * @param Data $data A Data object
27 | */
28 | public function dump(Data $data);
29 | }
30 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Input/InputAwareInterface.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Console\Input;
13 |
14 | /**
15 | * InputAwareInterface should be implemented by classes that depends on the
16 | * Console Input.
17 | *
18 | * @author Wouter J
19 | */
20 | interface InputAwareInterface
21 | {
22 | /**
23 | * Sets the Console Input.
24 | *
25 | * @param InputInterface
26 | */
27 | public function setInput(InputInterface $input);
28 | }
29 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/FooLock2Command.php:
--------------------------------------------------------------------------------
1 | setName('foo:lock2');
15 | }
16 |
17 | protected function execute(InputInterface $input, OutputInterface $output)
18 | {
19 | try {
20 | $this->lock();
21 | $this->lock();
22 | } catch (LogicException $e) {
23 | return 1;
24 | }
25 |
26 | return 2;
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/FooSubnamespaced2Command.php:
--------------------------------------------------------------------------------
1 | setName('foo:go:bret')
16 | ->setDescription('The foo:bar:go command')
17 | ->setAliases(array('foobargo'))
18 | ;
19 | }
20 |
21 | protected function execute(InputInterface $input, OutputInterface $output)
22 | {
23 | $this->input = $input;
24 | $this->output = $output;
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/FooSubnamespaced1Command.php:
--------------------------------------------------------------------------------
1 | setName('foo:bar:baz')
16 | ->setDescription('The foo:bar:baz command')
17 | ->setAliases(array('foobarbaz'))
18 | ;
19 | }
20 |
21 | protected function execute(InputInterface $input, OutputInterface $output)
22 | {
23 | $this->input = $input;
24 | $this->output = $output;
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/packers/command/DemoCommand.php:
--------------------------------------------------------------------------------
1 | setName('test')
16 | ->setDescription('备注标题')
17 | ->setHelp('命令细节')
18 | ->addArgument(
19 | 'name',
20 | InputArgument::REQUIRED,
21 | '必须输入的参数'
22 | );
23 | }
24 |
25 |
26 | protected function execute(InputInterface $input, OutputInterface $output)
27 | {
28 |
29 | }
30 | }
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/DescriptorCommand3.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Console\Tests\Fixtures;
13 |
14 | use Symfony\Component\Console\Command\Command;
15 |
16 | class DescriptorCommand3 extends Command
17 | {
18 | protected function configure()
19 | {
20 | $this
21 | ->setName('descriptor:command3')
22 | ->setDescription('command 3 description')
23 | ->setHelp('command 3 help')
24 | ->setHidden(true)
25 | ;
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_7.php:
--------------------------------------------------------------------------------
1 | title('Title');
11 | $output->askHidden('Hidden question');
12 | $output->choice('Choice question with default', array('choice1', 'choice2'), 'choice1');
13 | $output->confirm('Confirmation with yes default', true);
14 | $output->text('Duis aute irure dolor in reprehenderit in voluptate velit esse');
15 | };
16 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_5.txt:
--------------------------------------------------------------------------------
1 | Lorem ipsum dolor sit amet
2 | * Lorem ipsum dolor sit amet
3 | * consectetur adipiscing elit
4 |
5 | Lorem ipsum dolor sit amet
6 | * Lorem ipsum dolor sit amet
7 | * consectetur adipiscing elit
8 |
9 | Lorem ipsum dolor sit amet
10 | Lorem ipsum dolor sit amet
11 | consectetur adipiscing elit
12 |
13 | Lorem ipsum dolor sit amet
14 |
15 | // Lorem ipsum dolor sit amet
16 | //
17 | // consectetur adipiscing elit
18 |
19 |
--------------------------------------------------------------------------------
/vendor/symfony/console/README.md:
--------------------------------------------------------------------------------
1 | Console Component
2 | =================
3 |
4 | The Console component eases the creation of beautiful and testable command line
5 | interfaces.
6 |
7 | Resources
8 | ---------
9 |
10 | * [Documentation](https://symfony.com/doc/current/components/console/index.html)
11 | * [Contributing](https://symfony.com/doc/current/contributing/index.html)
12 | * [Report issues](https://github.com/symfony/symfony/issues) and
13 | [send Pull Requests](https://github.com/symfony/symfony/pulls)
14 | in the [main Symfony repository](https://github.com/symfony/symfony)
15 |
16 | Credits
17 | -------
18 |
19 | `Resources/bin/hiddeninput.exe` is a third party binary provided within this
20 | component. Find sources and license at https://github.com/Seldaek/hidden-input.
21 |
--------------------------------------------------------------------------------
/vendor/symfony/var-dumper/Caster/EnumStub.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\VarDumper\Caster;
13 |
14 | use Symfony\Component\VarDumper\Cloner\Stub;
15 |
16 | /**
17 | * Represents an enumeration of values.
18 | *
19 | * @author Nicolas Grekas
20 | */
21 | class EnumStub extends Stub
22 | {
23 | public $dumpKeys = true;
24 |
25 | public function __construct(array $values, $dumpKeys = true)
26 | {
27 | $this->value = $values;
28 | $this->dumpKeys = $dumpKeys;
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/vendor/psr/log/Psr/Log/NullLogger.php:
--------------------------------------------------------------------------------
1 | logger) { }`
11 | * blocks.
12 | */
13 | class NullLogger extends AbstractLogger
14 | {
15 | /**
16 | * Logs with an arbitrary level.
17 | *
18 | * @param mixed $level
19 | * @param string $message
20 | * @param array $context
21 | *
22 | * @return void
23 | */
24 | public function log($level, $message, array $context = array())
25 | {
26 | // noop
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_13.txt:
--------------------------------------------------------------------------------
1 |
2 | [39;49m // [39;49mLorem ipsum dolor sit [33mamet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et [39m
3 | [39;49m // [39;49m[33mdolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea [39m
4 | [39;49m // [39;49m[33mcommodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla [39m
5 | [39;49m // [39;49m[33mpariatur.[39m Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim
6 | [39;49m // [39;49mid est laborum
7 |
8 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/DescriptorCommand1.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Console\Tests\Fixtures;
13 |
14 | use Symfony\Component\Console\Command\Command;
15 |
16 | class DescriptorCommand1 extends Command
17 | {
18 | protected function configure()
19 | {
20 | $this
21 | ->setName('descriptor:command1')
22 | ->setAliases(array('alias1', 'alias2'))
23 | ->setDescription('command 1 description')
24 | ->setHelp('command 1 help')
25 | ;
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/config/config.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\VarDumper\Exception;
13 |
14 | /**
15 | * @author Nicolas Grekas
16 | */
17 | class ThrowingCasterException extends \Exception
18 | {
19 | /**
20 | * @param \Exception $prev The exception thrown from the caster
21 | */
22 | public function __construct(\Exception $prev)
23 | {
24 | parent::__construct('Unexpected '.get_class($prev).' thrown from a caster: '.$prev->getMessage(), 0, $prev);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/application_run2.txt:
--------------------------------------------------------------------------------
1 | Usage:
2 | list [options] [--] []
3 |
4 | Arguments:
5 | namespace The namespace name
6 |
7 | Options:
8 | --raw To output raw command list
9 | --format=FORMAT The output format (txt, xml, json, or md) [default: "txt"]
10 |
11 | Help:
12 | The list command lists all commands:
13 |
14 | php app/console list
15 |
16 | You can also display the commands for a specific namespace:
17 |
18 | php app/console list test
19 |
20 | You can also output the information in other formats by using the --format option:
21 |
22 | php app/console list --format=xml
23 |
24 | It's also possible to get raw list of commands (useful for embedding command runner):
25 |
26 | php app/console list --raw
27 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/application_run3.txt:
--------------------------------------------------------------------------------
1 | Usage:
2 | list [options] [--] []
3 |
4 | Arguments:
5 | namespace The namespace name
6 |
7 | Options:
8 | --raw To output raw command list
9 | --format=FORMAT The output format (txt, xml, json, or md) [default: "txt"]
10 |
11 | Help:
12 | The list command lists all commands:
13 |
14 | php app/console list
15 |
16 | You can also display the commands for a specific namespace:
17 |
18 | php app/console list test
19 |
20 | You can also output the information in other formats by using the --format option:
21 |
22 | php app/console list --format=xml
23 |
24 | It's also possible to get raw list of commands (useful for embedding command runner):
25 |
26 | php app/console list --raw
27 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/DescriptorApplication2.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Console\Tests\Fixtures;
13 |
14 | use Symfony\Component\Console\Application;
15 |
16 | class DescriptorApplication2 extends Application
17 | {
18 | public function __construct()
19 | {
20 | parent::__construct('My Symfony application', 'v1.0');
21 | $this->add(new DescriptorCommand1());
22 | $this->add(new DescriptorCommand2());
23 | $this->add(new DescriptorCommand3());
24 | $this->add(new DescriptorCommand4());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_2.txt:
--------------------------------------------------------------------------------
1 |
2 | [WARNING] Warning
3 |
4 | ! [CAUTION] Caution
5 |
6 | [ERROR] Error
7 |
8 | [OK] Success
9 |
10 | ! [NOTE] Note
11 |
12 | X [CUSTOM] Custom block
13 |
14 |
--------------------------------------------------------------------------------
/vendor/symfony/var-dumper/Caster/ConstStub.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\VarDumper\Caster;
13 |
14 | use Symfony\Component\VarDumper\Cloner\Stub;
15 |
16 | /**
17 | * Represents a PHP constant and its value.
18 | *
19 | * @author Nicolas Grekas
20 | */
21 | class ConstStub extends Stub
22 | {
23 | public function __construct($name, $value)
24 | {
25 | $this->class = $name;
26 | $this->value = $value;
27 | }
28 |
29 | public function __toString()
30 | {
31 | return (string) $this->value;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/application_1.txt:
--------------------------------------------------------------------------------
1 | Console Tool
2 |
3 | Usage:
4 | command [options] [arguments]
5 |
6 | Options:
7 | -h, --help Display this help message
8 | -q, --quiet Do not output any message
9 | -V, --version Display this application version
10 | --ansi Force ANSI output
11 | --no-ansi Disable ANSI output
12 | -n, --no-interaction Do not ask any interactive question
13 | -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
14 |
15 | Available commands:
16 | help Displays help for a command
17 | list Lists commands
18 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/TestCommand.php:
--------------------------------------------------------------------------------
1 | setName('namespace:name')
13 | ->setAliases(array('name'))
14 | ->setDescription('description')
15 | ->setHelp('help')
16 | ;
17 | }
18 |
19 | protected function execute(InputInterface $input, OutputInterface $output)
20 | {
21 | $output->writeln('execute called');
22 | }
23 |
24 | protected function interact(InputInterface $input, OutputInterface $output)
25 | {
26 | $output->writeln('interact called');
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/vendor/symfony/var-dumper/Caster/CutArrayStub.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\VarDumper\Caster;
13 |
14 | /**
15 | * Represents a cut array.
16 | *
17 | * @author Nicolas Grekas
18 | */
19 | class CutArrayStub extends CutStub
20 | {
21 | public $preservedSubset;
22 |
23 | public function __construct(array $value, array $preservedKeys)
24 | {
25 | parent::__construct($value);
26 |
27 | $this->preservedSubset = array_intersect_key($value, array_flip($preservedKeys));
28 | $this->cut -= count($this->preservedSubset);
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/application_filtered_namespace.txt:
--------------------------------------------------------------------------------
1 | My Symfony application v1.0
2 |
3 | Usage:
4 | command [options] [arguments]
5 |
6 | Options:
7 | -h, --help Display this help message
8 | -q, --quiet Do not output any message
9 | -V, --version Display this application version
10 | --ansi Force ANSI output
11 | --no-ansi Disable ANSI output
12 | -n, --no-interaction Do not ask any interactive question
13 | -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
14 |
15 | Available commands for the "command4" namespace:
16 | command4:descriptor
17 |
--------------------------------------------------------------------------------
/vendor/symfony/debug/Tests/HeaderMock.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Debug;
13 |
14 | function headers_sent()
15 | {
16 | return false;
17 | }
18 |
19 | function header($str, $replace = true, $status = null)
20 | {
21 | Tests\testHeader($str, $replace, $status);
22 | }
23 |
24 | namespace Symfony\Component\Debug\Tests;
25 |
26 | function testHeader()
27 | {
28 | static $headers = array();
29 |
30 | if (!$h = func_get_args()) {
31 | $h = $headers;
32 | $headers = array();
33 |
34 | return $h;
35 | }
36 |
37 | $headers[] = func_get_args();
38 | }
39 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/application_renderexception3decorated.txt:
--------------------------------------------------------------------------------
1 |
2 | [37;41m [39;49m
3 | [37;41m [Exception] [39;49m
4 | [37;41m Third exception comment> [39;49m
5 | [37;41m [39;49m
6 |
7 | [37;41m [39;49m
8 | [37;41m [Exception] [39;49m
9 | [37;41m Second exception comment [39;49m
10 | [37;41m [39;49m
11 |
12 | [37;41m [39;49m
13 | [37;41m [Exception] [39;49m
14 | [37;41m First exception
this is html
[39;49m
15 | [37;41m [39;49m
16 |
17 | [32mfoo3:bar[39m
18 |
19 |
--------------------------------------------------------------------------------
/vendor/symfony/debug/Resources/ext/tests/002_1.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | Test symfony_debug_backtrace in case of non fatal error
3 | --SKIPIF--
4 |
5 | --FILE--
6 |
21 | --EXPECTF--
22 | Array
23 | (
24 | [0] => Array
25 | (
26 | [file] => %s
27 | [line] => %d
28 | [function] => bt
29 | [args] => Array
30 | (
31 | )
32 |
33 | )
34 |
35 | [1] => Array
36 | (
37 | [file] => %s
38 | [line] => %d
39 | [function] => bar
40 | [args] => Array
41 | (
42 | )
43 |
44 | )
45 |
46 | )
47 |
--------------------------------------------------------------------------------
/vendor/symfony/var-dumper/Caster/FrameStub.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\VarDumper\Caster;
13 |
14 | /**
15 | * Represents a single backtrace frame as returned by debug_backtrace() or Exception->getTrace().
16 | *
17 | * @author Nicolas Grekas
18 | */
19 | class FrameStub extends EnumStub
20 | {
21 | public $keepArgs;
22 | public $inTraceStub;
23 |
24 | public function __construct(array $frame, $keepArgs = true, $inTraceStub = false)
25 | {
26 | $this->value = $frame;
27 | $this->keepArgs = $keepArgs;
28 | $this->inTraceStub = $inTraceStub;
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/output/output_16.txt:
--------------------------------------------------------------------------------
1 |
2 | [30;42m [39;49m
3 | [30;42m [OK] Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore [39;49m
4 | [30;42m magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo [39;49m
5 | [30;42m consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. [39;49m
6 | [30;42m Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum [39;49m
7 | [30;42m [39;49m
8 |
9 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Helper/TableStyleTest.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Console\Tests\Helper;
13 |
14 | use PHPUnit\Framework\TestCase;
15 | use Symfony\Component\Console\Helper\TableStyle;
16 |
17 | class TableStyleTest extends TestCase
18 | {
19 | /**
20 | * @expectedException \InvalidArgumentException
21 | * @expectedExceptionMessage Invalid padding type. Expected one of (STR_PAD_LEFT, STR_PAD_RIGHT, STR_PAD_BOTH).
22 | */
23 | public function testSetPadTypeWithInvalidType()
24 | {
25 | $style = new TableStyle();
26 | $style->setPadType('TEST');
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/command_2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | descriptor:command2 [-o|--option_name] [--] <argument_name>
5 | descriptor:command2 -o|--option_name <argument_name>
6 | descriptor:command2 <argument_name>
7 |
8 | command 2 description
9 | command 2 help
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Descriptor/DescriptorInterface.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Console\Descriptor;
13 |
14 | use Symfony\Component\Console\Output\OutputInterface;
15 |
16 | /**
17 | * Descriptor interface.
18 | *
19 | * @author Jean-François Simon
20 | */
21 | interface DescriptorInterface
22 | {
23 | /**
24 | * Describes an InputArgument instance.
25 | *
26 | * @param OutputInterface $output
27 | * @param object $object
28 | * @param array $options
29 | */
30 | public function describe(OutputInterface $output, $object, array $options = array());
31 | }
32 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Helper/InputAwareHelper.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Console\Helper;
13 |
14 | use Symfony\Component\Console\Input\InputInterface;
15 | use Symfony\Component\Console\Input\InputAwareInterface;
16 |
17 | /**
18 | * An implementation of InputAwareInterface for Helpers.
19 | *
20 | * @author Wouter J
21 | */
22 | abstract class InputAwareHelper extends Helper implements InputAwareInterface
23 | {
24 | protected $input;
25 |
26 | /**
27 | * {@inheritdoc}
28 | */
29 | public function setInput(InputInterface $input)
30 | {
31 | $this->input = $input;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/vendor/symfony/debug/BufferingLogger.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Debug;
13 |
14 | use Psr\Log\AbstractLogger;
15 |
16 | /**
17 | * A buffering logger that stacks logs for later.
18 | *
19 | * @author Nicolas Grekas
20 | */
21 | class BufferingLogger extends AbstractLogger
22 | {
23 | private $logs = array();
24 |
25 | public function log($level, $message, array $context = array())
26 | {
27 | $this->logs[] = array($level, $message, $context);
28 | }
29 |
30 | public function cleanLogs()
31 | {
32 | $logs = $this->logs;
33 | $this->logs = array();
34 |
35 | return $logs;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/FooCommand.php:
--------------------------------------------------------------------------------
1 | setName('foo:bar')
16 | ->setDescription('The foo:bar command')
17 | ->setAliases(array('afoobar'))
18 | ;
19 | }
20 |
21 | protected function interact(InputInterface $input, OutputInterface $output)
22 | {
23 | $output->writeln('interact called');
24 | }
25 |
26 | protected function execute(InputInterface $input, OutputInterface $output)
27 | {
28 | $this->input = $input;
29 | $this->output = $output;
30 |
31 | $output->writeln('called');
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_15.php:
--------------------------------------------------------------------------------
1 | block(
11 | 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum',
12 | 'TEST'
13 | );
14 | };
15 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/application_mbstring.txt:
--------------------------------------------------------------------------------
1 | MbString åpplicätion
2 |
3 | Usage:
4 | command [options] [arguments]
5 |
6 | Options:
7 | -h, --help Display this help message
8 | -q, --quiet Do not output any message
9 | -V, --version Display this application version
10 | --ansi Force ANSI output
11 | --no-ansi Disable ANSI output
12 | -n, --no-interaction Do not ask any interactive question
13 | -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
14 |
15 | Available commands:
16 | help Displays help for a command
17 | list Lists commands
18 | descriptor
19 | descriptor:åèä command åèä description
20 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_12.php:
--------------------------------------------------------------------------------
1 | comment(
11 | 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum'
12 | );
13 | };
14 |
--------------------------------------------------------------------------------
/vendor/symfony/debug/Exception/UndefinedMethodException.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Debug\Exception;
13 |
14 | /**
15 | * Undefined Method Exception.
16 | *
17 | * @author Grégoire Pineau
18 | */
19 | class UndefinedMethodException extends FatalErrorException
20 | {
21 | public function __construct($message, \ErrorException $previous)
22 | {
23 | parent::__construct(
24 | $message,
25 | $previous->getCode(),
26 | $previous->getSeverity(),
27 | $previous->getFile(),
28 | $previous->getLine(),
29 | $previous->getPrevious()
30 | );
31 | $this->setTrace($previous->getTrace());
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/DummyOutput.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Console\Tests\Fixtures;
13 |
14 | use Symfony\Component\Console\Output\BufferedOutput;
15 |
16 | /**
17 | * Dummy output.
18 | *
19 | * @author Kévin Dunglas
20 | */
21 | class DummyOutput extends BufferedOutput
22 | {
23 | /**
24 | * @return array
25 | */
26 | public function getLogs()
27 | {
28 | $logs = array();
29 | foreach (explode(PHP_EOL, trim($this->fetch())) as $message) {
30 | preg_match('/^\[(.*)\] (.*)/', $message, $matches);
31 | $logs[] = sprintf('%s %s', $matches[1], $matches[2]);
32 | }
33 |
34 | return $logs;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/Foo3Command.php:
--------------------------------------------------------------------------------
1 | setName('foo3:bar')
13 | ->setDescription('The foo3:bar command')
14 | ;
15 | }
16 |
17 | protected function execute(InputInterface $input, OutputInterface $output)
18 | {
19 | try {
20 | try {
21 | throw new \Exception('First exception
this is html
');
22 | } catch (\Exception $e) {
23 | throw new \Exception('Second exception comment', 0, $e);
24 | }
25 | } catch (\Exception $e) {
26 | throw new \Exception('Third exception comment>', 404, $e);
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/vendor/symfony/debug/Exception/UndefinedFunctionException.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Debug\Exception;
13 |
14 | /**
15 | * Undefined Function Exception.
16 | *
17 | * @author Konstanton Myakshin
18 | */
19 | class UndefinedFunctionException extends FatalErrorException
20 | {
21 | public function __construct($message, \ErrorException $previous)
22 | {
23 | parent::__construct(
24 | $message,
25 | $previous->getCode(),
26 | $previous->getSeverity(),
27 | $previous->getFile(),
28 | $previous->getLine(),
29 | $previous->getPrevious()
30 | );
31 | $this->setTrace($previous->getTrace());
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_8.php:
--------------------------------------------------------------------------------
1 | 3))),
12 | array('ISBN', 'Title', 'Author'),
13 | );
14 |
15 | $rows = array(
16 | array(
17 | '978-0521567817',
18 | 'De Monarchia',
19 | new TableCell("Dante Alighieri\nspans multiple rows", array('rowspan' => 2)),
20 | ),
21 | array('978-0804169127', 'Divine Comedy'),
22 | );
23 |
24 | $output = new SymfonyStyle($input, $output);
25 | $output->table($headers, $rows);
26 | };
27 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_13.php:
--------------------------------------------------------------------------------
1 | setDecorated(true);
10 | $output = new SymfonyStyle($input, $output);
11 | $output->comment(
12 | 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum'
13 | );
14 | };
15 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_16.php:
--------------------------------------------------------------------------------
1 | setDecorated(true);
10 | $output = new SymfonyStyle($input, $output);
11 | $output->success(
12 | 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum',
13 | 'TEST'
14 | );
15 | };
16 |
--------------------------------------------------------------------------------
/vendor/symfony/var-dumper/Caster/MongoCaster.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\VarDumper\Caster;
13 |
14 | use Symfony\Component\VarDumper\Cloner\Stub;
15 |
16 | /**
17 | * Casts classes from the MongoDb extension to array representation.
18 | *
19 | * @author Nicolas Grekas
20 | */
21 | class MongoCaster
22 | {
23 | public static function castCursor(\MongoCursorInterface $cursor, array $a, Stub $stub, $isNested)
24 | {
25 | if ($info = $cursor->info()) {
26 | foreach ($info as $k => $v) {
27 | $a[Caster::PREFIX_VIRTUAL.$k] = $v;
28 | }
29 | }
30 | $a[Caster::PREFIX_VIRTUAL.'dead'] = $cursor->dead();
31 |
32 | return $a;
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/vendor/symfony/debug/Exception/ClassNotFoundException.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Debug\Exception;
13 |
14 | /**
15 | * Class (or Trait or Interface) Not Found Exception.
16 | *
17 | * @author Konstanton Myakshin
18 | */
19 | class ClassNotFoundException extends FatalErrorException
20 | {
21 | public function __construct($message, \ErrorException $previous)
22 | {
23 | parent::__construct(
24 | $message,
25 | $previous->getCode(),
26 | $previous->getSeverity(),
27 | $previous->getFile(),
28 | $previous->getLine(),
29 | $previous->getPrevious()
30 | );
31 | $this->setTrace($previous->getTrace());
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_14.php:
--------------------------------------------------------------------------------
1 | block(
11 | 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum',
12 | null,
13 | null,
14 | '$ ',
15 | true
16 | );
17 | };
18 |
--------------------------------------------------------------------------------
/vendor/symfony/var-dumper/Tests/Fixtures/dumb-var.php:
--------------------------------------------------------------------------------
1 | bar = 'bar';
14 |
15 | $g = fopen(__FILE__, 'r');
16 |
17 | $var = array(
18 | 'number' => 1, null,
19 | 'const' => 1.1, true, false, NAN, INF, -INF, PHP_INT_MAX,
20 | 'str' => "déjà\n", "\xE9\x00",
21 | '[]' => array(),
22 | 'res' => $g,
23 | 'obj' => $foo,
24 | 'closure' => function ($a, \PDO &$b = null) {},
25 | 'line' => __LINE__ - 1,
26 | 'nobj' => array((object) array()),
27 | );
28 |
29 | $r = array();
30 | $r[] = &$r;
31 |
32 | $var['recurs'] = &$r;
33 | $var[] = &$var[0];
34 | $var['sobj'] = $var['obj'];
35 | $var['snobj'] = &$var['nobj'][0];
36 | $var['snobj2'] = $var['nobj'][0];
37 | $var['file'] = __FILE__;
38 | $var["bin-key-\xE9"] = '';
39 |
40 | unset($g, $r);
41 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Output/ConsoleOutputInterface.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Console\Output;
13 |
14 | /**
15 | * ConsoleOutputInterface is the interface implemented by ConsoleOutput class.
16 | * This adds information about stderr output stream.
17 | *
18 | * @author Dariusz Górecki
19 | */
20 | interface ConsoleOutputInterface extends OutputInterface
21 | {
22 | /**
23 | * Gets the OutputInterface for errors.
24 | *
25 | * @return OutputInterface
26 | */
27 | public function getErrorOutput();
28 |
29 | /**
30 | * Sets the OutputInterface used for errors.
31 | *
32 | * @param OutputInterface $error
33 | */
34 | public function setErrorOutput(OutputInterface $error);
35 | }
36 |
--------------------------------------------------------------------------------
/vendor/symfony/var-dumper/Tests/Fixtures/Twig.php:
--------------------------------------------------------------------------------
1 | parent = false;
14 | $this->blocks = array();
15 | $this->path = $path;
16 | }
17 |
18 | protected function doDisplay(array $context, array $blocks = array())
19 | {
20 | // line 2
21 | throw new \Exception('Foobar');
22 | }
23 |
24 | public function getTemplateName()
25 | {
26 | return 'foo.twig';
27 | }
28 |
29 | public function getDebugInfo()
30 | {
31 | return array(20 => 1, 21 => 2);
32 | }
33 |
34 | public function getSourceContext()
35 | {
36 | return new Twig\Source(" foo bar\n twig source\n\n", 'foo.twig', $this->path ?: __FILE__);
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/cmd/host/HostListCommand.php:
--------------------------------------------------------------------------------
1 | setName('host:list')
18 | ->setDescription('显示系统已经设置的host')
19 | ->setHelp('显示系统已经设置的host');
20 | }
21 |
22 | protected function execute(InputInterface $input, OutputInterface $output)
23 | {
24 | $host = new SystemHost();
25 | $list = $host->get();
26 | foreach ($list as $domain=>$ip){
27 | $hostList[] = ['ip'=>$ip,'domain'=>$domain];
28 | }
29 | $io = new SymfonyStyle($input,$output);
30 | $io->table(array_keys(end($hostList)),$hostList);
31 | }
32 | }
--------------------------------------------------------------------------------
/vendor/symfony/polyfill-mbstring/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "symfony/polyfill-mbstring",
3 | "type": "library",
4 | "description": "Symfony polyfill for the Mbstring extension",
5 | "keywords": ["polyfill", "shim", "compatibility", "portable", "mbstring"],
6 | "homepage": "https://symfony.com",
7 | "license": "MIT",
8 | "authors": [
9 | {
10 | "name": "Nicolas Grekas",
11 | "email": "p@tchwork.com"
12 | },
13 | {
14 | "name": "Symfony Community",
15 | "homepage": "https://symfony.com/contributors"
16 | }
17 | ],
18 | "require": {
19 | "php": ">=5.3.3"
20 | },
21 | "autoload": {
22 | "psr-4": { "Symfony\\Polyfill\\Mbstring\\": "" },
23 | "files": [ "bootstrap.php" ]
24 | },
25 | "suggest": {
26 | "ext-mbstring": "For best performance"
27 | },
28 | "minimum-stability": "dev",
29 | "extra": {
30 | "branch-alias": {
31 | "dev-master": "1.6-dev"
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_10.php:
--------------------------------------------------------------------------------
1 | block(
11 | 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum',
12 | 'CUSTOM',
13 | 'fg=white;bg=green',
14 | 'X ',
15 | true
16 | );
17 | };
18 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Input/StreamableInputInterface.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Console\Input;
13 |
14 | /**
15 | * StreamableInputInterface is the interface implemented by all input classes
16 | * that have an input stream.
17 | *
18 | * @author Robin Chalas
19 | */
20 | interface StreamableInputInterface extends InputInterface
21 | {
22 | /**
23 | * Sets the input stream to read from when interacting with the user.
24 | *
25 | * This is mainly useful for testing purpose.
26 | *
27 | * @param resource $stream The input stream
28 | */
29 | public function setStream($stream);
30 |
31 | /**
32 | * Returns the input stream.
33 | *
34 | * @return resource|null
35 | */
36 | public function getStream();
37 | }
38 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/DescriptorCommand2.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Console\Tests\Fixtures;
13 |
14 | use Symfony\Component\Console\Command\Command;
15 | use Symfony\Component\Console\Input\InputArgument;
16 | use Symfony\Component\Console\Input\InputOption;
17 |
18 | class DescriptorCommand2 extends Command
19 | {
20 | protected function configure()
21 | {
22 | $this
23 | ->setName('descriptor:command2')
24 | ->setDescription('command 2 description')
25 | ->setHelp('command 2 help')
26 | ->addUsage('-o|--option_name ')
27 | ->addUsage('')
28 | ->addArgument('argument_name', InputArgument::REQUIRED)
29 | ->addOption('option_name', 'o', InputOption::VALUE_NONE)
30 | ;
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Output/BufferedOutput.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Console\Output;
13 |
14 | /**
15 | * @author Jean-François Simon
16 | */
17 | class BufferedOutput extends Output
18 | {
19 | /**
20 | * @var string
21 | */
22 | private $buffer = '';
23 |
24 | /**
25 | * Empties buffer and returns its content.
26 | *
27 | * @return string
28 | */
29 | public function fetch()
30 | {
31 | $content = $this->buffer;
32 | $this->buffer = '';
33 |
34 | return $content;
35 | }
36 |
37 | /**
38 | * {@inheritdoc}
39 | */
40 | protected function doWrite($message, $newline)
41 | {
42 | $this->buffer .= $message;
43 |
44 | if ($newline) {
45 | $this->buffer .= PHP_EOL;
46 | }
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/DescriptorCommandMbString.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Console\Tests\Fixtures;
13 |
14 | use Symfony\Component\Console\Command\Command;
15 | use Symfony\Component\Console\Input\InputArgument;
16 | use Symfony\Component\Console\Input\InputOption;
17 |
18 | class DescriptorCommandMbString extends Command
19 | {
20 | protected function configure()
21 | {
22 | $this
23 | ->setName('descriptor:åèä')
24 | ->setDescription('command åèä description')
25 | ->setHelp('command åèä help')
26 | ->addUsage('-o|--option_name ')
27 | ->addUsage('')
28 | ->addArgument('argument_åèä', InputArgument::REQUIRED)
29 | ->addOption('option_åèä', 'o', InputOption::VALUE_NONE)
30 | ;
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/vendor/symfony/var-dumper/Caster/TraceStub.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\VarDumper\Caster;
13 |
14 | use Symfony\Component\VarDumper\Cloner\Stub;
15 |
16 | /**
17 | * Represents a backtrace as returned by debug_backtrace() or Exception->getTrace().
18 | *
19 | * @author Nicolas Grekas
20 | */
21 | class TraceStub extends Stub
22 | {
23 | public $keepArgs;
24 | public $sliceOffset;
25 | public $sliceLength;
26 | public $numberingOffset;
27 |
28 | public function __construct(array $trace, $keepArgs = true, $sliceOffset = 0, $sliceLength = null, $numberingOffset = 0)
29 | {
30 | $this->value = $trace;
31 | $this->keepArgs = $keepArgs;
32 | $this->sliceOffset = $sliceOffset;
33 | $this->sliceLength = $sliceLength;
34 | $this->numberingOffset = $numberingOffset;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/command_2.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "descriptor:command2",
3 | "hidden": false,
4 | "usage": [
5 | "descriptor:command2 [-o|--option_name] [--] ",
6 | "descriptor:command2 -o|--option_name ",
7 | "descriptor:command2 "
8 | ],
9 | "description": "command 2 description",
10 | "help": "command 2 help",
11 | "definition": {
12 | "arguments": {
13 | "argument_name": {
14 | "name": "argument_name",
15 | "is_required": true,
16 | "is_array": false,
17 | "description": "",
18 | "default": null
19 | }
20 | },
21 | "options": {
22 | "option_name": {
23 | "name": "--option_name",
24 | "shortcut": "-o",
25 | "accept_value": false,
26 | "is_value_required": false,
27 | "is_multiple": false,
28 | "description": "",
29 | "default": false
30 | }
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Helper/AbstractQuestionHelperTest.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Console\Tests\Helper;
13 |
14 | use PHPUnit\Framework\TestCase;
15 | use Symfony\Component\Console\Input\StreamableInputInterface;
16 |
17 | abstract class AbstractQuestionHelperTest extends TestCase
18 | {
19 | protected function createStreamableInputInterfaceMock($stream = null, $interactive = true)
20 | {
21 | $mock = $this->getMockBuilder(StreamableInputInterface::class)->getMock();
22 | $mock->expects($this->any())
23 | ->method('isInteractive')
24 | ->will($this->returnValue($interactive));
25 |
26 | if ($stream) {
27 | $mock->expects($this->any())
28 | ->method('getStream')
29 | ->willReturn($stream);
30 | }
31 |
32 | return $mock;
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/cmd/docker/DockerStopCommand.php:
--------------------------------------------------------------------------------
1 | setName('docker:stop')
23 | ->setDescription('暂停所有容器')
24 | ->setHelp('暂停所有容器');
25 | }
26 |
27 |
28 | public function execute(InputInterface $input, OutputInterface $output)
29 | {
30 | $docker = new Docker();
31 | $list = $docker->running();
32 | $io = new SymfonyStyle($input, $output);
33 | if ($list) {
34 | foreach ($list as $con) {
35 | $output->write("stop ");
36 | system('docker stop ' . $con['names']);
37 | }
38 | }
39 | }
40 | }
--------------------------------------------------------------------------------
/vendor/symfony/console/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2004-2017 Fabien Potencier
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is furnished
8 | to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all
11 | copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/vendor/symfony/debug/FatalErrorHandler/FatalErrorHandlerInterface.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Debug\FatalErrorHandler;
13 |
14 | use Symfony\Component\Debug\Exception\FatalErrorException;
15 |
16 | /**
17 | * Attempts to convert fatal errors to exceptions.
18 | *
19 | * @author Fabien Potencier
20 | */
21 | interface FatalErrorHandlerInterface
22 | {
23 | /**
24 | * Attempts to convert an error into an exception.
25 | *
26 | * @param array $error An array as returned by error_get_last()
27 | * @param FatalErrorException $exception A FatalErrorException instance
28 | *
29 | * @return FatalErrorException|null A FatalErrorException instance if the class is able to convert the error, null otherwise
30 | */
31 | public function handleError(array $error, FatalErrorException $exception);
32 | }
33 |
--------------------------------------------------------------------------------
/vendor/symfony/debug/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2004-2017 Fabien Potencier
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is furnished
8 | to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all
11 | copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/vendor/symfony/debug/phpunit.xml.dist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | ./Tests/
18 |
19 |
20 | ./Resources/ext/tests/
21 |
22 |
23 |
24 |
25 |
26 | ./
27 |
28 | ./Tests
29 | ./vendor
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Helper/HelperInterface.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Console\Helper;
13 |
14 | /**
15 | * HelperInterface is the interface all helpers must implement.
16 | *
17 | * @author Fabien Potencier
18 | */
19 | interface HelperInterface
20 | {
21 | /**
22 | * Sets the helper set associated with this helper.
23 | *
24 | * @param HelperSet $helperSet A HelperSet instance
25 | */
26 | public function setHelperSet(HelperSet $helperSet = null);
27 |
28 | /**
29 | * Gets the helper set associated with this helper.
30 | *
31 | * @return HelperSet A HelperSet instance
32 | */
33 | public function getHelperSet();
34 |
35 | /**
36 | * Returns the canonical name of this helper.
37 | *
38 | * @return string The canonical name
39 | */
40 | public function getName();
41 | }
42 |
--------------------------------------------------------------------------------
/vendor/symfony/debug/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "symfony/debug",
3 | "type": "library",
4 | "description": "Symfony Debug Component",
5 | "keywords": [],
6 | "homepage": "https://symfony.com",
7 | "license": "MIT",
8 | "authors": [
9 | {
10 | "name": "Fabien Potencier",
11 | "email": "fabien@symfony.com"
12 | },
13 | {
14 | "name": "Symfony Community",
15 | "homepage": "https://symfony.com/contributors"
16 | }
17 | ],
18 | "require": {
19 | "php": "^5.5.9|>=7.0.8",
20 | "psr/log": "~1.0"
21 | },
22 | "conflict": {
23 | "symfony/http-kernel": ">=2.3,<2.3.24|~2.4.0|>=2.5,<2.5.9|>=2.6,<2.6.2"
24 | },
25 | "require-dev": {
26 | "symfony/http-kernel": "~2.8|~3.0"
27 | },
28 | "autoload": {
29 | "psr-4": { "Symfony\\Component\\Debug\\": "" },
30 | "exclude-from-classmap": [
31 | "/Tests/"
32 | ]
33 | },
34 | "minimum-stability": "dev",
35 | "extra": {
36 | "branch-alias": {
37 | "dev-master": "3.3-dev"
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/vendor/symfony/var-dumper/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2014-2017 Fabien Potencier
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is furnished
8 | to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all
11 | copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/vendor/symfony/var-dumper/phpunit.xml.dist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | ./Tests/
20 |
21 |
22 |
23 |
24 |
25 | ./
26 |
27 | ./Resources
28 | ./Tests
29 | ./vendor
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/vendor/composer/LICENSE:
--------------------------------------------------------------------------------
1 |
2 | Copyright (c) Nils Adermann, Jordi Boggiano
3 |
4 | Permission is hereby granted, free of charge, to any person obtaining a copy
5 | of this software and associated documentation files (the "Software"), to deal
6 | in the Software without restriction, including without limitation the rights
7 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 | copies of the Software, and to permit persons to whom the Software is furnished
9 | to do so, subject to the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be included in all
12 | copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20 | THE SOFTWARE.
21 |
22 |
--------------------------------------------------------------------------------
/vendor/psr/log/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2012 PHP Framework Interoperability Group
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/vendor/symfony/polyfill-mbstring/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2014-2016 Fabien Potencier
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is furnished
8 | to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all
11 | copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/vendor/symfony/var-dumper/Tests/Test/VarDumperTestTraitTest.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\VarDumper\Tests\Test;
13 |
14 | use PHPUnit\Framework\TestCase;
15 | use Symfony\Component\VarDumper\Test\VarDumperTestTrait;
16 |
17 | class VarDumperTestTraitTest extends TestCase
18 | {
19 | use VarDumperTestTrait;
20 |
21 | public function testItComparesLargeData()
22 | {
23 | $howMany = 700;
24 | $data = array_fill_keys(range(0, $howMany), array('a', 'b', 'c', 'd'));
25 |
26 | $expected = sprintf("array:%d [\n", $howMany + 1);
27 | for ($i = 0; $i <= $howMany; ++$i) {
28 | $expected .= << array:4 [
30 | 0 => "a"
31 | 1 => "b"
32 | 2 => "c"
33 | 3 => "d"
34 | ]\n
35 | EODUMP;
36 | }
37 | $expected .= "]\n";
38 |
39 | $this->assertDumpEquals($expected, $data);
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/FooOptCommand.php:
--------------------------------------------------------------------------------
1 | setName('foo:bar')
17 | ->setDescription('The foo:bar command')
18 | ->setAliases(array('afoobar'))
19 | ->addOption('fooopt', 'fo', InputOption::VALUE_OPTIONAL, 'fooopt description')
20 | ;
21 | }
22 |
23 | protected function interact(InputInterface $input, OutputInterface $output)
24 | {
25 | $output->writeln('interact called');
26 | }
27 |
28 | protected function execute(InputInterface $input, OutputInterface $output)
29 | {
30 | $this->input = $input;
31 | $this->output = $output;
32 |
33 | $output->writeln('called');
34 | $output->writeln($this->input->getOption('fooopt'));
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/application_2.txt:
--------------------------------------------------------------------------------
1 | My Symfony application v1.0
2 |
3 | Usage:
4 | command [options] [arguments]
5 |
6 | Options:
7 | -h, --help Display this help message
8 | -q, --quiet Do not output any message
9 | -V, --version Display this application version
10 | --ansi Force ANSI output
11 | --no-ansi Disable ANSI output
12 | -n, --no-interaction Do not ask any interactive question
13 | -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
14 |
15 | Available commands:
16 | help Displays help for a command
17 | list Lists commands
18 | descriptor
19 | descriptor:command1 [alias1|alias2] command 1 description
20 | descriptor:command2 command 2 description
21 | descriptor:command4 [descriptor:alias_command4|command4:descriptor]
22 |
--------------------------------------------------------------------------------
/cmd/docker/DockerComposeCommand.php:
--------------------------------------------------------------------------------
1 | setName('docker-compose')
22 | ->setDescription('进入配置的目录,充当docker-compose命令')
23 | ->setHelp('docker-compose命令的别名')
24 | ->addArgument(
25 | 'options',
26 | InputArgument::REQUIRED,
27 | 'start,stop,restart'
28 | );
29 | }
30 |
31 | protected function execute(InputInterface $input, OutputInterface $output)
32 | {
33 | $options = $input->getArgument('options');
34 | $config = \Config::get('docker');
35 | $dir = $config['dir'];
36 | chdir($dir);
37 | system('docker-compose ' . $options);
38 | }
39 | }
--------------------------------------------------------------------------------
/cmd/web/ApacheBuildCommand.php:
--------------------------------------------------------------------------------
1 | setName('apache:build')
16 | ->setDescription('生产apache配置文件')
17 | ->setHelp('生产apache配置文件');
18 | }
19 |
20 |
21 | protected function execute(InputInterface $input, OutputInterface $output)
22 | {
23 | $webConfig = \Config::get('web');
24 | $sitesPath = $webConfig['sites-path'];
25 | $sitesEnabled = $webConfig['sites-enabled'];
26 | $example = file_get_contents($webConfig['vhost']);
27 | foreach ($sitesEnabled as $config){
28 | $strConfig = str_replace(['[port]','[domain]','[document]'],[$config['port'],implode(' ',$config['domain']),$config['document']],$example);
29 | file_put_contents($sitesPath.'/'.reset($config['domain']).'.conf',$strConfig,LOCK_EX);
30 | }
31 | }
32 | }
--------------------------------------------------------------------------------
/vendor/symfony/debug/Resources/ext/tests/002.phpt:
--------------------------------------------------------------------------------
1 | --TEST--
2 | Test symfony_debug_backtrace in case of fatal error
3 | --SKIPIF--
4 |
5 | --FILE--
6 |
28 | --EXPECTF--
29 | Fatal error: Call to undefined function notexist() in %s on line %d
30 | Array
31 | (
32 | [0] => Array
33 | (
34 | [function] => bt
35 | [args] => Array
36 | (
37 | )
38 |
39 | )
40 |
41 | [1] => Array
42 | (
43 | [file] => %s
44 | [line] => %d
45 | [function] => foo
46 | [args] => Array
47 | (
48 | )
49 |
50 | )
51 |
52 | [2] => Array
53 | (
54 | [file] => %s
55 | [line] => %d
56 | [function] => bar
57 | [args] => Array
58 | (
59 | )
60 |
61 | )
62 |
63 | )
64 |
--------------------------------------------------------------------------------
/vendor/symfony/var-dumper/Cloner/Cursor.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\VarDumper\Cloner;
13 |
14 | /**
15 | * Represents the current state of a dumper while dumping.
16 | *
17 | * @author Nicolas Grekas
18 | */
19 | class Cursor
20 | {
21 | const HASH_INDEXED = Stub::ARRAY_INDEXED;
22 | const HASH_ASSOC = Stub::ARRAY_ASSOC;
23 | const HASH_OBJECT = Stub::TYPE_OBJECT;
24 | const HASH_RESOURCE = Stub::TYPE_RESOURCE;
25 |
26 | public $depth = 0;
27 | public $refIndex = 0;
28 | public $softRefTo = 0;
29 | public $softRefCount = 0;
30 | public $softRefHandle = 0;
31 | public $hardRefTo = 0;
32 | public $hardRefCount = 0;
33 | public $hardRefHandle = 0;
34 | public $hashType;
35 | public $hashKey;
36 | public $hashKeyIsBinary;
37 | public $hashIndex = 0;
38 | public $hashLength = 0;
39 | public $hashCut = 0;
40 | public $stop = false;
41 | public $attr = array();
42 | }
43 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Descriptor/JsonDescriptorTest.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Console\Tests\Descriptor;
13 |
14 | use Symfony\Component\Console\Descriptor\JsonDescriptor;
15 | use Symfony\Component\Console\Output\BufferedOutput;
16 |
17 | class JsonDescriptorTest extends AbstractDescriptorTest
18 | {
19 | protected function getDescriptor()
20 | {
21 | return new JsonDescriptor();
22 | }
23 |
24 | protected function getFormat()
25 | {
26 | return 'json';
27 | }
28 |
29 | protected function assertDescription($expectedDescription, $describedObject, array $options = array())
30 | {
31 | $output = new BufferedOutput(BufferedOutput::VERBOSITY_NORMAL, true);
32 | $this->getDescriptor()->describe($output, $describedObject, $options + array('raw_output' => true));
33 | $this->assertEquals(json_decode(trim($expectedDescription), true), json_decode(trim(str_replace(PHP_EOL, "\n", $output->fetch())), true));
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/vendor/psr/log/README.md:
--------------------------------------------------------------------------------
1 | PSR Log
2 | =======
3 |
4 | This repository holds all interfaces/classes/traits related to
5 | [PSR-3](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md).
6 |
7 | Note that this is not a logger of its own. It is merely an interface that
8 | describes a logger. See the specification for more details.
9 |
10 | Usage
11 | -----
12 |
13 | If you need a logger, you can use the interface like this:
14 |
15 | ```php
16 | logger = $logger;
27 | }
28 |
29 | public function doSomething()
30 | {
31 | if ($this->logger) {
32 | $this->logger->info('Doing work');
33 | }
34 |
35 | // do something useful
36 | }
37 | }
38 | ```
39 |
40 | You can then pick one of the implementations of the interface to get a logger.
41 |
42 | If you want to implement the interface, you can require this package and
43 | implement `Psr\Log\LoggerInterface` in your code. Please read the
44 | [specification text](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md)
45 | for details.
46 |
--------------------------------------------------------------------------------
/cmd/docker/DockerShowCommand.php:
--------------------------------------------------------------------------------
1 | setName('docker:show')
23 | ->setDescription('显示docker运行情况')
24 | ->setHelp('显示docker,name、images、ip、port');
25 | }
26 |
27 | protected function execute(InputInterface $input, OutputInterface $output)
28 | {
29 | $docker = new Docker();
30 | $list = $docker->running();
31 | $io = new SymfonyStyle($input, $output);
32 | $output->writeln("images");
33 | $images = $docker->images();
34 | if ($images) {
35 | $io->table(array_keys(end($images)), $images);
36 | }
37 |
38 | $output->writeln("running");
39 | if ($list) {
40 | $io->table(array_keys(end($list)), $list);
41 | }
42 | }
43 | }
--------------------------------------------------------------------------------
/vendor/symfony/debug/Exception/FatalThrowableError.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Debug\Exception;
13 |
14 | /**
15 | * Fatal Throwable Error.
16 | *
17 | * @author Nicolas Grekas
18 | */
19 | class FatalThrowableError extends FatalErrorException
20 | {
21 | public function __construct(\Throwable $e)
22 | {
23 | if ($e instanceof \ParseError) {
24 | $message = 'Parse error: '.$e->getMessage();
25 | $severity = E_PARSE;
26 | } elseif ($e instanceof \TypeError) {
27 | $message = 'Type error: '.$e->getMessage();
28 | $severity = E_RECOVERABLE_ERROR;
29 | } else {
30 | $message = $e->getMessage();
31 | $severity = E_ERROR;
32 | }
33 |
34 | \ErrorException::__construct(
35 | $message,
36 | $e->getCode(),
37 | $severity,
38 | $e->getFile(),
39 | $e->getLine()
40 | );
41 |
42 | $this->setTrace($e->getTrace());
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/TerminalTest.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Console\Tests;
13 |
14 | use PHPUnit\Framework\TestCase;
15 | use Symfony\Component\Console\Terminal;
16 |
17 | class TerminalTest extends TestCase
18 | {
19 | public function test()
20 | {
21 | putenv('COLUMNS=100');
22 | putenv('LINES=50');
23 | $terminal = new Terminal();
24 | $this->assertSame(100, $terminal->getWidth());
25 | $this->assertSame(50, $terminal->getHeight());
26 |
27 | putenv('COLUMNS=120');
28 | putenv('LINES=60');
29 | $terminal = new Terminal();
30 | $this->assertSame(120, $terminal->getWidth());
31 | $this->assertSame(60, $terminal->getHeight());
32 | }
33 |
34 | public function test_zero_values()
35 | {
36 | putenv('COLUMNS=0');
37 | putenv('LINES=0');
38 |
39 | $terminal = new Terminal();
40 |
41 | $this->assertSame(0, $terminal->getWidth());
42 | $this->assertSame(0, $terminal->getHeight());
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/vendor/symfony/debug/Exception/ContextErrorException.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Debug\Exception;
13 |
14 | /**
15 | * Error Exception with Variable Context.
16 | *
17 | * @author Christian Sciberras
18 | *
19 | * @deprecated since version 3.3. Instead, \ErrorException will be used directly in 4.0.
20 | */
21 | class ContextErrorException extends \ErrorException
22 | {
23 | private $context = array();
24 |
25 | public function __construct($message, $code, $severity, $filename, $lineno, $context = array())
26 | {
27 | parent::__construct($message, $code, $severity, $filename, $lineno);
28 | $this->context = $context;
29 | }
30 |
31 | /**
32 | * @return array Array of variables that existed when the exception occurred
33 | */
34 | public function getContext()
35 | {
36 | @trigger_error(sprintf('The %s class is deprecated since version 3.3 and will be removed in 4.0.', __CLASS__), E_USER_DEPRECATED);
37 |
38 | return $this->context;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_5.php:
--------------------------------------------------------------------------------
1 | writeln('Lorem ipsum dolor sit amet');
12 | $output->listing(array(
13 | 'Lorem ipsum dolor sit amet',
14 | 'consectetur adipiscing elit',
15 | ));
16 |
17 | //Even using write:
18 | $output->write('Lorem ipsum dolor sit amet');
19 | $output->listing(array(
20 | 'Lorem ipsum dolor sit amet',
21 | 'consectetur adipiscing elit',
22 | ));
23 |
24 | $output->write('Lorem ipsum dolor sit amet');
25 | $output->text(array(
26 | 'Lorem ipsum dolor sit amet',
27 | 'consectetur adipiscing elit',
28 | ));
29 |
30 | $output->newLine();
31 |
32 | $output->write('Lorem ipsum dolor sit amet');
33 | $output->comment(array(
34 | 'Lorem ipsum dolor sit amet',
35 | 'consectetur adipiscing elit',
36 | ));
37 | };
38 |
--------------------------------------------------------------------------------
/vendor/symfony/var-dumper/Caster/SymfonyCaster.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\VarDumper\Caster;
13 |
14 | use Symfony\Component\HttpFoundation\Request;
15 | use Symfony\Component\VarDumper\Cloner\Stub;
16 |
17 | class SymfonyCaster
18 | {
19 | private static $requestGetters = array(
20 | 'pathInfo' => 'getPathInfo',
21 | 'requestUri' => 'getRequestUri',
22 | 'baseUrl' => 'getBaseUrl',
23 | 'basePath' => 'getBasePath',
24 | 'method' => 'getMethod',
25 | 'format' => 'getRequestFormat',
26 | );
27 |
28 | public static function castRequest(Request $request, array $a, Stub $stub, $isNested)
29 | {
30 | $clone = null;
31 |
32 | foreach (self::$requestGetters as $prop => $getter) {
33 | if (null === $a[Caster::PREFIX_PROTECTED.$prop]) {
34 | if (null === $clone) {
35 | $clone = clone $request;
36 | }
37 | $a[Caster::PREFIX_VIRTUAL.$prop] = $clone->{$getter}();
38 | }
39 | }
40 |
41 | return $a;
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Tests/Fixtures/Style/SymfonyStyle/command/command_4.php:
--------------------------------------------------------------------------------
1 | write('Lorem ipsum dolor sit amet');
12 | $output->title('First title');
13 |
14 | $output->writeln('Lorem ipsum dolor sit amet');
15 | $output->title('Second title');
16 |
17 | $output->write('Lorem ipsum dolor sit amet');
18 | $output->write('');
19 | $output->title('Third title');
20 |
21 | //Ensure edge case by appending empty strings to history:
22 | $output->write('Lorem ipsum dolor sit amet');
23 | $output->write(array('', '', ''));
24 | $output->title('Fourth title');
25 |
26 | //Ensure have manual control over number of blank lines:
27 | $output->writeln('Lorem ipsum dolor sit amet');
28 | $output->writeln(array('', '')); //Should append an extra blank line
29 | $output->title('Fifth title');
30 |
31 | $output->writeln('Lorem ipsum dolor sit amet');
32 | $output->newLine(2); //Should append an extra blank line
33 | $output->title('Fifth title');
34 | };
35 |
--------------------------------------------------------------------------------
/vendor/symfony/console/phpunit.xml.dist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | ./Tests/
18 |
19 |
20 |
21 |
22 |
23 | ./
24 |
25 | ./Resources
26 | ./Tests
27 | ./vendor
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 | Symfony\Component\Console
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/vendor/symfony/console/Exception/CommandNotFoundException.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\Console\Exception;
13 |
14 | /**
15 | * Represents an incorrect command name typed in the console.
16 | *
17 | * @author Jérôme Tamarelle
18 | */
19 | class CommandNotFoundException extends \InvalidArgumentException implements ExceptionInterface
20 | {
21 | private $alternatives;
22 |
23 | /**
24 | * @param string $message Exception message to throw
25 | * @param array $alternatives List of similar defined names
26 | * @param int $code Exception code
27 | * @param Exception $previous previous exception used for the exception chaining
28 | */
29 | public function __construct($message, array $alternatives = array(), $code = 0, \Exception $previous = null)
30 | {
31 | parent::__construct($message, $code, $previous);
32 |
33 | $this->alternatives = $alternatives;
34 | }
35 |
36 | /**
37 | * @return array A list of similar defined names
38 | */
39 | public function getAlternatives()
40 | {
41 | return $this->alternatives;
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/vendor/symfony/var-dumper/VarDumper.php:
--------------------------------------------------------------------------------
1 |
7 | *
8 | * For the full copyright and license information, please view the LICENSE
9 | * file that was distributed with this source code.
10 | */
11 |
12 | namespace Symfony\Component\VarDumper;
13 |
14 | use Symfony\Component\VarDumper\Cloner\VarCloner;
15 | use Symfony\Component\VarDumper\Dumper\CliDumper;
16 | use Symfony\Component\VarDumper\Dumper\HtmlDumper;
17 |
18 | // Load the global dump() function
19 | require_once __DIR__.'/Resources/functions/dump.php';
20 |
21 | /**
22 | * @author Nicolas Grekas