mirror of
https://github.com/rectorphp/rector.git
synced 2024-05-31 16:30:51 +00:00
Updated Rector to commit fda55cf5ce
fda55cf5ce
add missing yaml dependency
This commit is contained in:
parent
9250c84576
commit
feb709c74d
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
|
@ -4,4 +4,4 @@
|
|||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit86fcb3fb993a4a026ca21db64c2a9773::getLoader();
|
||||
return ComposerAutoloaderInit0c4ee193fbbfb4c8d71e4941a5efdabc::getLoader();
|
||||
|
|
2
vendor/composer/InstalledVersions.php
vendored
2
vendor/composer/InstalledVersions.php
vendored
File diff suppressed because one or more lines are too long
12
vendor/composer/autoload_classmap.php
vendored
12
vendor/composer/autoload_classmap.php
vendored
|
@ -1181,6 +1181,18 @@ return array(
|
|||
'RectorPrefix20210512\\Symfony\\Component\\VarDumper\\Server\\DumpServer' => $vendorDir . '/symfony/var-dumper/Server/DumpServer.php',
|
||||
'RectorPrefix20210512\\Symfony\\Component\\VarDumper\\Test\\VarDumperTestTrait' => $vendorDir . '/symfony/var-dumper/Test/VarDumperTestTrait.php',
|
||||
'RectorPrefix20210512\\Symfony\\Component\\VarDumper\\VarDumper' => $vendorDir . '/symfony/var-dumper/VarDumper.php',
|
||||
'RectorPrefix20210512\\Symfony\\Component\\Yaml\\Command\\LintCommand' => $vendorDir . '/symfony/yaml/Command/LintCommand.php',
|
||||
'RectorPrefix20210512\\Symfony\\Component\\Yaml\\Dumper' => $vendorDir . '/symfony/yaml/Dumper.php',
|
||||
'RectorPrefix20210512\\Symfony\\Component\\Yaml\\Escaper' => $vendorDir . '/symfony/yaml/Escaper.php',
|
||||
'RectorPrefix20210512\\Symfony\\Component\\Yaml\\Exception\\DumpException' => $vendorDir . '/symfony/yaml/Exception/DumpException.php',
|
||||
'RectorPrefix20210512\\Symfony\\Component\\Yaml\\Exception\\ExceptionInterface' => $vendorDir . '/symfony/yaml/Exception/ExceptionInterface.php',
|
||||
'RectorPrefix20210512\\Symfony\\Component\\Yaml\\Exception\\ParseException' => $vendorDir . '/symfony/yaml/Exception/ParseException.php',
|
||||
'RectorPrefix20210512\\Symfony\\Component\\Yaml\\Exception\\RuntimeException' => $vendorDir . '/symfony/yaml/Exception/RuntimeException.php',
|
||||
'RectorPrefix20210512\\Symfony\\Component\\Yaml\\Inline' => $vendorDir . '/symfony/yaml/Inline.php',
|
||||
'RectorPrefix20210512\\Symfony\\Component\\Yaml\\Parser' => $vendorDir . '/symfony/yaml/Parser.php',
|
||||
'RectorPrefix20210512\\Symfony\\Component\\Yaml\\Tag\\TaggedValue' => $vendorDir . '/symfony/yaml/Tag/TaggedValue.php',
|
||||
'RectorPrefix20210512\\Symfony\\Component\\Yaml\\Unescaper' => $vendorDir . '/symfony/yaml/Unescaper.php',
|
||||
'RectorPrefix20210512\\Symfony\\Component\\Yaml\\Yaml' => $vendorDir . '/symfony/yaml/Yaml.php',
|
||||
'RectorPrefix20210512\\Symfony\\Contracts\\EventDispatcher\\Event' => $vendorDir . '/symfony/event-dispatcher-contracts/Event.php',
|
||||
'RectorPrefix20210512\\Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface' => $vendorDir . '/symfony/event-dispatcher-contracts/EventDispatcherInterface.php',
|
||||
'RectorPrefix20210512\\Symfony\\Contracts\\HttpClient\\ChunkInterface' => $vendorDir . '/symfony/http-client-contracts/ChunkInterface.php',
|
||||
|
|
1
vendor/composer/autoload_psr4.php
vendored
1
vendor/composer/autoload_psr4.php
vendored
|
@ -41,6 +41,7 @@ return array(
|
|||
'RectorPrefix20210512\\Symfony\\Contracts\\Service\\' => array($vendorDir . '/symfony/service-contracts'),
|
||||
'RectorPrefix20210512\\Symfony\\Contracts\\HttpClient\\' => array($vendorDir . '/symfony/http-client-contracts'),
|
||||
'RectorPrefix20210512\\Symfony\\Contracts\\EventDispatcher\\' => array($vendorDir . '/symfony/event-dispatcher-contracts'),
|
||||
'RectorPrefix20210512\\Symfony\\Component\\Yaml\\' => array($vendorDir . '/symfony/yaml'),
|
||||
'RectorPrefix20210512\\Symfony\\Component\\VarDumper\\' => array($vendorDir . '/symfony/var-dumper'),
|
||||
'RectorPrefix20210512\\Symfony\\Component\\String\\' => array($vendorDir . '/symfony/string'),
|
||||
'RectorPrefix20210512\\Symfony\\Component\\HttpKernel\\' => array($vendorDir . '/symfony/http-kernel'),
|
||||
|
|
14
vendor/composer/autoload_real.php
vendored
14
vendor/composer/autoload_real.php
vendored
|
@ -2,7 +2,7 @@
|
|||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit86fcb3fb993a4a026ca21db64c2a9773
|
||||
class ComposerAutoloaderInit0c4ee193fbbfb4c8d71e4941a5efdabc
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
|
@ -22,15 +22,15 @@ class ComposerAutoloaderInit86fcb3fb993a4a026ca21db64c2a9773
|
|||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit86fcb3fb993a4a026ca21db64c2a9773', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit0c4ee193fbbfb4c8d71e4941a5efdabc', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit86fcb3fb993a4a026ca21db64c2a9773', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit0c4ee193fbbfb4c8d71e4941a5efdabc', 'loadClassLoader'));
|
||||
|
||||
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
||||
if ($useStaticLoader) {
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit86fcb3fb993a4a026ca21db64c2a9773::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit0c4ee193fbbfb4c8d71e4941a5efdabc::getInitializer($loader));
|
||||
} else {
|
||||
$classMap = require __DIR__ . '/autoload_classmap.php';
|
||||
if ($classMap) {
|
||||
|
@ -42,19 +42,19 @@ class ComposerAutoloaderInit86fcb3fb993a4a026ca21db64c2a9773
|
|||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit86fcb3fb993a4a026ca21db64c2a9773::$files;
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit0c4ee193fbbfb4c8d71e4941a5efdabc::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire86fcb3fb993a4a026ca21db64c2a9773($fileIdentifier, $file);
|
||||
composerRequire0c4ee193fbbfb4c8d71e4941a5efdabc($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
||||
|
||||
function composerRequire86fcb3fb993a4a026ca21db64c2a9773($fileIdentifier, $file)
|
||||
function composerRequire0c4ee193fbbfb4c8d71e4941a5efdabc($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
require $file;
|
||||
|
|
25
vendor/composer/autoload_static.php
vendored
25
vendor/composer/autoload_static.php
vendored
|
@ -4,7 +4,7 @@
|
|||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInit86fcb3fb993a4a026ca21db64c2a9773
|
||||
class ComposerStaticInit0c4ee193fbbfb4c8d71e4941a5efdabc
|
||||
{
|
||||
public static $files = array (
|
||||
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
|
||||
|
@ -64,6 +64,7 @@ class ComposerStaticInit86fcb3fb993a4a026ca21db64c2a9773
|
|||
'RectorPrefix20210512\\Symfony\\Contracts\\Service\\' => 47,
|
||||
'RectorPrefix20210512\\Symfony\\Contracts\\HttpClient\\' => 50,
|
||||
'RectorPrefix20210512\\Symfony\\Contracts\\EventDispatcher\\' => 55,
|
||||
'RectorPrefix20210512\\Symfony\\Component\\Yaml\\' => 44,
|
||||
'RectorPrefix20210512\\Symfony\\Component\\VarDumper\\' => 49,
|
||||
'RectorPrefix20210512\\Symfony\\Component\\String\\' => 46,
|
||||
'RectorPrefix20210512\\Symfony\\Component\\HttpKernel\\' => 50,
|
||||
|
@ -238,6 +239,10 @@ class ComposerStaticInit86fcb3fb993a4a026ca21db64c2a9773
|
|||
array (
|
||||
0 => __DIR__ . '/..' . '/symfony/event-dispatcher-contracts',
|
||||
),
|
||||
'RectorPrefix20210512\\Symfony\\Component\\Yaml\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/symfony/yaml',
|
||||
),
|
||||
'RectorPrefix20210512\\Symfony\\Component\\VarDumper\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/symfony/var-dumper',
|
||||
|
@ -1520,6 +1525,18 @@ class ComposerStaticInit86fcb3fb993a4a026ca21db64c2a9773
|
|||
'RectorPrefix20210512\\Symfony\\Component\\VarDumper\\Server\\DumpServer' => __DIR__ . '/..' . '/symfony/var-dumper/Server/DumpServer.php',
|
||||
'RectorPrefix20210512\\Symfony\\Component\\VarDumper\\Test\\VarDumperTestTrait' => __DIR__ . '/..' . '/symfony/var-dumper/Test/VarDumperTestTrait.php',
|
||||
'RectorPrefix20210512\\Symfony\\Component\\VarDumper\\VarDumper' => __DIR__ . '/..' . '/symfony/var-dumper/VarDumper.php',
|
||||
'RectorPrefix20210512\\Symfony\\Component\\Yaml\\Command\\LintCommand' => __DIR__ . '/..' . '/symfony/yaml/Command/LintCommand.php',
|
||||
'RectorPrefix20210512\\Symfony\\Component\\Yaml\\Dumper' => __DIR__ . '/..' . '/symfony/yaml/Dumper.php',
|
||||
'RectorPrefix20210512\\Symfony\\Component\\Yaml\\Escaper' => __DIR__ . '/..' . '/symfony/yaml/Escaper.php',
|
||||
'RectorPrefix20210512\\Symfony\\Component\\Yaml\\Exception\\DumpException' => __DIR__ . '/..' . '/symfony/yaml/Exception/DumpException.php',
|
||||
'RectorPrefix20210512\\Symfony\\Component\\Yaml\\Exception\\ExceptionInterface' => __DIR__ . '/..' . '/symfony/yaml/Exception/ExceptionInterface.php',
|
||||
'RectorPrefix20210512\\Symfony\\Component\\Yaml\\Exception\\ParseException' => __DIR__ . '/..' . '/symfony/yaml/Exception/ParseException.php',
|
||||
'RectorPrefix20210512\\Symfony\\Component\\Yaml\\Exception\\RuntimeException' => __DIR__ . '/..' . '/symfony/yaml/Exception/RuntimeException.php',
|
||||
'RectorPrefix20210512\\Symfony\\Component\\Yaml\\Inline' => __DIR__ . '/..' . '/symfony/yaml/Inline.php',
|
||||
'RectorPrefix20210512\\Symfony\\Component\\Yaml\\Parser' => __DIR__ . '/..' . '/symfony/yaml/Parser.php',
|
||||
'RectorPrefix20210512\\Symfony\\Component\\Yaml\\Tag\\TaggedValue' => __DIR__ . '/..' . '/symfony/yaml/Tag/TaggedValue.php',
|
||||
'RectorPrefix20210512\\Symfony\\Component\\Yaml\\Unescaper' => __DIR__ . '/..' . '/symfony/yaml/Unescaper.php',
|
||||
'RectorPrefix20210512\\Symfony\\Component\\Yaml\\Yaml' => __DIR__ . '/..' . '/symfony/yaml/Yaml.php',
|
||||
'RectorPrefix20210512\\Symfony\\Contracts\\EventDispatcher\\Event' => __DIR__ . '/..' . '/symfony/event-dispatcher-contracts/Event.php',
|
||||
'RectorPrefix20210512\\Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface' => __DIR__ . '/..' . '/symfony/event-dispatcher-contracts/EventDispatcherInterface.php',
|
||||
'RectorPrefix20210512\\Symfony\\Contracts\\HttpClient\\ChunkInterface' => __DIR__ . '/..' . '/symfony/http-client-contracts/ChunkInterface.php',
|
||||
|
@ -3464,9 +3481,9 @@ class ComposerStaticInit86fcb3fb993a4a026ca21db64c2a9773
|
|||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit86fcb3fb993a4a026ca21db64c2a9773::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit86fcb3fb993a4a026ca21db64c2a9773::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit86fcb3fb993a4a026ca21db64c2a9773::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit0c4ee193fbbfb4c8d71e4941a5efdabc::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit0c4ee193fbbfb4c8d71e4941a5efdabc::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit0c4ee193fbbfb4c8d71e4941a5efdabc::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
|
300
vendor/composer/installed.json
vendored
300
vendor/composer/installed.json
vendored
|
@ -3605,18 +3605,96 @@
|
|||
"install-path": "..\/symfony\/var-dumper"
|
||||
},
|
||||
{
|
||||
"name": "symplify\/astral",
|
||||
"version": "v9.3.6",
|
||||
"version_normalized": "9.3.6.0",
|
||||
"name": "symfony\/yaml",
|
||||
"version": "v5.2.7",
|
||||
"version_normalized": "5.2.7.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/symplify\/astral.git",
|
||||
"reference": "ab238b3247174cbad0a01d455a1c45643ec2e1d5"
|
||||
"url": "https:\/\/github.com\/symfony\/yaml.git",
|
||||
"reference": "76546cbeddd0a9540b4e4e57eddeec3e9bb444a5"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/symplify\/astral\/zipball\/ab238b3247174cbad0a01d455a1c45643ec2e1d5",
|
||||
"reference": "ab238b3247174cbad0a01d455a1c45643ec2e1d5",
|
||||
"url": "https:\/\/api.github.com\/repos\/symfony\/yaml\/zipball\/76546cbeddd0a9540b4e4e57eddeec3e9bb444a5",
|
||||
"reference": "76546cbeddd0a9540b4e4e57eddeec3e9bb444a5",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.2.5",
|
||||
"symfony\/deprecation-contracts": "^2.1",
|
||||
"symfony\/polyfill-ctype": "~1.8"
|
||||
},
|
||||
"conflict": {
|
||||
"symfony\/console": "<4.4"
|
||||
},
|
||||
"require-dev": {
|
||||
"symfony\/console": "^4.4|^5.0"
|
||||
},
|
||||
"suggest": {
|
||||
"symfony\/console": "For validating YAML files using the lint command"
|
||||
},
|
||||
"time": "2021-04-29T20:47:09+00:00",
|
||||
"bin": [
|
||||
"Resources\/bin\/yaml-lint"
|
||||
],
|
||||
"type": "library",
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"RectorPrefix20210512\\Symfony\\Component\\Yaml\\": ""
|
||||
},
|
||||
"exclude-from-classmap": [
|
||||
"\/Tests\/"
|
||||
]
|
||||
},
|
||||
"notification-url": "https:\/\/packagist.org\/downloads\/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Fabien Potencier",
|
||||
"email": "fabien@symfony.com"
|
||||
},
|
||||
{
|
||||
"name": "Symfony Community",
|
||||
"homepage": "https:\/\/symfony.com\/contributors"
|
||||
}
|
||||
],
|
||||
"description": "Loads and dumps YAML files",
|
||||
"homepage": "https:\/\/symfony.com",
|
||||
"support": {
|
||||
"source": "https:\/\/github.com\/symfony\/yaml\/tree\/v5.2.7"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https:\/\/symfony.com\/sponsor",
|
||||
"type": "custom"
|
||||
},
|
||||
{
|
||||
"url": "https:\/\/github.com\/fabpot",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https:\/\/tidelift.com\/funding\/github\/packagist\/symfony\/symfony",
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"install-path": "..\/symfony\/yaml"
|
||||
},
|
||||
{
|
||||
"name": "symplify\/astral",
|
||||
"version": "v9.3.10",
|
||||
"version_normalized": "9.3.10.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/symplify\/astral.git",
|
||||
"reference": "5b975f944bc21baed6755e84dbf3e9cebd4e4f9a"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/symplify\/astral\/zipball\/5b975f944bc21baed6755e84dbf3e9cebd4e4f9a",
|
||||
"reference": "5b975f944bc21baed6755e84dbf3e9cebd4e4f9a",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -3625,14 +3703,14 @@
|
|||
"php": ">=7.3",
|
||||
"symfony\/dependency-injection": "^5.2",
|
||||
"symfony\/http-kernel": "^4.4|^5.2",
|
||||
"symplify\/autowire-array-parameter": "^9.3.6",
|
||||
"symplify\/package-builder": "^9.3.6"
|
||||
"symplify\/autowire-array-parameter": "^9.3.10",
|
||||
"symplify\/package-builder": "^9.3.10"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit\/phpunit": "^9.5",
|
||||
"symplify\/easy-testing": "^9.3.6"
|
||||
"symplify\/easy-testing": "^9.3.10"
|
||||
},
|
||||
"time": "2021-05-11T22:44:24+00:00",
|
||||
"time": "2021-05-12T14:21:40+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
|
@ -3651,7 +3729,7 @@
|
|||
],
|
||||
"description": "Toolking for smart daily work with AST",
|
||||
"support": {
|
||||
"source": "https:\/\/github.com\/symplify\/astral\/tree\/v9.3.6"
|
||||
"source": "https:\/\/github.com\/symplify\/astral\/tree\/v9.3.10"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
@ -3667,29 +3745,29 @@
|
|||
},
|
||||
{
|
||||
"name": "symplify\/autowire-array-parameter",
|
||||
"version": "v9.3.6",
|
||||
"version_normalized": "9.3.6.0",
|
||||
"version": "v9.3.10",
|
||||
"version_normalized": "9.3.10.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/symplify\/autowire-array-parameter.git",
|
||||
"reference": "00044807ab4b8ae7df610f80d54360a49b253146"
|
||||
"reference": "79ec04d0f6f6d2375700c61c71cf3299276400f5"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/symplify\/autowire-array-parameter\/zipball\/00044807ab4b8ae7df610f80d54360a49b253146",
|
||||
"reference": "00044807ab4b8ae7df610f80d54360a49b253146",
|
||||
"url": "https:\/\/api.github.com\/repos\/symplify\/autowire-array-parameter\/zipball\/79ec04d0f6f6d2375700c61c71cf3299276400f5",
|
||||
"reference": "79ec04d0f6f6d2375700c61c71cf3299276400f5",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"nette\/utils": "^3.2",
|
||||
"php": ">=7.3",
|
||||
"symfony\/dependency-injection": "^5.2",
|
||||
"symplify\/package-builder": "^9.3.6"
|
||||
"symplify\/package-builder": "^9.3.10"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit\/phpunit": "^9.5"
|
||||
},
|
||||
"time": "2021-05-11T22:44:31+00:00",
|
||||
"time": "2021-05-12T14:21:37+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
|
@ -3708,7 +3786,7 @@
|
|||
],
|
||||
"description": "Autowire array parameters for your Symfony applications",
|
||||
"support": {
|
||||
"source": "https:\/\/github.com\/symplify\/autowire-array-parameter\/tree\/v9.3.6"
|
||||
"source": "https:\/\/github.com\/symplify\/autowire-array-parameter\/tree\/v9.3.10"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
@ -3724,17 +3802,17 @@
|
|||
},
|
||||
{
|
||||
"name": "symplify\/composer-json-manipulator",
|
||||
"version": "v9.3.6",
|
||||
"version_normalized": "9.3.6.0",
|
||||
"version": "v9.3.10",
|
||||
"version_normalized": "9.3.10.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/symplify\/composer-json-manipulator.git",
|
||||
"reference": "c5218020d999c775f5bcc625c7e3d46f7bd21e81"
|
||||
"reference": "845004dcb52f7c4b9ab416a69be3975f4038c8dc"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/symplify\/composer-json-manipulator\/zipball\/c5218020d999c775f5bcc625c7e3d46f7bd21e81",
|
||||
"reference": "c5218020d999c775f5bcc625c7e3d46f7bd21e81",
|
||||
"url": "https:\/\/api.github.com\/repos\/symplify\/composer-json-manipulator\/zipball\/845004dcb52f7c4b9ab416a69be3975f4038c8dc",
|
||||
"reference": "845004dcb52f7c4b9ab416a69be3975f4038c8dc",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -3744,13 +3822,13 @@
|
|||
"symfony\/dependency-injection": "^5.2",
|
||||
"symfony\/filesystem": "^4.4|^5.2",
|
||||
"symfony\/http-kernel": "^4.4|^5.2",
|
||||
"symplify\/package-builder": "^9.3.6",
|
||||
"symplify\/smart-file-system": "^9.3.6"
|
||||
"symplify\/package-builder": "^9.3.10",
|
||||
"symplify\/smart-file-system": "^9.3.10"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit\/phpunit": "^9.5"
|
||||
},
|
||||
"time": "2021-05-11T22:44:23+00:00",
|
||||
"time": "2021-05-12T14:22:02+00:00",
|
||||
"type": "symfony-bundle",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
|
@ -3769,7 +3847,7 @@
|
|||
],
|
||||
"description": "Package to load, merge and save composer.json file(s)",
|
||||
"support": {
|
||||
"source": "https:\/\/github.com\/symplify\/composer-json-manipulator\/tree\/v9.3.6"
|
||||
"source": "https:\/\/github.com\/symplify\/composer-json-manipulator\/tree\/v9.3.10"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
@ -3785,17 +3863,17 @@
|
|||
},
|
||||
{
|
||||
"name": "symplify\/console-color-diff",
|
||||
"version": "v9.3.6",
|
||||
"version_normalized": "9.3.6.0",
|
||||
"version": "v9.3.10",
|
||||
"version_normalized": "9.3.10.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/symplify\/console-color-diff.git",
|
||||
"reference": "8f25607a0b05754bbf6ac8f06d6662adf201e1cb"
|
||||
"reference": "7910766e3a4fce04e656a6265fb963f7bf1e4fa5"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/symplify\/console-color-diff\/zipball\/8f25607a0b05754bbf6ac8f06d6662adf201e1cb",
|
||||
"reference": "8f25607a0b05754bbf6ac8f06d6662adf201e1cb",
|
||||
"url": "https:\/\/api.github.com\/repos\/symplify\/console-color-diff\/zipball\/7910766e3a4fce04e656a6265fb963f7bf1e4fa5",
|
||||
"reference": "7910766e3a4fce04e656a6265fb963f7bf1e4fa5",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -3805,12 +3883,12 @@
|
|||
"symfony\/console": "^4.4|^5.2",
|
||||
"symfony\/dependency-injection": "^5.2",
|
||||
"symfony\/http-kernel": "^4.4|^5.2",
|
||||
"symplify\/package-builder": "^9.3.6"
|
||||
"symplify\/package-builder": "^9.3.10"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit\/phpunit": "^9.5"
|
||||
},
|
||||
"time": "2021-05-11T22:44:55+00:00",
|
||||
"time": "2021-05-12T14:22:03+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
|
@ -3829,7 +3907,7 @@
|
|||
],
|
||||
"description": "Package to print diffs in console with colors",
|
||||
"support": {
|
||||
"source": "https:\/\/github.com\/symplify\/console-color-diff\/tree\/v9.3.6"
|
||||
"source": "https:\/\/github.com\/symplify\/console-color-diff\/tree\/v9.3.10"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
@ -3845,31 +3923,31 @@
|
|||
},
|
||||
{
|
||||
"name": "symplify\/console-package-builder",
|
||||
"version": "v9.3.6",
|
||||
"version_normalized": "9.3.6.0",
|
||||
"version": "v9.3.10",
|
||||
"version_normalized": "9.3.10.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/symplify\/console-package-builder.git",
|
||||
"reference": "4a7d5d412e2bdf805c4603a02c69ef16183521c9"
|
||||
"reference": "468415fe1d596b1faafb156e65b5fcede9d3916d"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/symplify\/console-package-builder\/zipball\/4a7d5d412e2bdf805c4603a02c69ef16183521c9",
|
||||
"reference": "4a7d5d412e2bdf805c4603a02c69ef16183521c9",
|
||||
"url": "https:\/\/api.github.com\/repos\/symplify\/console-package-builder\/zipball\/468415fe1d596b1faafb156e65b5fcede9d3916d",
|
||||
"reference": "468415fe1d596b1faafb156e65b5fcede9d3916d",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.3",
|
||||
"symfony\/console": "^4.4|^5.2",
|
||||
"symfony\/dependency-injection": "^5.2",
|
||||
"symplify\/symplify-kernel": "^9.3.6"
|
||||
"symplify\/symplify-kernel": "^9.3.10"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit\/phpunit": "^9.5",
|
||||
"symfony\/http-kernel": "^4.4|^5.2",
|
||||
"symplify\/package-builder": "^9.3.6"
|
||||
"symplify\/package-builder": "^9.3.10"
|
||||
},
|
||||
"time": "2021-05-11T22:45:10+00:00",
|
||||
"time": "2021-05-12T14:22:06+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
|
@ -3888,23 +3966,23 @@
|
|||
],
|
||||
"description": "Package to speed up building command line applications",
|
||||
"support": {
|
||||
"source": "https:\/\/github.com\/symplify\/console-package-builder\/tree\/v9.3.6"
|
||||
"source": "https:\/\/github.com\/symplify\/console-package-builder\/tree\/v9.3.10"
|
||||
},
|
||||
"install-path": "..\/symplify\/console-package-builder"
|
||||
},
|
||||
{
|
||||
"name": "symplify\/easy-testing",
|
||||
"version": "v9.3.6",
|
||||
"version_normalized": "9.3.6.0",
|
||||
"version": "v9.3.10",
|
||||
"version_normalized": "9.3.10.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/symplify\/easy-testing.git",
|
||||
"reference": "f8b617e6c0df1c76acb3150af40bd256bf2c0aba"
|
||||
"reference": "fc1a041dd0183e3e203fa101eac3572c8d8f2d99"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/symplify\/easy-testing\/zipball\/f8b617e6c0df1c76acb3150af40bd256bf2c0aba",
|
||||
"reference": "f8b617e6c0df1c76acb3150af40bd256bf2c0aba",
|
||||
"url": "https:\/\/api.github.com\/repos\/symplify\/easy-testing\/zipball\/fc1a041dd0183e3e203fa101eac3572c8d8f2d99",
|
||||
"reference": "fc1a041dd0183e3e203fa101eac3572c8d8f2d99",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -3914,15 +3992,15 @@
|
|||
"symfony\/dependency-injection": "^5.2",
|
||||
"symfony\/finder": "^4.4|^5.2",
|
||||
"symfony\/http-kernel": "^4.4|^5.2",
|
||||
"symplify\/console-package-builder": "^9.3.6",
|
||||
"symplify\/package-builder": "^9.3.6",
|
||||
"symplify\/smart-file-system": "^9.3.6",
|
||||
"symplify\/symplify-kernel": "^9.3.6"
|
||||
"symplify\/console-package-builder": "^9.3.10",
|
||||
"symplify\/package-builder": "^9.3.10",
|
||||
"symplify\/smart-file-system": "^9.3.10",
|
||||
"symplify\/symplify-kernel": "^9.3.10"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit\/phpunit": "^9.5"
|
||||
},
|
||||
"time": "2021-05-11T22:44:47+00:00",
|
||||
"time": "2021-05-12T14:22:47+00:00",
|
||||
"bin": [
|
||||
"bin\/easy-testing"
|
||||
],
|
||||
|
@ -3944,7 +4022,7 @@
|
|||
],
|
||||
"description": "Testing made easy",
|
||||
"support": {
|
||||
"source": "https:\/\/github.com\/symplify\/easy-testing\/tree\/v9.3.6"
|
||||
"source": "https:\/\/github.com\/symplify\/easy-testing\/tree\/v9.3.10"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
@ -3960,17 +4038,17 @@
|
|||
},
|
||||
{
|
||||
"name": "symplify\/package-builder",
|
||||
"version": "v9.3.6",
|
||||
"version_normalized": "9.3.6.0",
|
||||
"version": "v9.3.10",
|
||||
"version_normalized": "9.3.10.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/symplify\/package-builder.git",
|
||||
"reference": "9d572946f2483150aae1f7b7d5afe75c5206ffda"
|
||||
"reference": "11cabebd09425815d88351778a73ea8e0b70b10a"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/symplify\/package-builder\/zipball\/9d572946f2483150aae1f7b7d5afe75c5206ffda",
|
||||
"reference": "9d572946f2483150aae1f7b7d5afe75c5206ffda",
|
||||
"url": "https:\/\/api.github.com\/repos\/symplify\/package-builder\/zipball\/11cabebd09425815d88351778a73ea8e0b70b10a",
|
||||
"reference": "11cabebd09425815d88351778a73ea8e0b70b10a",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -3982,13 +4060,13 @@
|
|||
"symfony\/dependency-injection": "^5.2",
|
||||
"symfony\/finder": "^4.4|^5.2",
|
||||
"symfony\/http-kernel": "^4.4|^5.2",
|
||||
"symplify\/easy-testing": "^9.3.6",
|
||||
"symplify\/symplify-kernel": "^9.3.6"
|
||||
"symplify\/easy-testing": "^9.3.10",
|
||||
"symplify\/symplify-kernel": "^9.3.10"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit\/phpunit": "^9.5"
|
||||
},
|
||||
"time": "2021-05-11T22:45:02+00:00",
|
||||
"time": "2021-05-12T14:22:58+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
|
@ -4007,7 +4085,7 @@
|
|||
],
|
||||
"description": "Dependency Injection, Console and Kernel toolkit for Symplify packages.",
|
||||
"support": {
|
||||
"source": "https:\/\/github.com\/symplify\/package-builder\/tree\/v9.3.6"
|
||||
"source": "https:\/\/github.com\/symplify\/package-builder\/tree\/v9.3.10"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
@ -4023,8 +4101,8 @@
|
|||
},
|
||||
{
|
||||
"name": "symplify\/rule-doc-generator-contracts",
|
||||
"version": "v9.3.6",
|
||||
"version_normalized": "9.3.6.0",
|
||||
"version": "v9.3.10",
|
||||
"version_normalized": "9.3.10.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/symplify\/rule-doc-generator-contracts.git",
|
||||
|
@ -4059,7 +4137,7 @@
|
|||
],
|
||||
"description": "Contracts for production code of RuleDocGenerator",
|
||||
"support": {
|
||||
"source": "https:\/\/github.com\/symplify\/rule-doc-generator-contracts\/tree\/v9.3.6"
|
||||
"source": "https:\/\/github.com\/symplify\/rule-doc-generator-contracts\/tree\/v9.3.10"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
@ -4075,17 +4153,17 @@
|
|||
},
|
||||
{
|
||||
"name": "symplify\/set-config-resolver",
|
||||
"version": "v9.3.6",
|
||||
"version_normalized": "9.3.6.0",
|
||||
"version": "v9.3.10",
|
||||
"version_normalized": "9.3.10.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/symplify\/set-config-resolver.git",
|
||||
"reference": "7da336c9144b3bfea439e8335680c2abe57cdca1"
|
||||
"reference": "62e36ae829deef8d9b57a10460ad582b5822f18d"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/symplify\/set-config-resolver\/zipball\/7da336c9144b3bfea439e8335680c2abe57cdca1",
|
||||
"reference": "7da336c9144b3bfea439e8335680c2abe57cdca1",
|
||||
"url": "https:\/\/api.github.com\/repos\/symplify\/set-config-resolver\/zipball\/62e36ae829deef8d9b57a10460ad582b5822f18d",
|
||||
"reference": "62e36ae829deef8d9b57a10460ad582b5822f18d",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -4096,13 +4174,13 @@
|
|||
"symfony\/dependency-injection": "^5.2",
|
||||
"symfony\/filesystem": "^4.4|^5.2",
|
||||
"symfony\/finder": "^4.4|^5.2",
|
||||
"symplify\/smart-file-system": "^9.3.6",
|
||||
"symplify\/symplify-kernel": "^9.3.6"
|
||||
"symplify\/smart-file-system": "^9.3.10",
|
||||
"symplify\/symplify-kernel": "^9.3.10"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit\/phpunit": "^9.5"
|
||||
},
|
||||
"time": "2021-05-11T22:45:21+00:00",
|
||||
"time": "2021-05-12T14:23:43+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
|
@ -4121,7 +4199,7 @@
|
|||
],
|
||||
"description": "Resolve config and sets from configs and cli opptions for CLI applications",
|
||||
"support": {
|
||||
"source": "https:\/\/github.com\/symplify\/set-config-resolver\/tree\/v9.3.6"
|
||||
"source": "https:\/\/github.com\/symplify\/set-config-resolver\/tree\/v9.3.10"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
@ -4137,17 +4215,17 @@
|
|||
},
|
||||
{
|
||||
"name": "symplify\/simple-php-doc-parser",
|
||||
"version": "v9.3.6",
|
||||
"version_normalized": "9.3.6.0",
|
||||
"version": "v9.3.10",
|
||||
"version_normalized": "9.3.10.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/symplify\/simple-php-doc-parser.git",
|
||||
"reference": "cea820fa5a20d2fa8a240e2e0fcd7b063ce21b9d"
|
||||
"reference": "84727d0850b2668d6d4707bc6e89d91957e367f4"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/symplify\/simple-php-doc-parser\/zipball\/cea820fa5a20d2fa8a240e2e0fcd7b063ce21b9d",
|
||||
"reference": "cea820fa5a20d2fa8a240e2e0fcd7b063ce21b9d",
|
||||
"url": "https:\/\/api.github.com\/repos\/symplify\/simple-php-doc-parser\/zipball\/84727d0850b2668d6d4707bc6e89d91957e367f4",
|
||||
"reference": "84727d0850b2668d6d4707bc6e89d91957e367f4",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -4156,13 +4234,13 @@
|
|||
"symfony\/config": "^4.4|^5.2",
|
||||
"symfony\/dependency-injection": "^5.2",
|
||||
"symfony\/http-kernel": "^4.4|^5.2",
|
||||
"symplify\/package-builder": "^9.3.6"
|
||||
"symplify\/package-builder": "^9.3.10"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit\/phpunit": "^9.5",
|
||||
"symplify\/easy-testing": "^9.3.6"
|
||||
"symplify\/easy-testing": "^9.3.10"
|
||||
},
|
||||
"time": "2021-05-11T22:45:32+00:00",
|
||||
"time": "2021-05-12T14:23:52+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
|
@ -4181,7 +4259,7 @@
|
|||
],
|
||||
"description": "Service integration of phpstan\/phpdoc-parser, with few extra goodies for practical simple use",
|
||||
"support": {
|
||||
"source": "https:\/\/github.com\/symplify\/simple-php-doc-parser\/tree\/v9.3.6"
|
||||
"source": "https:\/\/github.com\/symplify\/simple-php-doc-parser\/tree\/v9.3.10"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
@ -4197,17 +4275,17 @@
|
|||
},
|
||||
{
|
||||
"name": "symplify\/skipper",
|
||||
"version": "v9.3.6",
|
||||
"version_normalized": "9.3.6.0",
|
||||
"version": "v9.3.10",
|
||||
"version_normalized": "9.3.10.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/symplify\/skipper.git",
|
||||
"reference": "67417fd44b4ddc3796df5c699ecd076b8c71927e"
|
||||
"reference": "4bc743dc5e6160bee0127b1e239d363be1a43af8"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/symplify\/skipper\/zipball\/67417fd44b4ddc3796df5c699ecd076b8c71927e",
|
||||
"reference": "67417fd44b4ddc3796df5c699ecd076b8c71927e",
|
||||
"url": "https:\/\/api.github.com\/repos\/symplify\/skipper\/zipball\/4bc743dc5e6160bee0127b1e239d363be1a43af8",
|
||||
"reference": "4bc743dc5e6160bee0127b1e239d363be1a43af8",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -4217,14 +4295,14 @@
|
|||
"symfony\/dependency-injection": "^5.2",
|
||||
"symfony\/filesystem": "^4.4|^5.2",
|
||||
"symfony\/finder": "^4.4|^5.2",
|
||||
"symplify\/package-builder": "^9.3.6",
|
||||
"symplify\/smart-file-system": "^9.3.6",
|
||||
"symplify\/symplify-kernel": "^9.3.6"
|
||||
"symplify\/package-builder": "^9.3.10",
|
||||
"symplify\/smart-file-system": "^9.3.10",
|
||||
"symplify\/symplify-kernel": "^9.3.10"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit\/phpunit": "^9.5"
|
||||
},
|
||||
"time": "2021-05-11T22:45:36+00:00",
|
||||
"time": "2021-05-12T14:24:07+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
|
@ -4243,7 +4321,7 @@
|
|||
],
|
||||
"description": "Skip files by rule class, directory, file or fnmatch",
|
||||
"support": {
|
||||
"source": "https:\/\/github.com\/symplify\/skipper\/tree\/v9.3.6"
|
||||
"source": "https:\/\/github.com\/symplify\/skipper\/tree\/v9.3.10"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
@ -4259,8 +4337,8 @@
|
|||
},
|
||||
{
|
||||
"name": "symplify\/smart-file-system",
|
||||
"version": "v9.3.6",
|
||||
"version_normalized": "9.3.6.0",
|
||||
"version": "v9.3.10",
|
||||
"version_normalized": "9.3.10.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/symplify\/smart-file-system.git",
|
||||
|
@ -4301,7 +4379,7 @@
|
|||
],
|
||||
"description": "Sanitized FileInfo with safe getRealPath() and other handy methods",
|
||||
"support": {
|
||||
"source": "https:\/\/github.com\/symplify\/smart-file-system\/tree\/v9.3.6"
|
||||
"source": "https:\/\/github.com\/symplify\/smart-file-system\/tree\/v9.3.10"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
@ -4366,17 +4444,17 @@
|
|||
},
|
||||
{
|
||||
"name": "symplify\/symplify-kernel",
|
||||
"version": "v9.3.6",
|
||||
"version_normalized": "9.3.6.0",
|
||||
"version": "v9.3.10",
|
||||
"version_normalized": "9.3.10.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/symplify\/symplify-kernel.git",
|
||||
"reference": "ba7f3b8ee3ce80a8543f248495a0999e0ea6af7a"
|
||||
"reference": "f24a17fd6068ce65e0a19dd16cf25cf86ad14098"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/symplify\/symplify-kernel\/zipball\/ba7f3b8ee3ce80a8543f248495a0999e0ea6af7a",
|
||||
"reference": "ba7f3b8ee3ce80a8543f248495a0999e0ea6af7a",
|
||||
"url": "https:\/\/api.github.com\/repos\/symplify\/symplify-kernel\/zipball\/f24a17fd6068ce65e0a19dd16cf25cf86ad14098",
|
||||
"reference": "f24a17fd6068ce65e0a19dd16cf25cf86ad14098",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -4384,15 +4462,15 @@
|
|||
"symfony\/console": "^4.4|^5.2",
|
||||
"symfony\/dependency-injection": "^5.2",
|
||||
"symfony\/http-kernel": "^4.4|^5.2",
|
||||
"symplify\/autowire-array-parameter": "^9.3.6",
|
||||
"symplify\/composer-json-manipulator": "^9.3.6",
|
||||
"symplify\/package-builder": "^9.3.6",
|
||||
"symplify\/smart-file-system": "^9.3.6"
|
||||
"symplify\/autowire-array-parameter": "^9.3.10",
|
||||
"symplify\/composer-json-manipulator": "^9.3.10",
|
||||
"symplify\/package-builder": "^9.3.10",
|
||||
"symplify\/smart-file-system": "^9.3.10"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit\/phpunit": "^9.5"
|
||||
},
|
||||
"time": "2021-05-11T22:45:48+00:00",
|
||||
"time": "2021-05-12T14:24:37+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
|
@ -4411,7 +4489,7 @@
|
|||
],
|
||||
"description": "Internal Kernel for Symplify packages",
|
||||
"support": {
|
||||
"source": "https:\/\/github.com\/symplify\/symplify-kernel\/tree\/v9.3.6"
|
||||
"source": "https:\/\/github.com\/symplify\/symplify-kernel\/tree\/v9.3.10"
|
||||
},
|
||||
"install-path": "..\/symplify\/symplify-kernel"
|
||||
},
|
||||
|
|
2
vendor/composer/installed.php
vendored
2
vendor/composer/installed.php
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
10
vendor/scoper-autoload.php
vendored
10
vendor/scoper-autoload.php
vendored
|
@ -21,8 +21,8 @@ if (!class_exists('SomeTestCase', false) && !interface_exists('SomeTestCase', fa
|
|||
if (!class_exists('CheckoutEntityFactory', false) && !interface_exists('CheckoutEntityFactory', false) && !trait_exists('CheckoutEntityFactory', false)) {
|
||||
spl_autoload_call('RectorPrefix20210512\CheckoutEntityFactory');
|
||||
}
|
||||
if (!class_exists('ComposerAutoloaderInit86fcb3fb993a4a026ca21db64c2a9773', false) && !interface_exists('ComposerAutoloaderInit86fcb3fb993a4a026ca21db64c2a9773', false) && !trait_exists('ComposerAutoloaderInit86fcb3fb993a4a026ca21db64c2a9773', false)) {
|
||||
spl_autoload_call('RectorPrefix20210512\ComposerAutoloaderInit86fcb3fb993a4a026ca21db64c2a9773');
|
||||
if (!class_exists('ComposerAutoloaderInit0c4ee193fbbfb4c8d71e4941a5efdabc', false) && !interface_exists('ComposerAutoloaderInit0c4ee193fbbfb4c8d71e4941a5efdabc', false) && !trait_exists('ComposerAutoloaderInit0c4ee193fbbfb4c8d71e4941a5efdabc', false)) {
|
||||
spl_autoload_call('RectorPrefix20210512\ComposerAutoloaderInit0c4ee193fbbfb4c8d71e4941a5efdabc');
|
||||
}
|
||||
if (!class_exists('Doctrine\Inflector\Inflector', false) && !interface_exists('Doctrine\Inflector\Inflector', false) && !trait_exists('Doctrine\Inflector\Inflector', false)) {
|
||||
spl_autoload_call('RectorPrefix20210512\Doctrine\Inflector\Inflector');
|
||||
|
@ -95,9 +95,9 @@ if (!function_exists('print_node')) {
|
|||
return \RectorPrefix20210512\print_node(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('composerRequire86fcb3fb993a4a026ca21db64c2a9773')) {
|
||||
function composerRequire86fcb3fb993a4a026ca21db64c2a9773() {
|
||||
return \RectorPrefix20210512\composerRequire86fcb3fb993a4a026ca21db64c2a9773(...func_get_args());
|
||||
if (!function_exists('composerRequire0c4ee193fbbfb4c8d71e4941a5efdabc')) {
|
||||
function composerRequire0c4ee193fbbfb4c8d71e4941a5efdabc() {
|
||||
return \RectorPrefix20210512\composerRequire0c4ee193fbbfb4c8d71e4941a5efdabc(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('parseArgs')) {
|
||||
|
|
224
vendor/symfony/yaml/CHANGELOG.md
vendored
Normal file
224
vendor/symfony/yaml/CHANGELOG.md
vendored
Normal file
|
@ -0,0 +1,224 @@
|
|||
CHANGELOG
|
||||
=========
|
||||
|
||||
5.1.0
|
||||
-----
|
||||
|
||||
* Added support for parsing numbers prefixed with `0o` as octal numbers.
|
||||
* Deprecated support for parsing numbers starting with `0` as octal numbers. They will be parsed as strings as of Symfony 6.0. Prefix numbers with `0o`
|
||||
so that they are parsed as octal numbers.
|
||||
|
||||
Before:
|
||||
|
||||
```yaml
|
||||
Yaml::parse('072');
|
||||
```
|
||||
|
||||
After:
|
||||
|
||||
```yaml
|
||||
Yaml::parse('0o72');
|
||||
```
|
||||
|
||||
* Added `yaml-lint` binary.
|
||||
* Deprecated using the `!php/object` and `!php/const` tags without a value.
|
||||
|
||||
5.0.0
|
||||
-----
|
||||
|
||||
* Removed support for mappings inside multi-line strings.
|
||||
* removed support for implicit STDIN usage in the `lint:yaml` command, use `lint:yaml -` (append a dash) instead to make it explicit.
|
||||
|
||||
4.4.0
|
||||
-----
|
||||
|
||||
* Added support for parsing the inline notation spanning multiple lines.
|
||||
* Added support to dump `null` as `~` by using the `Yaml::DUMP_NULL_AS_TILDE` flag.
|
||||
* deprecated accepting STDIN implicitly when using the `lint:yaml` command, use `lint:yaml -` (append a dash) instead to make it explicit.
|
||||
|
||||
4.3.0
|
||||
-----
|
||||
|
||||
* Using a mapping inside a multi-line string is deprecated and will throw a `ParseException` in 5.0.
|
||||
|
||||
4.2.0
|
||||
-----
|
||||
|
||||
* added support for multiple files or directories in `LintCommand`
|
||||
|
||||
4.0.0
|
||||
-----
|
||||
|
||||
* The behavior of the non-specific tag `!` is changed and now forces
|
||||
non-evaluating your values.
|
||||
* complex mappings will throw a `ParseException`
|
||||
* support for the comma as a group separator for floats has been dropped, use
|
||||
the underscore instead
|
||||
* support for the `!!php/object` tag has been dropped, use the `!php/object`
|
||||
tag instead
|
||||
* duplicate mapping keys throw a `ParseException`
|
||||
* non-string mapping keys throw a `ParseException`, use the `Yaml::PARSE_KEYS_AS_STRINGS`
|
||||
flag to cast them to strings
|
||||
* `%` at the beginning of an unquoted string throw a `ParseException`
|
||||
* mappings with a colon (`:`) that is not followed by a whitespace throw a
|
||||
`ParseException`
|
||||
* the `Dumper::setIndentation()` method has been removed
|
||||
* being able to pass boolean options to the `Yaml::parse()`, `Yaml::dump()`,
|
||||
`Parser::parse()`, and `Dumper::dump()` methods to configure the behavior of
|
||||
the parser and dumper is no longer supported, pass bitmask flags instead
|
||||
* the constructor arguments of the `Parser` class have been removed
|
||||
* the `Inline` class is internal and no longer part of the BC promise
|
||||
* removed support for the `!str` tag, use the `!!str` tag instead
|
||||
* added support for tagged scalars.
|
||||
|
||||
```yml
|
||||
Yaml::parse('!foo bar', Yaml::PARSE_CUSTOM_TAGS);
|
||||
// returns TaggedValue('foo', 'bar');
|
||||
```
|
||||
|
||||
3.4.0
|
||||
-----
|
||||
|
||||
* added support for parsing YAML files using the `Yaml::parseFile()` or `Parser::parseFile()` method
|
||||
|
||||
* the `Dumper`, `Parser`, and `Yaml` classes are marked as final
|
||||
|
||||
* Deprecated the `!php/object:` tag which will be replaced by the
|
||||
`!php/object` tag (without the colon) in 4.0.
|
||||
|
||||
* Deprecated the `!php/const:` tag which will be replaced by the
|
||||
`!php/const` tag (without the colon) in 4.0.
|
||||
|
||||
* Support for the `!str` tag is deprecated, use the `!!str` tag instead.
|
||||
|
||||
* Deprecated using the non-specific tag `!` as its behavior will change in 4.0.
|
||||
It will force non-evaluating your values in 4.0. Use plain integers or `!!float` instead.
|
||||
|
||||
3.3.0
|
||||
-----
|
||||
|
||||
* Starting an unquoted string with a question mark followed by a space is
|
||||
deprecated and will throw a `ParseException` in Symfony 4.0.
|
||||
|
||||
* Deprecated support for implicitly parsing non-string mapping keys as strings.
|
||||
Mapping keys that are no strings will lead to a `ParseException` in Symfony
|
||||
4.0. Use quotes to opt-in for keys to be parsed as strings.
|
||||
|
||||
Before:
|
||||
|
||||
```php
|
||||
$yaml = <<<YAML
|
||||
null: null key
|
||||
true: boolean true
|
||||
2.0: float key
|
||||
YAML;
|
||||
|
||||
Yaml::parse($yaml);
|
||||
```
|
||||
|
||||
After:
|
||||
|
||||
```php
|
||||
|
||||
$yaml = <<<YAML
|
||||
"null": null key
|
||||
"true": boolean true
|
||||
"2.0": float key
|
||||
YAML;
|
||||
|
||||
Yaml::parse($yaml);
|
||||
```
|
||||
|
||||
* Omitted mapping values will be parsed as `null`.
|
||||
|
||||
* Omitting the key of a mapping is deprecated and will throw a `ParseException` in Symfony 4.0.
|
||||
|
||||
* Added support for dumping empty PHP arrays as YAML sequences:
|
||||
|
||||
```php
|
||||
Yaml::dump([], 0, 0, Yaml::DUMP_EMPTY_ARRAY_AS_SEQUENCE);
|
||||
```
|
||||
|
||||
3.2.0
|
||||
-----
|
||||
|
||||
* Mappings with a colon (`:`) that is not followed by a whitespace are deprecated
|
||||
when the mapping key is not quoted and will lead to a `ParseException` in
|
||||
Symfony 4.0 (e.g. `foo:bar` must be `foo: bar`).
|
||||
|
||||
* Added support for parsing PHP constants:
|
||||
|
||||
```php
|
||||
Yaml::parse('!php/const:PHP_INT_MAX', Yaml::PARSE_CONSTANT);
|
||||
```
|
||||
|
||||
* Support for silently ignoring duplicate mapping keys in YAML has been
|
||||
deprecated and will lead to a `ParseException` in Symfony 4.0.
|
||||
|
||||
3.1.0
|
||||
-----
|
||||
|
||||
* Added support to dump `stdClass` and `ArrayAccess` objects as YAML mappings
|
||||
through the `Yaml::DUMP_OBJECT_AS_MAP` flag.
|
||||
|
||||
* Strings that are not UTF-8 encoded will be dumped as base64 encoded binary
|
||||
data.
|
||||
|
||||
* Added support for dumping multi line strings as literal blocks.
|
||||
|
||||
* Added support for parsing base64 encoded binary data when they are tagged
|
||||
with the `!!binary` tag.
|
||||
|
||||
* Added support for parsing timestamps as `\DateTime` objects:
|
||||
|
||||
```php
|
||||
Yaml::parse('2001-12-15 21:59:43.10 -5', Yaml::PARSE_DATETIME);
|
||||
```
|
||||
|
||||
* `\DateTime` and `\DateTimeImmutable` objects are dumped as YAML timestamps.
|
||||
|
||||
* Deprecated usage of `%` at the beginning of an unquoted string.
|
||||
|
||||
* Added support for customizing the YAML parser behavior through an optional bit field:
|
||||
|
||||
```php
|
||||
Yaml::parse('{ "foo": "bar", "fiz": "cat" }', Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE | Yaml::PARSE_OBJECT | Yaml::PARSE_OBJECT_FOR_MAP);
|
||||
```
|
||||
|
||||
* Added support for customizing the dumped YAML string through an optional bit field:
|
||||
|
||||
```php
|
||||
Yaml::dump(['foo' => new A(), 'bar' => 1], 0, 0, Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE | Yaml::DUMP_OBJECT);
|
||||
```
|
||||
|
||||
3.0.0
|
||||
-----
|
||||
|
||||
* Yaml::parse() now throws an exception when a blackslash is not escaped
|
||||
in double-quoted strings
|
||||
|
||||
2.8.0
|
||||
-----
|
||||
|
||||
* Deprecated usage of a colon in an unquoted mapping value
|
||||
* Deprecated usage of @, \`, | and > at the beginning of an unquoted string
|
||||
* When surrounding strings with double-quotes, you must now escape `\` characters. Not
|
||||
escaping those characters (when surrounded by double-quotes) is deprecated.
|
||||
|
||||
Before:
|
||||
|
||||
```yml
|
||||
class: "Foo\Var"
|
||||
```
|
||||
|
||||
After:
|
||||
|
||||
```yml
|
||||
class: "Foo\\Var"
|
||||
```
|
||||
|
||||
2.1.0
|
||||
-----
|
||||
|
||||
* Yaml::parse() does not evaluate loaded files as PHP files by default
|
||||
anymore (call Yaml::enablePhpParsing() to get back the old behavior)
|
200
vendor/symfony/yaml/Command/LintCommand.php
vendored
Normal file
200
vendor/symfony/yaml/Command/LintCommand.php
vendored
Normal file
|
@ -0,0 +1,200 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
namespace RectorPrefix20210512\Symfony\Component\Yaml\Command;
|
||||
|
||||
use RectorPrefix20210512\Symfony\Component\Console\Command\Command;
|
||||
use RectorPrefix20210512\Symfony\Component\Console\Exception\InvalidArgumentException;
|
||||
use RectorPrefix20210512\Symfony\Component\Console\Exception\RuntimeException;
|
||||
use RectorPrefix20210512\Symfony\Component\Console\Input\InputArgument;
|
||||
use RectorPrefix20210512\Symfony\Component\Console\Input\InputInterface;
|
||||
use RectorPrefix20210512\Symfony\Component\Console\Input\InputOption;
|
||||
use RectorPrefix20210512\Symfony\Component\Console\Output\OutputInterface;
|
||||
use RectorPrefix20210512\Symfony\Component\Console\Style\SymfonyStyle;
|
||||
use RectorPrefix20210512\Symfony\Component\Yaml\Exception\ParseException;
|
||||
use RectorPrefix20210512\Symfony\Component\Yaml\Parser;
|
||||
use RectorPrefix20210512\Symfony\Component\Yaml\Yaml;
|
||||
/**
|
||||
* Validates YAML files syntax and outputs encountered errors.
|
||||
*
|
||||
* @author Grégoire Pineau <lyrixx@lyrixx.info>
|
||||
* @author Robin Chalas <robin.chalas@gmail.com>
|
||||
*/
|
||||
class LintCommand extends \RectorPrefix20210512\Symfony\Component\Console\Command\Command
|
||||
{
|
||||
protected static $defaultName = 'lint:yaml';
|
||||
private $parser;
|
||||
private $format;
|
||||
private $displayCorrectFiles;
|
||||
private $directoryIteratorProvider;
|
||||
private $isReadableProvider;
|
||||
public function __construct(string $name = null, callable $directoryIteratorProvider = null, callable $isReadableProvider = null)
|
||||
{
|
||||
parent::__construct($name);
|
||||
$this->directoryIteratorProvider = $directoryIteratorProvider;
|
||||
$this->isReadableProvider = $isReadableProvider;
|
||||
}
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function configure()
|
||||
{
|
||||
$this->setDescription('Lint a file and outputs encountered errors')->addArgument('filename', \RectorPrefix20210512\Symfony\Component\Console\Input\InputArgument::IS_ARRAY, 'A file, a directory or "-" for reading from STDIN')->addOption('format', null, \RectorPrefix20210512\Symfony\Component\Console\Input\InputOption::VALUE_REQUIRED, 'The output format', 'txt')->addOption('parse-tags', null, \RectorPrefix20210512\Symfony\Component\Console\Input\InputOption::VALUE_NONE, 'Parse custom tags')->setHelp(<<<EOF
|
||||
The <info>%command.name%</info> command lints a YAML file and outputs to STDOUT
|
||||
the first encountered syntax error.
|
||||
|
||||
You can validates YAML contents passed from STDIN:
|
||||
|
||||
<info>cat filename | php %command.full_name% -</info>
|
||||
|
||||
You can also validate the syntax of a file:
|
||||
|
||||
<info>php %command.full_name% filename</info>
|
||||
|
||||
Or of a whole directory:
|
||||
|
||||
<info>php %command.full_name% dirname</info>
|
||||
<info>php %command.full_name% dirname --format=json</info>
|
||||
|
||||
EOF
|
||||
);
|
||||
}
|
||||
protected function execute(\RectorPrefix20210512\Symfony\Component\Console\Input\InputInterface $input, \RectorPrefix20210512\Symfony\Component\Console\Output\OutputInterface $output)
|
||||
{
|
||||
$io = new \RectorPrefix20210512\Symfony\Component\Console\Style\SymfonyStyle($input, $output);
|
||||
$filenames = (array) $input->getArgument('filename');
|
||||
$this->format = $input->getOption('format');
|
||||
$this->displayCorrectFiles = $output->isVerbose();
|
||||
$flags = $input->getOption('parse-tags') ? \RectorPrefix20210512\Symfony\Component\Yaml\Yaml::PARSE_CUSTOM_TAGS : 0;
|
||||
if (['-'] === $filenames) {
|
||||
return $this->display($io, [$this->validate(\file_get_contents('php://stdin'), $flags)]);
|
||||
}
|
||||
if (!$filenames) {
|
||||
throw new \RectorPrefix20210512\Symfony\Component\Console\Exception\RuntimeException('Please provide a filename or pipe file content to STDIN.');
|
||||
}
|
||||
$filesInfo = [];
|
||||
foreach ($filenames as $filename) {
|
||||
if (!$this->isReadable($filename)) {
|
||||
throw new \RectorPrefix20210512\Symfony\Component\Console\Exception\RuntimeException(\sprintf('File or directory "%s" is not readable.', $filename));
|
||||
}
|
||||
foreach ($this->getFiles($filename) as $file) {
|
||||
$filesInfo[] = $this->validate(\file_get_contents($file), $flags, $file);
|
||||
}
|
||||
}
|
||||
return $this->display($io, $filesInfo);
|
||||
}
|
||||
private function validate(string $content, int $flags, string $file = null)
|
||||
{
|
||||
$prevErrorHandler = \set_error_handler(function ($level, $message, $file, $line) use(&$prevErrorHandler) {
|
||||
if (\E_USER_DEPRECATED === $level) {
|
||||
throw new \RectorPrefix20210512\Symfony\Component\Yaml\Exception\ParseException($message, $this->getParser()->getRealCurrentLineNb() + 1);
|
||||
}
|
||||
return $prevErrorHandler ? $prevErrorHandler($level, $message, $file, $line) : \false;
|
||||
});
|
||||
try {
|
||||
$this->getParser()->parse($content, \RectorPrefix20210512\Symfony\Component\Yaml\Yaml::PARSE_CONSTANT | $flags);
|
||||
} catch (\RectorPrefix20210512\Symfony\Component\Yaml\Exception\ParseException $e) {
|
||||
return ['file' => $file, 'line' => $e->getParsedLine(), 'valid' => \false, 'message' => $e->getMessage()];
|
||||
} finally {
|
||||
\restore_error_handler();
|
||||
}
|
||||
return ['file' => $file, 'valid' => \true];
|
||||
}
|
||||
private function display(\RectorPrefix20210512\Symfony\Component\Console\Style\SymfonyStyle $io, array $files) : int
|
||||
{
|
||||
switch ($this->format) {
|
||||
case 'txt':
|
||||
return $this->displayTxt($io, $files);
|
||||
case 'json':
|
||||
return $this->displayJson($io, $files);
|
||||
default:
|
||||
throw new \RectorPrefix20210512\Symfony\Component\Console\Exception\InvalidArgumentException(\sprintf('The format "%s" is not supported.', $this->format));
|
||||
}
|
||||
}
|
||||
private function displayTxt(\RectorPrefix20210512\Symfony\Component\Console\Style\SymfonyStyle $io, array $filesInfo) : int
|
||||
{
|
||||
$countFiles = \count($filesInfo);
|
||||
$erroredFiles = 0;
|
||||
$suggestTagOption = \false;
|
||||
foreach ($filesInfo as $info) {
|
||||
if ($info['valid'] && $this->displayCorrectFiles) {
|
||||
$io->comment('<info>OK</info>' . ($info['file'] ? \sprintf(' in %s', $info['file']) : ''));
|
||||
} elseif (!$info['valid']) {
|
||||
++$erroredFiles;
|
||||
$io->text('<error> ERROR </error>' . ($info['file'] ? \sprintf(' in %s', $info['file']) : ''));
|
||||
$io->text(\sprintf('<error> >> %s</error>', $info['message']));
|
||||
if (\false !== \strpos($info['message'], 'PARSE_CUSTOM_TAGS')) {
|
||||
$suggestTagOption = \true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (0 === $erroredFiles) {
|
||||
$io->success(\sprintf('All %d YAML files contain valid syntax.', $countFiles));
|
||||
} else {
|
||||
$io->warning(\sprintf('%d YAML files have valid syntax and %d contain errors.%s', $countFiles - $erroredFiles, $erroredFiles, $suggestTagOption ? ' Use the --parse-tags option if you want parse custom tags.' : ''));
|
||||
}
|
||||
return \min($erroredFiles, 1);
|
||||
}
|
||||
private function displayJson(\RectorPrefix20210512\Symfony\Component\Console\Style\SymfonyStyle $io, array $filesInfo) : int
|
||||
{
|
||||
$errors = 0;
|
||||
\array_walk($filesInfo, function (&$v) use(&$errors) {
|
||||
$v['file'] = (string) $v['file'];
|
||||
if (!$v['valid']) {
|
||||
++$errors;
|
||||
}
|
||||
if (isset($v['message']) && \false !== \strpos($v['message'], 'PARSE_CUSTOM_TAGS')) {
|
||||
$v['message'] .= ' Use the --parse-tags option if you want parse custom tags.';
|
||||
}
|
||||
});
|
||||
$io->writeln(\json_encode($filesInfo, \JSON_PRETTY_PRINT | \JSON_UNESCAPED_SLASHES));
|
||||
return \min($errors, 1);
|
||||
}
|
||||
private function getFiles(string $fileOrDirectory) : iterable
|
||||
{
|
||||
if (\is_file($fileOrDirectory)) {
|
||||
(yield new \SplFileInfo($fileOrDirectory));
|
||||
return;
|
||||
}
|
||||
foreach ($this->getDirectoryIterator($fileOrDirectory) as $file) {
|
||||
if (!\in_array($file->getExtension(), ['yml', 'yaml'])) {
|
||||
continue;
|
||||
}
|
||||
(yield $file);
|
||||
}
|
||||
}
|
||||
private function getParser() : \RectorPrefix20210512\Symfony\Component\Yaml\Parser
|
||||
{
|
||||
if (!$this->parser) {
|
||||
$this->parser = new \RectorPrefix20210512\Symfony\Component\Yaml\Parser();
|
||||
}
|
||||
return $this->parser;
|
||||
}
|
||||
private function getDirectoryIterator(string $directory) : iterable
|
||||
{
|
||||
$default = function ($directory) {
|
||||
return new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($directory, \FilesystemIterator::SKIP_DOTS | \FilesystemIterator::FOLLOW_SYMLINKS), \RecursiveIteratorIterator::LEAVES_ONLY);
|
||||
};
|
||||
if (null !== $this->directoryIteratorProvider) {
|
||||
return ($this->directoryIteratorProvider)($directory, $default);
|
||||
}
|
||||
return $default($directory);
|
||||
}
|
||||
private function isReadable(string $fileOrDirectory) : bool
|
||||
{
|
||||
$default = function ($fileOrDirectory) {
|
||||
return \is_readable($fileOrDirectory);
|
||||
};
|
||||
if (null !== $this->isReadableProvider) {
|
||||
return ($this->isReadableProvider)($fileOrDirectory, $default);
|
||||
}
|
||||
return $default($fileOrDirectory);
|
||||
}
|
||||
}
|
113
vendor/symfony/yaml/Dumper.php
vendored
Normal file
113
vendor/symfony/yaml/Dumper.php
vendored
Normal file
|
@ -0,0 +1,113 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
namespace RectorPrefix20210512\Symfony\Component\Yaml;
|
||||
|
||||
use RectorPrefix20210512\Symfony\Component\Yaml\Tag\TaggedValue;
|
||||
/**
|
||||
* Dumper dumps PHP variables to YAML strings.
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* @final
|
||||
*/
|
||||
class Dumper
|
||||
{
|
||||
/**
|
||||
* The amount of spaces to use for indentation of nested nodes.
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $indentation;
|
||||
public function __construct(int $indentation = 4)
|
||||
{
|
||||
if ($indentation < 1) {
|
||||
throw new \InvalidArgumentException('The indentation must be greater than zero.');
|
||||
}
|
||||
$this->indentation = $indentation;
|
||||
}
|
||||
/**
|
||||
* Dumps a PHP value to YAML.
|
||||
*
|
||||
* @param mixed $input The PHP value
|
||||
* @param int $inline The level where you switch to inline YAML
|
||||
* @param int $indent The level of indentation (used internally)
|
||||
* @param int $flags A bit field of Yaml::DUMP_* constants to customize the dumped YAML string
|
||||
*
|
||||
* @return string The YAML representation of the PHP value
|
||||
*/
|
||||
public function dump($input, int $inline = 0, int $indent = 0, int $flags = 0) : string
|
||||
{
|
||||
$output = '';
|
||||
$prefix = $indent ? \str_repeat(' ', $indent) : '';
|
||||
$dumpObjectAsInlineMap = \true;
|
||||
if (\RectorPrefix20210512\Symfony\Component\Yaml\Yaml::DUMP_OBJECT_AS_MAP & $flags && ($input instanceof \ArrayObject || $input instanceof \stdClass)) {
|
||||
$dumpObjectAsInlineMap = empty((array) $input);
|
||||
}
|
||||
if ($inline <= 0 || !\is_array($input) && !$input instanceof \RectorPrefix20210512\Symfony\Component\Yaml\Tag\TaggedValue && $dumpObjectAsInlineMap || empty($input)) {
|
||||
$output .= $prefix . \RectorPrefix20210512\Symfony\Component\Yaml\Inline::dump($input, $flags);
|
||||
} else {
|
||||
$dumpAsMap = \RectorPrefix20210512\Symfony\Component\Yaml\Inline::isHash($input);
|
||||
foreach ($input as $key => $value) {
|
||||
if ('' !== $output && "\n" !== $output[-1]) {
|
||||
$output .= "\n";
|
||||
}
|
||||
if (\RectorPrefix20210512\Symfony\Component\Yaml\Yaml::DUMP_MULTI_LINE_LITERAL_BLOCK & $flags && \is_string($value) && \false !== \strpos($value, "\n") && \false === \strpos($value, "\r")) {
|
||||
// If the first line starts with a space character, the spec requires a blockIndicationIndicator
|
||||
// http://www.yaml.org/spec/1.2/spec.html#id2793979
|
||||
$blockIndentationIndicator = ' ' === \substr($value, 0, 1) ? (string) $this->indentation : '';
|
||||
if (isset($value[-2]) && "\n" === $value[-2] && "\n" === $value[-1]) {
|
||||
$blockChompingIndicator = '+';
|
||||
} elseif ("\n" === $value[-1]) {
|
||||
$blockChompingIndicator = '';
|
||||
} else {
|
||||
$blockChompingIndicator = '-';
|
||||
}
|
||||
$output .= \sprintf('%s%s%s |%s%s', $prefix, $dumpAsMap ? \RectorPrefix20210512\Symfony\Component\Yaml\Inline::dump($key, $flags) . ':' : '-', '', $blockIndentationIndicator, $blockChompingIndicator);
|
||||
foreach (\explode("\n", $value) as $row) {
|
||||
if ('' === $row) {
|
||||
$output .= "\n";
|
||||
} else {
|
||||
$output .= \sprintf("\n%s%s%s", $prefix, \str_repeat(' ', $this->indentation), $row);
|
||||
}
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if ($value instanceof \RectorPrefix20210512\Symfony\Component\Yaml\Tag\TaggedValue) {
|
||||
$output .= \sprintf('%s%s !%s', $prefix, $dumpAsMap ? \RectorPrefix20210512\Symfony\Component\Yaml\Inline::dump($key, $flags) . ':' : '-', $value->getTag());
|
||||
if (\RectorPrefix20210512\Symfony\Component\Yaml\Yaml::DUMP_MULTI_LINE_LITERAL_BLOCK & $flags && \is_string($value->getValue()) && \false !== \strpos($value->getValue(), "\n") && \false === \strpos($value->getValue(), "\r\n")) {
|
||||
// If the first line starts with a space character, the spec requires a blockIndicationIndicator
|
||||
// http://www.yaml.org/spec/1.2/spec.html#id2793979
|
||||
$blockIndentationIndicator = ' ' === \substr($value->getValue(), 0, 1) ? (string) $this->indentation : '';
|
||||
$output .= \sprintf(' |%s', $blockIndentationIndicator);
|
||||
foreach (\explode("\n", $value->getValue()) as $row) {
|
||||
$output .= \sprintf("\n%s%s%s", $prefix, \str_repeat(' ', $this->indentation), $row);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if ($inline - 1 <= 0 || null === $value->getValue() || \is_scalar($value->getValue())) {
|
||||
$output .= ' ' . $this->dump($value->getValue(), $inline - 1, 0, $flags) . "\n";
|
||||
} else {
|
||||
$output .= "\n";
|
||||
$output .= $this->dump($value->getValue(), $inline - 1, $dumpAsMap ? $indent + $this->indentation : $indent + 2, $flags);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
$dumpObjectAsInlineMap = \true;
|
||||
if (\RectorPrefix20210512\Symfony\Component\Yaml\Yaml::DUMP_OBJECT_AS_MAP & $flags && ($value instanceof \ArrayObject || $value instanceof \stdClass)) {
|
||||
$dumpObjectAsInlineMap = empty((array) $value);
|
||||
}
|
||||
$willBeInlined = $inline - 1 <= 0 || !\is_array($value) && $dumpObjectAsInlineMap || empty($value);
|
||||
$output .= \sprintf('%s%s%s%s', $prefix, $dumpAsMap ? \RectorPrefix20210512\Symfony\Component\Yaml\Inline::dump($key, $flags) . ':' : '-', $willBeInlined ? ' ' : "\n", $this->dump($value, $inline - 1, $willBeInlined ? 0 : $indent + $this->indentation, $flags)) . ($willBeInlined ? "\n" : '');
|
||||
}
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
}
|
82
vendor/symfony/yaml/Escaper.php
vendored
Normal file
82
vendor/symfony/yaml/Escaper.php
vendored
Normal file
|
@ -0,0 +1,82 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
namespace RectorPrefix20210512\Symfony\Component\Yaml;
|
||||
|
||||
/**
|
||||
* Escaper encapsulates escaping rules for single and double-quoted
|
||||
* YAML strings.
|
||||
*
|
||||
* @author Matthew Lewinski <matthew@lewinski.org>
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class Escaper
|
||||
{
|
||||
// Characters that would cause a dumped string to require double quoting.
|
||||
public const REGEX_CHARACTER_TO_ESCAPE = "[\\x00-\\x1f]||
| |
|
";
|
||||
// Mapping arrays for escaping a double quoted string. The backslash is
|
||||
// first to ensure proper escaping because str_replace operates iteratively
|
||||
// on the input arrays. This ordering of the characters avoids the use of strtr,
|
||||
// which performs more slowly.
|
||||
private const ESCAPEES = ['\\', '\\\\', '\\"', '"', "\0", "\1", "\2", "\3", "\4", "\5", "\6", "\7", "\10", "\t", "\n", "\v", "\f", "\r", "\16", "\17", "\20", "\21", "\22", "\23", "\24", "\25", "\26", "\27", "\30", "\31", "\32", "\33", "\34", "\35", "\36", "\37", "", "
", " ", "
", "
"];
|
||||
private const ESCAPED = ['\\\\', '\\"', '\\\\', '\\"', '\\0', '\\x01', '\\x02', '\\x03', '\\x04', '\\x05', '\\x06', '\\a', '\\b', '\\t', '\\n', '\\v', '\\f', '\\r', '\\x0e', '\\x0f', '\\x10', '\\x11', '\\x12', '\\x13', '\\x14', '\\x15', '\\x16', '\\x17', '\\x18', '\\x19', '\\x1a', '\\e', '\\x1c', '\\x1d', '\\x1e', '\\x1f', '\\x7f', '\\N', '\\_', '\\L', '\\P'];
|
||||
/**
|
||||
* Determines if a PHP value would require double quoting in YAML.
|
||||
*
|
||||
* @param string $value A PHP value
|
||||
*
|
||||
* @return bool True if the value would require double quotes
|
||||
*/
|
||||
public static function requiresDoubleQuoting(string $value) : bool
|
||||
{
|
||||
return 0 < \preg_match('/' . self::REGEX_CHARACTER_TO_ESCAPE . '/u', $value);
|
||||
}
|
||||
/**
|
||||
* Escapes and surrounds a PHP value with double quotes.
|
||||
*
|
||||
* @param string $value A PHP value
|
||||
*
|
||||
* @return string The quoted, escaped string
|
||||
*/
|
||||
public static function escapeWithDoubleQuotes(string $value) : string
|
||||
{
|
||||
return \sprintf('"%s"', \str_replace(self::ESCAPEES, self::ESCAPED, $value));
|
||||
}
|
||||
/**
|
||||
* Determines if a PHP value would require single quoting in YAML.
|
||||
*
|
||||
* @param string $value A PHP value
|
||||
*
|
||||
* @return bool True if the value would require single quotes
|
||||
*/
|
||||
public static function requiresSingleQuoting(string $value) : bool
|
||||
{
|
||||
// Determines if a PHP value is entirely composed of a value that would
|
||||
// require single quoting in YAML.
|
||||
if (\in_array(\strtolower($value), ['null', '~', 'true', 'false', 'y', 'n', 'yes', 'no', 'on', 'off'])) {
|
||||
return \true;
|
||||
}
|
||||
// Determines if the PHP value contains any single characters that would
|
||||
// cause it to require single quoting in YAML.
|
||||
return 0 < \preg_match('/[ \\s \' " \\: \\{ \\} \\[ \\] , & \\* \\# \\?] | \\A[ \\- ? | < > = ! % @ ` \\p{Zs}]/xu', $value);
|
||||
}
|
||||
/**
|
||||
* Escapes and surrounds a PHP value with single quotes.
|
||||
*
|
||||
* @param string $value A PHP value
|
||||
*
|
||||
* @return string The quoted, escaped string
|
||||
*/
|
||||
public static function escapeWithSingleQuotes(string $value) : string
|
||||
{
|
||||
return \sprintf("'%s'", \str_replace('\'', '\'\'', $value));
|
||||
}
|
||||
}
|
20
vendor/symfony/yaml/Exception/DumpException.php
vendored
Normal file
20
vendor/symfony/yaml/Exception/DumpException.php
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
namespace RectorPrefix20210512\Symfony\Component\Yaml\Exception;
|
||||
|
||||
/**
|
||||
* Exception class thrown when an error occurs during dumping.
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*/
|
||||
class DumpException extends \RectorPrefix20210512\Symfony\Component\Yaml\Exception\RuntimeException
|
||||
{
|
||||
}
|
20
vendor/symfony/yaml/Exception/ExceptionInterface.php
vendored
Normal file
20
vendor/symfony/yaml/Exception/ExceptionInterface.php
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
namespace RectorPrefix20210512\Symfony\Component\Yaml\Exception;
|
||||
|
||||
/**
|
||||
* Exception interface for all exceptions thrown by the component.
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*/
|
||||
interface ExceptionInterface extends \Throwable
|
||||
{
|
||||
}
|
113
vendor/symfony/yaml/Exception/ParseException.php
vendored
Normal file
113
vendor/symfony/yaml/Exception/ParseException.php
vendored
Normal file
|
@ -0,0 +1,113 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
namespace RectorPrefix20210512\Symfony\Component\Yaml\Exception;
|
||||
|
||||
/**
|
||||
* Exception class thrown when an error occurs during parsing.
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*/
|
||||
class ParseException extends \RectorPrefix20210512\Symfony\Component\Yaml\Exception\RuntimeException
|
||||
{
|
||||
private $parsedFile;
|
||||
private $parsedLine;
|
||||
private $snippet;
|
||||
private $rawMessage;
|
||||
/**
|
||||
* @param string $message The error message
|
||||
* @param int $parsedLine The line where the error occurred
|
||||
* @param string|null $snippet The snippet of code near the problem
|
||||
* @param string|null $parsedFile The file name where the error occurred
|
||||
*/
|
||||
public function __construct(string $message, int $parsedLine = -1, string $snippet = null, string $parsedFile = null, \Throwable $previous = null)
|
||||
{
|
||||
$this->parsedFile = $parsedFile;
|
||||
$this->parsedLine = $parsedLine;
|
||||
$this->snippet = $snippet;
|
||||
$this->rawMessage = $message;
|
||||
$this->updateRepr();
|
||||
parent::__construct($this->message, 0, $previous);
|
||||
}
|
||||
/**
|
||||
* Gets the snippet of code near the error.
|
||||
*
|
||||
* @return string The snippet of code
|
||||
*/
|
||||
public function getSnippet()
|
||||
{
|
||||
return $this->snippet;
|
||||
}
|
||||
/**
|
||||
* Sets the snippet of code near the error.
|
||||
*/
|
||||
public function setSnippet(string $snippet)
|
||||
{
|
||||
$this->snippet = $snippet;
|
||||
$this->updateRepr();
|
||||
}
|
||||
/**
|
||||
* Gets the filename where the error occurred.
|
||||
*
|
||||
* This method returns null if a string is parsed.
|
||||
*
|
||||
* @return string The filename
|
||||
*/
|
||||
public function getParsedFile()
|
||||
{
|
||||
return $this->parsedFile;
|
||||
}
|
||||
/**
|
||||
* Sets the filename where the error occurred.
|
||||
*/
|
||||
public function setParsedFile(string $parsedFile)
|
||||
{
|
||||
$this->parsedFile = $parsedFile;
|
||||
$this->updateRepr();
|
||||
}
|
||||
/**
|
||||
* Gets the line where the error occurred.
|
||||
*
|
||||
* @return int The file line
|
||||
*/
|
||||
public function getParsedLine()
|
||||
{
|
||||
return $this->parsedLine;
|
||||
}
|
||||
/**
|
||||
* Sets the line where the error occurred.
|
||||
*/
|
||||
public function setParsedLine(int $parsedLine)
|
||||
{
|
||||
$this->parsedLine = $parsedLine;
|
||||
$this->updateRepr();
|
||||
}
|
||||
private function updateRepr()
|
||||
{
|
||||
$this->message = $this->rawMessage;
|
||||
$dot = \false;
|
||||
if ('.' === \substr($this->message, -1)) {
|
||||
$this->message = \substr($this->message, 0, -1);
|
||||
$dot = \true;
|
||||
}
|
||||
if (null !== $this->parsedFile) {
|
||||
$this->message .= \sprintf(' in %s', \json_encode($this->parsedFile, \JSON_UNESCAPED_SLASHES | \JSON_UNESCAPED_UNICODE));
|
||||
}
|
||||
if ($this->parsedLine >= 0) {
|
||||
$this->message .= \sprintf(' at line %d', $this->parsedLine);
|
||||
}
|
||||
if ($this->snippet) {
|
||||
$this->message .= \sprintf(' (near "%s")', $this->snippet);
|
||||
}
|
||||
if ($dot) {
|
||||
$this->message .= '.';
|
||||
}
|
||||
}
|
||||
}
|
20
vendor/symfony/yaml/Exception/RuntimeException.php
vendored
Normal file
20
vendor/symfony/yaml/Exception/RuntimeException.php
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
namespace RectorPrefix20210512\Symfony\Component\Yaml\Exception;
|
||||
|
||||
/**
|
||||
* Exception class thrown when an error occurs during parsing.
|
||||
*
|
||||
* @author Romain Neutron <imprec@gmail.com>
|
||||
*/
|
||||
class RuntimeException extends \RuntimeException implements \RectorPrefix20210512\Symfony\Component\Yaml\Exception\ExceptionInterface
|
||||
{
|
||||
}
|
687
vendor/symfony/yaml/Inline.php
vendored
Normal file
687
vendor/symfony/yaml/Inline.php
vendored
Normal file
|
@ -0,0 +1,687 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
namespace RectorPrefix20210512\Symfony\Component\Yaml;
|
||||
|
||||
use RectorPrefix20210512\Symfony\Component\Yaml\Exception\DumpException;
|
||||
use RectorPrefix20210512\Symfony\Component\Yaml\Exception\ParseException;
|
||||
use RectorPrefix20210512\Symfony\Component\Yaml\Tag\TaggedValue;
|
||||
/**
|
||||
* Inline implements a YAML parser/dumper for the YAML inline syntax.
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class Inline
|
||||
{
|
||||
public const REGEX_QUOTED_STRING = '(?:"([^"\\\\]*+(?:\\\\.[^"\\\\]*+)*+)"|\'([^\']*+(?:\'\'[^\']*+)*+)\')';
|
||||
public static $parsedLineNumber = -1;
|
||||
public static $parsedFilename;
|
||||
private static $exceptionOnInvalidType = \false;
|
||||
private static $objectSupport = \false;
|
||||
private static $objectForMap = \false;
|
||||
private static $constantSupport = \false;
|
||||
public static function initialize(int $flags, int $parsedLineNumber = null, string $parsedFilename = null)
|
||||
{
|
||||
self::$exceptionOnInvalidType = (bool) (\RectorPrefix20210512\Symfony\Component\Yaml\Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE & $flags);
|
||||
self::$objectSupport = (bool) (\RectorPrefix20210512\Symfony\Component\Yaml\Yaml::PARSE_OBJECT & $flags);
|
||||
self::$objectForMap = (bool) (\RectorPrefix20210512\Symfony\Component\Yaml\Yaml::PARSE_OBJECT_FOR_MAP & $flags);
|
||||
self::$constantSupport = (bool) (\RectorPrefix20210512\Symfony\Component\Yaml\Yaml::PARSE_CONSTANT & $flags);
|
||||
self::$parsedFilename = $parsedFilename;
|
||||
if (null !== $parsedLineNumber) {
|
||||
self::$parsedLineNumber = $parsedLineNumber;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Converts a YAML string to a PHP value.
|
||||
*
|
||||
* @param string $value A YAML string
|
||||
* @param int $flags A bit field of PARSE_* constants to customize the YAML parser behavior
|
||||
* @param array $references Mapping of variable names to values
|
||||
*
|
||||
* @return mixed A PHP value
|
||||
*
|
||||
* @throws ParseException
|
||||
*/
|
||||
public static function parse(string $value = null, int $flags = 0, array &$references = [])
|
||||
{
|
||||
self::initialize($flags);
|
||||
$value = \trim($value);
|
||||
if ('' === $value) {
|
||||
return '';
|
||||
}
|
||||
if (2 & (int) \ini_get('mbstring.func_overload')) {
|
||||
$mbEncoding = \mb_internal_encoding();
|
||||
\mb_internal_encoding('ASCII');
|
||||
}
|
||||
try {
|
||||
$i = 0;
|
||||
$tag = self::parseTag($value, $i, $flags);
|
||||
switch ($value[$i]) {
|
||||
case '[':
|
||||
$result = self::parseSequence($value, $flags, $i, $references);
|
||||
++$i;
|
||||
break;
|
||||
case '{':
|
||||
$result = self::parseMapping($value, $flags, $i, $references);
|
||||
++$i;
|
||||
break;
|
||||
default:
|
||||
$result = self::parseScalar($value, $flags, null, $i, null === $tag, $references);
|
||||
}
|
||||
// some comments are allowed at the end
|
||||
if (\preg_replace('/\\s*#.*$/A', '', \substr($value, $i))) {
|
||||
throw new \RectorPrefix20210512\Symfony\Component\Yaml\Exception\ParseException(\sprintf('Unexpected characters near "%s".', \substr($value, $i)), self::$parsedLineNumber + 1, $value, self::$parsedFilename);
|
||||
}
|
||||
if (null !== $tag && '' !== $tag) {
|
||||
return new \RectorPrefix20210512\Symfony\Component\Yaml\Tag\TaggedValue($tag, $result);
|
||||
}
|
||||
return $result;
|
||||
} finally {
|
||||
if (isset($mbEncoding)) {
|
||||
\mb_internal_encoding($mbEncoding);
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Dumps a given PHP variable to a YAML string.
|
||||
*
|
||||
* @param mixed $value The PHP variable to convert
|
||||
* @param int $flags A bit field of Yaml::DUMP_* constants to customize the dumped YAML string
|
||||
*
|
||||
* @return string The YAML string representing the PHP value
|
||||
*
|
||||
* @throws DumpException When trying to dump PHP resource
|
||||
*/
|
||||
public static function dump($value, int $flags = 0) : string
|
||||
{
|
||||
switch (\true) {
|
||||
case \is_resource($value):
|
||||
if (\RectorPrefix20210512\Symfony\Component\Yaml\Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE & $flags) {
|
||||
throw new \RectorPrefix20210512\Symfony\Component\Yaml\Exception\DumpException(\sprintf('Unable to dump PHP resources in a YAML file ("%s").', \get_resource_type($value)));
|
||||
}
|
||||
return self::dumpNull($flags);
|
||||
case $value instanceof \DateTimeInterface:
|
||||
return $value->format('c');
|
||||
case \is_object($value):
|
||||
if ($value instanceof \RectorPrefix20210512\Symfony\Component\Yaml\Tag\TaggedValue) {
|
||||
return '!' . $value->getTag() . ' ' . self::dump($value->getValue(), $flags);
|
||||
}
|
||||
if (\RectorPrefix20210512\Symfony\Component\Yaml\Yaml::DUMP_OBJECT & $flags) {
|
||||
return '!php/object ' . self::dump(\serialize($value));
|
||||
}
|
||||
if (\RectorPrefix20210512\Symfony\Component\Yaml\Yaml::DUMP_OBJECT_AS_MAP & $flags && ($value instanceof \stdClass || $value instanceof \ArrayObject)) {
|
||||
$output = [];
|
||||
foreach ($value as $key => $val) {
|
||||
$output[] = \sprintf('%s: %s', self::dump($key, $flags), self::dump($val, $flags));
|
||||
}
|
||||
return \sprintf('{ %s }', \implode(', ', $output));
|
||||
}
|
||||
if (\RectorPrefix20210512\Symfony\Component\Yaml\Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE & $flags) {
|
||||
throw new \RectorPrefix20210512\Symfony\Component\Yaml\Exception\DumpException('Object support when dumping a YAML file has been disabled.');
|
||||
}
|
||||
return self::dumpNull($flags);
|
||||
case \is_array($value):
|
||||
return self::dumpArray($value, $flags);
|
||||
case null === $value:
|
||||
return self::dumpNull($flags);
|
||||
case \true === $value:
|
||||
return 'true';
|
||||
case \false === $value:
|
||||
return 'false';
|
||||
case \ctype_digit($value):
|
||||
return \is_string($value) ? "'{$value}'" : (int) $value;
|
||||
case \is_numeric($value) && \false === \strpos($value, "\f") && \false === \strpos($value, "\n") && \false === \strpos($value, "\r") && \false === \strpos($value, "\t") && \false === \strpos($value, "\v"):
|
||||
$locale = \setlocale(\LC_NUMERIC, 0);
|
||||
if (\false !== $locale) {
|
||||
\setlocale(\LC_NUMERIC, 'C');
|
||||
}
|
||||
if (\is_float($value)) {
|
||||
$repr = (string) $value;
|
||||
if (\is_infinite($value)) {
|
||||
$repr = \str_ireplace('INF', '.Inf', $repr);
|
||||
} elseif (\floor($value) == $value && $repr == $value) {
|
||||
// Preserve float data type since storing a whole number will result in integer value.
|
||||
$repr = '!!float ' . $repr;
|
||||
}
|
||||
} else {
|
||||
$repr = \is_string($value) ? "'{$value}'" : (string) $value;
|
||||
}
|
||||
if (\false !== $locale) {
|
||||
\setlocale(\LC_NUMERIC, $locale);
|
||||
}
|
||||
return $repr;
|
||||
case '' == $value:
|
||||
return "''";
|
||||
case self::isBinaryString($value):
|
||||
return '!!binary ' . \base64_encode($value);
|
||||
case \RectorPrefix20210512\Symfony\Component\Yaml\Escaper::requiresDoubleQuoting($value):
|
||||
return \RectorPrefix20210512\Symfony\Component\Yaml\Escaper::escapeWithDoubleQuotes($value);
|
||||
case \RectorPrefix20210512\Symfony\Component\Yaml\Escaper::requiresSingleQuoting($value):
|
||||
case \RectorPrefix20210512\Symfony\Component\Yaml\Parser::preg_match('{^[0-9]+[_0-9]*$}', $value):
|
||||
case \RectorPrefix20210512\Symfony\Component\Yaml\Parser::preg_match(self::getHexRegex(), $value):
|
||||
case \RectorPrefix20210512\Symfony\Component\Yaml\Parser::preg_match(self::getTimestampRegex(), $value):
|
||||
return \RectorPrefix20210512\Symfony\Component\Yaml\Escaper::escapeWithSingleQuotes($value);
|
||||
default:
|
||||
return $value;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Check if given array is hash or just normal indexed array.
|
||||
*
|
||||
* @param array|\ArrayObject|\stdClass $value The PHP array or array-like object to check
|
||||
*
|
||||
* @return bool true if value is hash array, false otherwise
|
||||
*/
|
||||
public static function isHash($value) : bool
|
||||
{
|
||||
if ($value instanceof \stdClass || $value instanceof \ArrayObject) {
|
||||
return \true;
|
||||
}
|
||||
$expectedKey = 0;
|
||||
foreach ($value as $key => $val) {
|
||||
if ($key !== $expectedKey++) {
|
||||
return \true;
|
||||
}
|
||||
}
|
||||
return \false;
|
||||
}
|
||||
/**
|
||||
* Dumps a PHP array to a YAML string.
|
||||
*
|
||||
* @param array $value The PHP array to dump
|
||||
* @param int $flags A bit field of Yaml::DUMP_* constants to customize the dumped YAML string
|
||||
*
|
||||
* @return string The YAML string representing the PHP array
|
||||
*/
|
||||
private static function dumpArray(array $value, int $flags) : string
|
||||
{
|
||||
// array
|
||||
if (($value || \RectorPrefix20210512\Symfony\Component\Yaml\Yaml::DUMP_EMPTY_ARRAY_AS_SEQUENCE & $flags) && !self::isHash($value)) {
|
||||
$output = [];
|
||||
foreach ($value as $val) {
|
||||
$output[] = self::dump($val, $flags);
|
||||
}
|
||||
return \sprintf('[%s]', \implode(', ', $output));
|
||||
}
|
||||
// hash
|
||||
$output = [];
|
||||
foreach ($value as $key => $val) {
|
||||
$output[] = \sprintf('%s: %s', self::dump($key, $flags), self::dump($val, $flags));
|
||||
}
|
||||
return \sprintf('{ %s }', \implode(', ', $output));
|
||||
}
|
||||
private static function dumpNull(int $flags) : string
|
||||
{
|
||||
if (\RectorPrefix20210512\Symfony\Component\Yaml\Yaml::DUMP_NULL_AS_TILDE & $flags) {
|
||||
return '~';
|
||||
}
|
||||
return 'null';
|
||||
}
|
||||
/**
|
||||
* Parses a YAML scalar.
|
||||
*
|
||||
* @return mixed
|
||||
*
|
||||
* @throws ParseException When malformed inline YAML string is parsed
|
||||
*/
|
||||
public static function parseScalar(string $scalar, int $flags = 0, array $delimiters = null, int &$i = 0, bool $evaluate = \true, array &$references = [])
|
||||
{
|
||||
if (\in_array($scalar[$i], ['"', "'"], \true)) {
|
||||
// quoted scalar
|
||||
$output = self::parseQuotedScalar($scalar, $i);
|
||||
if (null !== $delimiters) {
|
||||
$tmp = \ltrim(\substr($scalar, $i), " \n");
|
||||
if ('' === $tmp) {
|
||||
throw new \RectorPrefix20210512\Symfony\Component\Yaml\Exception\ParseException(\sprintf('Unexpected end of line, expected one of "%s".', \implode('', $delimiters)), self::$parsedLineNumber + 1, $scalar, self::$parsedFilename);
|
||||
}
|
||||
if (!\in_array($tmp[0], $delimiters)) {
|
||||
throw new \RectorPrefix20210512\Symfony\Component\Yaml\Exception\ParseException(\sprintf('Unexpected characters (%s).', \substr($scalar, $i)), self::$parsedLineNumber + 1, $scalar, self::$parsedFilename);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// "normal" string
|
||||
if (!$delimiters) {
|
||||
$output = \substr($scalar, $i);
|
||||
$i += \strlen($output);
|
||||
// remove comments
|
||||
if (\RectorPrefix20210512\Symfony\Component\Yaml\Parser::preg_match('/[ \\t]+#/', $output, $match, \PREG_OFFSET_CAPTURE)) {
|
||||
$output = \substr($output, 0, $match[0][1]);
|
||||
}
|
||||
} elseif (\RectorPrefix20210512\Symfony\Component\Yaml\Parser::preg_match('/^(.*?)(' . \implode('|', $delimiters) . ')/', \substr($scalar, $i), $match)) {
|
||||
$output = $match[1];
|
||||
$i += \strlen($output);
|
||||
$output = \trim($output);
|
||||
} else {
|
||||
throw new \RectorPrefix20210512\Symfony\Component\Yaml\Exception\ParseException(\sprintf('Malformed inline YAML string: "%s".', $scalar), self::$parsedLineNumber + 1, null, self::$parsedFilename);
|
||||
}
|
||||
// a non-quoted string cannot start with @ or ` (reserved) nor with a scalar indicator (| or >)
|
||||
if ($output && ('@' === $output[0] || '`' === $output[0] || '|' === $output[0] || '>' === $output[0] || '%' === $output[0])) {
|
||||
throw new \RectorPrefix20210512\Symfony\Component\Yaml\Exception\ParseException(\sprintf('The reserved indicator "%s" cannot start a plain scalar; you need to quote the scalar.', $output[0]), self::$parsedLineNumber + 1, $output, self::$parsedFilename);
|
||||
}
|
||||
if ($evaluate) {
|
||||
$output = self::evaluateScalar($output, $flags, $references);
|
||||
}
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
/**
|
||||
* Parses a YAML quoted scalar.
|
||||
*
|
||||
* @throws ParseException When malformed inline YAML string is parsed
|
||||
*/
|
||||
private static function parseQuotedScalar(string $scalar, int &$i) : string
|
||||
{
|
||||
if (!\RectorPrefix20210512\Symfony\Component\Yaml\Parser::preg_match('/' . self::REGEX_QUOTED_STRING . '/Au', \substr($scalar, $i), $match)) {
|
||||
throw new \RectorPrefix20210512\Symfony\Component\Yaml\Exception\ParseException(\sprintf('Malformed inline YAML string: "%s".', \substr($scalar, $i)), self::$parsedLineNumber + 1, $scalar, self::$parsedFilename);
|
||||
}
|
||||
$output = \substr($match[0], 1, -1);
|
||||
$unescaper = new \RectorPrefix20210512\Symfony\Component\Yaml\Unescaper();
|
||||
if ('"' == $scalar[$i]) {
|
||||
$output = $unescaper->unescapeDoubleQuotedString($output);
|
||||
} else {
|
||||
$output = $unescaper->unescapeSingleQuotedString($output);
|
||||
}
|
||||
$i += \strlen($match[0]);
|
||||
return $output;
|
||||
}
|
||||
/**
|
||||
* Parses a YAML sequence.
|
||||
*
|
||||
* @throws ParseException When malformed inline YAML string is parsed
|
||||
*/
|
||||
private static function parseSequence(string $sequence, int $flags, int &$i = 0, array &$references = []) : array
|
||||
{
|
||||
$output = [];
|
||||
$len = \strlen($sequence);
|
||||
++$i;
|
||||
// [foo, bar, ...]
|
||||
while ($i < $len) {
|
||||
if (']' === $sequence[$i]) {
|
||||
return $output;
|
||||
}
|
||||
if (',' === $sequence[$i] || ' ' === $sequence[$i]) {
|
||||
++$i;
|
||||
continue;
|
||||
}
|
||||
$tag = self::parseTag($sequence, $i, $flags);
|
||||
switch ($sequence[$i]) {
|
||||
case '[':
|
||||
// nested sequence
|
||||
$value = self::parseSequence($sequence, $flags, $i, $references);
|
||||
break;
|
||||
case '{':
|
||||
// nested mapping
|
||||
$value = self::parseMapping($sequence, $flags, $i, $references);
|
||||
break;
|
||||
default:
|
||||
$isQuoted = \in_array($sequence[$i], ['"', "'"], \true);
|
||||
$value = self::parseScalar($sequence, $flags, [',', ']'], $i, null === $tag, $references);
|
||||
// the value can be an array if a reference has been resolved to an array var
|
||||
if (\is_string($value) && !$isQuoted && \false !== \strpos($value, ': ')) {
|
||||
// embedded mapping?
|
||||
try {
|
||||
$pos = 0;
|
||||
$value = self::parseMapping('{' . $value . '}', $flags, $pos, $references);
|
||||
} catch (\InvalidArgumentException $e) {
|
||||
// no, it's not
|
||||
}
|
||||
}
|
||||
if (\is_string($value) && '' !== $value && '&' === $value[0] && \RectorPrefix20210512\Symfony\Component\Yaml\Parser::preg_match(\RectorPrefix20210512\Symfony\Component\Yaml\Parser::REFERENCE_PATTERN, $value, $matches)) {
|
||||
$references[$matches['ref']] = $matches['value'];
|
||||
$value = $matches['value'];
|
||||
}
|
||||
--$i;
|
||||
}
|
||||
if (null !== $tag && '' !== $tag) {
|
||||
$value = new \RectorPrefix20210512\Symfony\Component\Yaml\Tag\TaggedValue($tag, $value);
|
||||
}
|
||||
$output[] = $value;
|
||||
++$i;
|
||||
}
|
||||
throw new \RectorPrefix20210512\Symfony\Component\Yaml\Exception\ParseException(\sprintf('Malformed inline YAML string: "%s".', $sequence), self::$parsedLineNumber + 1, null, self::$parsedFilename);
|
||||
}
|
||||
/**
|
||||
* Parses a YAML mapping.
|
||||
*
|
||||
* @return array|\stdClass
|
||||
*
|
||||
* @throws ParseException When malformed inline YAML string is parsed
|
||||
*/
|
||||
private static function parseMapping(string $mapping, int $flags, int &$i = 0, array &$references = [])
|
||||
{
|
||||
$output = [];
|
||||
$len = \strlen($mapping);
|
||||
++$i;
|
||||
$allowOverwrite = \false;
|
||||
// {foo: bar, bar:foo, ...}
|
||||
while ($i < $len) {
|
||||
switch ($mapping[$i]) {
|
||||
case ' ':
|
||||
case ',':
|
||||
case "\n":
|
||||
++$i;
|
||||
continue 2;
|
||||
case '}':
|
||||
if (self::$objectForMap) {
|
||||
return (object) $output;
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
// key
|
||||
$offsetBeforeKeyParsing = $i;
|
||||
$isKeyQuoted = \in_array($mapping[$i], ['"', "'"], \true);
|
||||
$key = self::parseScalar($mapping, $flags, [':', ' '], $i, \false);
|
||||
if ($offsetBeforeKeyParsing === $i) {
|
||||
throw new \RectorPrefix20210512\Symfony\Component\Yaml\Exception\ParseException('Missing mapping key.', self::$parsedLineNumber + 1, $mapping);
|
||||
}
|
||||
if ('!php/const' === $key) {
|
||||
$key .= ' ' . self::parseScalar($mapping, $flags, [':'], $i, \false);
|
||||
$key = self::evaluateScalar($key, $flags);
|
||||
}
|
||||
if (\false === ($i = \strpos($mapping, ':', $i))) {
|
||||
break;
|
||||
}
|
||||
if (!$isKeyQuoted) {
|
||||
$evaluatedKey = self::evaluateScalar($key, $flags, $references);
|
||||
if ('' !== $key && $evaluatedKey !== $key && !\is_string($evaluatedKey) && !\is_int($evaluatedKey)) {
|
||||
throw new \RectorPrefix20210512\Symfony\Component\Yaml\Exception\ParseException('Implicit casting of incompatible mapping keys to strings is not supported. Quote your evaluable mapping keys instead.', self::$parsedLineNumber + 1, $mapping);
|
||||
}
|
||||
}
|
||||
if (!$isKeyQuoted && (!isset($mapping[$i + 1]) || !\in_array($mapping[$i + 1], [' ', ',', '[', ']', '{', '}', "\n"], \true))) {
|
||||
throw new \RectorPrefix20210512\Symfony\Component\Yaml\Exception\ParseException('Colons must be followed by a space or an indication character (i.e. " ", ",", "[", "]", "{", "}").', self::$parsedLineNumber + 1, $mapping);
|
||||
}
|
||||
if ('<<' === $key) {
|
||||
$allowOverwrite = \true;
|
||||
}
|
||||
while ($i < $len) {
|
||||
if (':' === $mapping[$i] || ' ' === $mapping[$i] || "\n" === $mapping[$i]) {
|
||||
++$i;
|
||||
continue;
|
||||
}
|
||||
$tag = self::parseTag($mapping, $i, $flags);
|
||||
switch ($mapping[$i]) {
|
||||
case '[':
|
||||
// nested sequence
|
||||
$value = self::parseSequence($mapping, $flags, $i, $references);
|
||||
// Spec: Keys MUST be unique; first one wins.
|
||||
// Parser cannot abort this mapping earlier, since lines
|
||||
// are processed sequentially.
|
||||
// But overwriting is allowed when a merge node is used in current block.
|
||||
if ('<<' === $key) {
|
||||
foreach ($value as $parsedValue) {
|
||||
$output += $parsedValue;
|
||||
}
|
||||
} elseif ($allowOverwrite || !isset($output[$key])) {
|
||||
if (null !== $tag) {
|
||||
$output[$key] = new \RectorPrefix20210512\Symfony\Component\Yaml\Tag\TaggedValue($tag, $value);
|
||||
} else {
|
||||
$output[$key] = $value;
|
||||
}
|
||||
} elseif (isset($output[$key])) {
|
||||
throw new \RectorPrefix20210512\Symfony\Component\Yaml\Exception\ParseException(\sprintf('Duplicate key "%s" detected.', $key), self::$parsedLineNumber + 1, $mapping);
|
||||
}
|
||||
break;
|
||||
case '{':
|
||||
// nested mapping
|
||||
$value = self::parseMapping($mapping, $flags, $i, $references);
|
||||
// Spec: Keys MUST be unique; first one wins.
|
||||
// Parser cannot abort this mapping earlier, since lines
|
||||
// are processed sequentially.
|
||||
// But overwriting is allowed when a merge node is used in current block.
|
||||
if ('<<' === $key) {
|
||||
$output += $value;
|
||||
} elseif ($allowOverwrite || !isset($output[$key])) {
|
||||
if (null !== $tag) {
|
||||
$output[$key] = new \RectorPrefix20210512\Symfony\Component\Yaml\Tag\TaggedValue($tag, $value);
|
||||
} else {
|
||||
$output[$key] = $value;
|
||||
}
|
||||
} elseif (isset($output[$key])) {
|
||||
throw new \RectorPrefix20210512\Symfony\Component\Yaml\Exception\ParseException(\sprintf('Duplicate key "%s" detected.', $key), self::$parsedLineNumber + 1, $mapping);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
$value = self::parseScalar($mapping, $flags, [',', '}', "\n"], $i, null === $tag, $references);
|
||||
// Spec: Keys MUST be unique; first one wins.
|
||||
// Parser cannot abort this mapping earlier, since lines
|
||||
// are processed sequentially.
|
||||
// But overwriting is allowed when a merge node is used in current block.
|
||||
if ('<<' === $key) {
|
||||
$output += $value;
|
||||
} elseif ($allowOverwrite || !isset($output[$key])) {
|
||||
if (\is_string($value) && '' !== $value && '&' === $value[0] && \RectorPrefix20210512\Symfony\Component\Yaml\Parser::preg_match(\RectorPrefix20210512\Symfony\Component\Yaml\Parser::REFERENCE_PATTERN, $value, $matches)) {
|
||||
$references[$matches['ref']] = $matches['value'];
|
||||
$value = $matches['value'];
|
||||
}
|
||||
if (null !== $tag) {
|
||||
$output[$key] = new \RectorPrefix20210512\Symfony\Component\Yaml\Tag\TaggedValue($tag, $value);
|
||||
} else {
|
||||
$output[$key] = $value;
|
||||
}
|
||||
} elseif (isset($output[$key])) {
|
||||
throw new \RectorPrefix20210512\Symfony\Component\Yaml\Exception\ParseException(\sprintf('Duplicate key "%s" detected.', $key), self::$parsedLineNumber + 1, $mapping);
|
||||
}
|
||||
--$i;
|
||||
}
|
||||
++$i;
|
||||
continue 2;
|
||||
}
|
||||
}
|
||||
throw new \RectorPrefix20210512\Symfony\Component\Yaml\Exception\ParseException(\sprintf('Malformed inline YAML string: "%s".', $mapping), self::$parsedLineNumber + 1, null, self::$parsedFilename);
|
||||
}
|
||||
/**
|
||||
* Evaluates scalars and replaces magic values.
|
||||
*
|
||||
* @return mixed The evaluated YAML string
|
||||
*
|
||||
* @throws ParseException when object parsing support was disabled and the parser detected a PHP object or when a reference could not be resolved
|
||||
*/
|
||||
private static function evaluateScalar(string $scalar, int $flags, array &$references = [])
|
||||
{
|
||||
$scalar = \trim($scalar);
|
||||
if ('*' === ($scalar[0] ?? '')) {
|
||||
if (\false !== ($pos = \strpos($scalar, '#'))) {
|
||||
$value = \substr($scalar, 1, $pos - 2);
|
||||
} else {
|
||||
$value = \substr($scalar, 1);
|
||||
}
|
||||
// an unquoted *
|
||||
if (\false === $value || '' === $value) {
|
||||
throw new \RectorPrefix20210512\Symfony\Component\Yaml\Exception\ParseException('A reference must contain at least one character.', self::$parsedLineNumber + 1, $value, self::$parsedFilename);
|
||||
}
|
||||
if (!\array_key_exists($value, $references)) {
|
||||
throw new \RectorPrefix20210512\Symfony\Component\Yaml\Exception\ParseException(\sprintf('Reference "%s" does not exist.', $value), self::$parsedLineNumber + 1, $value, self::$parsedFilename);
|
||||
}
|
||||
return $references[$value];
|
||||
}
|
||||
$scalarLower = \strtolower($scalar);
|
||||
switch (\true) {
|
||||
case 'null' === $scalarLower:
|
||||
case '' === $scalar:
|
||||
case '~' === $scalar:
|
||||
return null;
|
||||
case 'true' === $scalarLower:
|
||||
return \true;
|
||||
case 'false' === $scalarLower:
|
||||
return \false;
|
||||
case '!' === $scalar[0]:
|
||||
switch (\true) {
|
||||
case 0 === \strncmp($scalar, '!!str ', 6):
|
||||
return (string) \substr($scalar, 6);
|
||||
case 0 === \strncmp($scalar, '! ', 2):
|
||||
return \substr($scalar, 2);
|
||||
case 0 === \strncmp($scalar, '!php/object', 11):
|
||||
if (self::$objectSupport) {
|
||||
if (!isset($scalar[12])) {
|
||||
trigger_deprecation('symfony/yaml', '5.1', 'Using the !php/object tag without a value is deprecated.');
|
||||
return \false;
|
||||
}
|
||||
return \unserialize(self::parseScalar(\substr($scalar, 12)));
|
||||
}
|
||||
if (self::$exceptionOnInvalidType) {
|
||||
throw new \RectorPrefix20210512\Symfony\Component\Yaml\Exception\ParseException('Object support when parsing a YAML file has been disabled.', self::$parsedLineNumber + 1, $scalar, self::$parsedFilename);
|
||||
}
|
||||
return null;
|
||||
case 0 === \strncmp($scalar, '!php/const', 10):
|
||||
if (self::$constantSupport) {
|
||||
if (!isset($scalar[11])) {
|
||||
trigger_deprecation('symfony/yaml', '5.1', 'Using the !php/const tag without a value is deprecated.');
|
||||
return '';
|
||||
}
|
||||
$i = 0;
|
||||
if (\defined($const = self::parseScalar(\substr($scalar, 11), 0, null, $i, \false))) {
|
||||
return \constant($const);
|
||||
}
|
||||
throw new \RectorPrefix20210512\Symfony\Component\Yaml\Exception\ParseException(\sprintf('The constant "%s" is not defined.', $const), self::$parsedLineNumber + 1, $scalar, self::$parsedFilename);
|
||||
}
|
||||
if (self::$exceptionOnInvalidType) {
|
||||
throw new \RectorPrefix20210512\Symfony\Component\Yaml\Exception\ParseException(\sprintf('The string "%s" could not be parsed as a constant. Did you forget to pass the "Yaml::PARSE_CONSTANT" flag to the parser?', $scalar), self::$parsedLineNumber + 1, $scalar, self::$parsedFilename);
|
||||
}
|
||||
return null;
|
||||
case 0 === \strncmp($scalar, '!!float ', 8):
|
||||
return (float) \substr($scalar, 8);
|
||||
case 0 === \strncmp($scalar, '!!binary ', 9):
|
||||
return self::evaluateBinaryScalar(\substr($scalar, 9));
|
||||
default:
|
||||
throw new \RectorPrefix20210512\Symfony\Component\Yaml\Exception\ParseException(\sprintf('The string "%s" could not be parsed as it uses an unsupported built-in tag.', $scalar), self::$parsedLineNumber, $scalar, self::$parsedFilename);
|
||||
}
|
||||
// no break
|
||||
case \preg_match('/^(?:\\+|-)?0o(?P<value>[0-7_]++)$/', $scalar, $matches):
|
||||
$value = \str_replace('_', '', $matches['value']);
|
||||
if ('-' === $scalar[0]) {
|
||||
return -\octdec($value);
|
||||
} else {
|
||||
return \octdec($value);
|
||||
}
|
||||
// Optimize for returning strings.
|
||||
// no break
|
||||
case \in_array($scalar[0], ['+', '-', '.'], \true) || \is_numeric($scalar[0]):
|
||||
if (\RectorPrefix20210512\Symfony\Component\Yaml\Parser::preg_match('{^[+-]?[0-9][0-9_]*$}', $scalar)) {
|
||||
$scalar = \str_replace('_', '', (string) $scalar);
|
||||
}
|
||||
switch (\true) {
|
||||
case \ctype_digit($scalar):
|
||||
if (\preg_match('/^0[0-7]+$/', $scalar)) {
|
||||
trigger_deprecation('symfony/yaml', '5.1', 'Support for parsing numbers prefixed with 0 as octal numbers. They will be parsed as strings as of 6.0.');
|
||||
return \octdec($scalar);
|
||||
}
|
||||
$cast = (int) $scalar;
|
||||
return $scalar === (string) $cast ? $cast : $scalar;
|
||||
case '-' === $scalar[0] && \ctype_digit(\substr($scalar, 1)):
|
||||
if (\preg_match('/^-0[0-7]+$/', $scalar)) {
|
||||
trigger_deprecation('symfony/yaml', '5.1', 'Support for parsing numbers prefixed with 0 as octal numbers. They will be parsed as strings as of 6.0.');
|
||||
return -\octdec(\substr($scalar, 1));
|
||||
}
|
||||
$cast = (int) $scalar;
|
||||
return $scalar === (string) $cast ? $cast : $scalar;
|
||||
case \is_numeric($scalar):
|
||||
case \RectorPrefix20210512\Symfony\Component\Yaml\Parser::preg_match(self::getHexRegex(), $scalar):
|
||||
$scalar = \str_replace('_', '', $scalar);
|
||||
return '0x' === $scalar[0] . $scalar[1] ? \hexdec($scalar) : (float) $scalar;
|
||||
case '.inf' === $scalarLower:
|
||||
case '.nan' === $scalarLower:
|
||||
return -\log(0);
|
||||
case '-.inf' === $scalarLower:
|
||||
return \log(0);
|
||||
case \RectorPrefix20210512\Symfony\Component\Yaml\Parser::preg_match('/^(-|\\+)?[0-9][0-9_]*(\\.[0-9_]+)?$/', $scalar):
|
||||
return (float) \str_replace('_', '', $scalar);
|
||||
case \RectorPrefix20210512\Symfony\Component\Yaml\Parser::preg_match(self::getTimestampRegex(), $scalar):
|
||||
if (\RectorPrefix20210512\Symfony\Component\Yaml\Yaml::PARSE_DATETIME & $flags) {
|
||||
// When no timezone is provided in the parsed date, YAML spec says we must assume UTC.
|
||||
return new \DateTime($scalar, new \DateTimeZone('UTC'));
|
||||
}
|
||||
$timeZone = \date_default_timezone_get();
|
||||
\date_default_timezone_set('UTC');
|
||||
$time = \strtotime($scalar);
|
||||
\date_default_timezone_set($timeZone);
|
||||
return $time;
|
||||
}
|
||||
}
|
||||
return (string) $scalar;
|
||||
}
|
||||
private static function parseTag(string $value, int &$i, int $flags) : ?string
|
||||
{
|
||||
if ('!' !== $value[$i]) {
|
||||
return null;
|
||||
}
|
||||
$tagLength = \strcspn($value, " \t\n[]{},", $i + 1);
|
||||
$tag = \substr($value, $i + 1, $tagLength);
|
||||
$nextOffset = $i + $tagLength + 1;
|
||||
$nextOffset += \strspn($value, ' ', $nextOffset);
|
||||
if ('' === $tag && (!isset($value[$nextOffset]) || \in_array($value[$nextOffset], [']', '}', ','], \true))) {
|
||||
throw new \RectorPrefix20210512\Symfony\Component\Yaml\Exception\ParseException(\sprintf('Using the unquoted scalar value "!" is not supported. You must quote it.', $value), self::$parsedLineNumber + 1, $value, self::$parsedFilename);
|
||||
}
|
||||
// Is followed by a scalar and is a built-in tag
|
||||
if ('' !== $tag && (!isset($value[$nextOffset]) || !\in_array($value[$nextOffset], ['[', '{'], \true)) && ('!' === $tag[0] || 'str' === $tag || 'php/const' === $tag || 'php/object' === $tag)) {
|
||||
// Manage in {@link self::evaluateScalar()}
|
||||
return null;
|
||||
}
|
||||
$i = $nextOffset;
|
||||
// Built-in tags
|
||||
if ('' !== $tag && '!' === $tag[0]) {
|
||||
throw new \RectorPrefix20210512\Symfony\Component\Yaml\Exception\ParseException(\sprintf('The built-in tag "!%s" is not implemented.', $tag), self::$parsedLineNumber + 1, $value, self::$parsedFilename);
|
||||
}
|
||||
if ('' !== $tag && !isset($value[$i])) {
|
||||
throw new \RectorPrefix20210512\Symfony\Component\Yaml\Exception\ParseException(\sprintf('Missing value for tag "%s".', $tag), self::$parsedLineNumber + 1, $value, self::$parsedFilename);
|
||||
}
|
||||
if ('' === $tag || \RectorPrefix20210512\Symfony\Component\Yaml\Yaml::PARSE_CUSTOM_TAGS & $flags) {
|
||||
return $tag;
|
||||
}
|
||||
throw new \RectorPrefix20210512\Symfony\Component\Yaml\Exception\ParseException(\sprintf('Tags support is not enabled. Enable the "Yaml::PARSE_CUSTOM_TAGS" flag to use "!%s".', $tag), self::$parsedLineNumber + 1, $value, self::$parsedFilename);
|
||||
}
|
||||
public static function evaluateBinaryScalar(string $scalar) : string
|
||||
{
|
||||
$parsedBinaryData = self::parseScalar(\preg_replace('/\\s/', '', $scalar));
|
||||
if (0 !== \strlen($parsedBinaryData) % 4) {
|
||||
throw new \RectorPrefix20210512\Symfony\Component\Yaml\Exception\ParseException(\sprintf('The normalized base64 encoded data (data without whitespace characters) length must be a multiple of four (%d bytes given).', \strlen($parsedBinaryData)), self::$parsedLineNumber + 1, $scalar, self::$parsedFilename);
|
||||
}
|
||||
if (!\RectorPrefix20210512\Symfony\Component\Yaml\Parser::preg_match('#^[A-Z0-9+/]+={0,2}$#i', $parsedBinaryData)) {
|
||||
throw new \RectorPrefix20210512\Symfony\Component\Yaml\Exception\ParseException(\sprintf('The base64 encoded data (%s) contains invalid characters.', $parsedBinaryData), self::$parsedLineNumber + 1, $scalar, self::$parsedFilename);
|
||||
}
|
||||
return \base64_decode($parsedBinaryData, \true);
|
||||
}
|
||||
private static function isBinaryString(string $value) : bool
|
||||
{
|
||||
return !\preg_match('//u', $value) || \preg_match('/[^\\x00\\x07-\\x0d\\x1B\\x20-\\xff]/', $value);
|
||||
}
|
||||
/**
|
||||
* Gets a regex that matches a YAML date.
|
||||
*
|
||||
* @return string The regular expression
|
||||
*
|
||||
* @see http://www.yaml.org/spec/1.2/spec.html#id2761573
|
||||
*/
|
||||
private static function getTimestampRegex() : string
|
||||
{
|
||||
return <<<EOF
|
||||
~^
|
||||
(?P<year>[0-9][0-9][0-9][0-9])
|
||||
-(?P<month>[0-9][0-9]?)
|
||||
-(?P<day>[0-9][0-9]?)
|
||||
(?:(?:[Tt]|[ \t]+)
|
||||
(?P<hour>[0-9][0-9]?)
|
||||
:(?P<minute>[0-9][0-9])
|
||||
:(?P<second>[0-9][0-9])
|
||||
(?:\\.(?P<fraction>[0-9]*))?
|
||||
(?:[ \t]*(?P<tz>Z|(?P<tz_sign>[-+])(?P<tz_hour>[0-9][0-9]?)
|
||||
(?::(?P<tz_minute>[0-9][0-9]))?))?)?
|
||||
\$~x
|
||||
EOF;
|
||||
}
|
||||
/**
|
||||
* Gets a regex that matches a YAML number in hexadecimal notation.
|
||||
*/
|
||||
private static function getHexRegex() : string
|
||||
{
|
||||
return '~^0x[0-9a-f_]++$~i';
|
||||
}
|
||||
}
|
19
vendor/symfony/yaml/LICENSE
vendored
Normal file
19
vendor/symfony/yaml/LICENSE
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
Copyright (c) 2004-2021 Fabien Potencier
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is furnished
|
||||
to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
1093
vendor/symfony/yaml/Parser.php
vendored
Normal file
1093
vendor/symfony/yaml/Parser.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
13
vendor/symfony/yaml/README.md
vendored
Normal file
13
vendor/symfony/yaml/README.md
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
Yaml Component
|
||||
==============
|
||||
|
||||
The Yaml component loads and dumps YAML files.
|
||||
|
||||
Resources
|
||||
---------
|
||||
|
||||
* [Documentation](https://symfony.com/doc/current/components/yaml.html)
|
||||
* [Contributing](https://symfony.com/doc/current/contributing/index.html)
|
||||
* [Report issues](https://github.com/symfony/symfony/issues) and
|
||||
[send Pull Requests](https://github.com/symfony/symfony/pulls)
|
||||
in the [main Symfony repository](https://github.com/symfony/symfony)
|
32
vendor/symfony/yaml/Resources/bin/yaml-lint
vendored
Normal file
32
vendor/symfony/yaml/Resources/bin/yaml-lint
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
#!/usr/bin/env php
|
||||
<?php
|
||||
namespace RectorPrefix20210512;
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
/**
|
||||
* Runs the Yaml lint command.
|
||||
*
|
||||
* @author Jan Schädlich <jan.schaedlich@sensiolabs.de>
|
||||
*/
|
||||
use RectorPrefix20210512\Symfony\Component\Console\Application;
|
||||
use RectorPrefix20210512\Symfony\Component\Yaml\Command\LintCommand;
|
||||
function includeIfExists(string $file) : bool
|
||||
{
|
||||
return \file_exists($file) && (include $file);
|
||||
}
|
||||
if (!\RectorPrefix20210512\includeIfExists(__DIR__ . '/../../../../autoload.php') && !\RectorPrefix20210512\includeIfExists(__DIR__ . '/../../vendor/autoload.php') && !\RectorPrefix20210512\includeIfExists(__DIR__ . '/../../../../../../vendor/autoload.php')) {
|
||||
\fwrite(\STDERR, 'Install dependencies using Composer.' . \PHP_EOL);
|
||||
exit(1);
|
||||
}
|
||||
if (!\class_exists(\RectorPrefix20210512\Symfony\Component\Console\Application::class)) {
|
||||
\fwrite(\STDERR, 'You need the "symfony/console" component in order to run the Yaml linter.' . \PHP_EOL);
|
||||
exit(1);
|
||||
}
|
||||
(new \RectorPrefix20210512\Symfony\Component\Console\Application())->add($command = new \RectorPrefix20210512\Symfony\Component\Yaml\Command\LintCommand())->getApplication()->setDefaultCommand($command->getName(), \true)->run();
|
34
vendor/symfony/yaml/Tag/TaggedValue.php
vendored
Normal file
34
vendor/symfony/yaml/Tag/TaggedValue.php
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
namespace RectorPrefix20210512\Symfony\Component\Yaml\Tag;
|
||||
|
||||
/**
|
||||
* @author Nicolas Grekas <p@tchwork.com>
|
||||
* @author Guilhem N. <egetick@gmail.com>
|
||||
*/
|
||||
final class TaggedValue
|
||||
{
|
||||
private $tag;
|
||||
private $value;
|
||||
public function __construct(string $tag, $value)
|
||||
{
|
||||
$this->tag = $tag;
|
||||
$this->value = $value;
|
||||
}
|
||||
public function getTag() : string
|
||||
{
|
||||
return $this->tag;
|
||||
}
|
||||
public function getValue()
|
||||
{
|
||||
return $this->value;
|
||||
}
|
||||
}
|
130
vendor/symfony/yaml/Unescaper.php
vendored
Normal file
130
vendor/symfony/yaml/Unescaper.php
vendored
Normal file
|
@ -0,0 +1,130 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
namespace RectorPrefix20210512\Symfony\Component\Yaml;
|
||||
|
||||
use RectorPrefix20210512\Symfony\Component\Yaml\Exception\ParseException;
|
||||
/**
|
||||
* Unescaper encapsulates unescaping rules for single and double-quoted
|
||||
* YAML strings.
|
||||
*
|
||||
* @author Matthew Lewinski <matthew@lewinski.org>
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
class Unescaper
|
||||
{
|
||||
/**
|
||||
* Regex fragment that matches an escaped character in a double quoted string.
|
||||
*/
|
||||
public const REGEX_ESCAPED_CHARACTER = '\\\\(x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8}|.)';
|
||||
/**
|
||||
* Unescapes a single quoted string.
|
||||
*
|
||||
* @param string $value A single quoted string
|
||||
*
|
||||
* @return string The unescaped string
|
||||
*/
|
||||
public function unescapeSingleQuotedString(string $value) : string
|
||||
{
|
||||
return \str_replace('\'\'', '\'', $value);
|
||||
}
|
||||
/**
|
||||
* Unescapes a double quoted string.
|
||||
*
|
||||
* @param string $value A double quoted string
|
||||
*
|
||||
* @return string The unescaped string
|
||||
*/
|
||||
public function unescapeDoubleQuotedString(string $value) : string
|
||||
{
|
||||
$callback = function ($match) {
|
||||
return $this->unescapeCharacter($match[0]);
|
||||
};
|
||||
// evaluate the string
|
||||
return \preg_replace_callback('/' . self::REGEX_ESCAPED_CHARACTER . '/u', $callback, $value);
|
||||
}
|
||||
/**
|
||||
* Unescapes a character that was found in a double-quoted string.
|
||||
*
|
||||
* @param string $value An escaped character
|
||||
*
|
||||
* @return string The unescaped character
|
||||
*/
|
||||
private function unescapeCharacter(string $value) : string
|
||||
{
|
||||
switch ($value[1]) {
|
||||
case '0':
|
||||
return "\0";
|
||||
case 'a':
|
||||
return "\7";
|
||||
case 'b':
|
||||
return "\10";
|
||||
case 't':
|
||||
return "\t";
|
||||
case "\t":
|
||||
return "\t";
|
||||
case 'n':
|
||||
return "\n";
|
||||
case 'v':
|
||||
return "\v";
|
||||
case 'f':
|
||||
return "\f";
|
||||
case 'r':
|
||||
return "\r";
|
||||
case 'e':
|
||||
return "\33";
|
||||
case ' ':
|
||||
return ' ';
|
||||
case '"':
|
||||
return '"';
|
||||
case '/':
|
||||
return '/';
|
||||
case '\\':
|
||||
return '\\';
|
||||
case 'N':
|
||||
// U+0085 NEXT LINE
|
||||
return "
";
|
||||
case '_':
|
||||
// U+00A0 NO-BREAK SPACE
|
||||
return " ";
|
||||
case 'L':
|
||||
// U+2028 LINE SEPARATOR
|
||||
return "
";
|
||||
case 'P':
|
||||
// U+2029 PARAGRAPH SEPARATOR
|
||||
return "
";
|
||||
case 'x':
|
||||
return self::utf8chr(\hexdec(\substr($value, 2, 2)));
|
||||
case 'u':
|
||||
return self::utf8chr(\hexdec(\substr($value, 2, 4)));
|
||||
case 'U':
|
||||
return self::utf8chr(\hexdec(\substr($value, 2, 8)));
|
||||
default:
|
||||
throw new \RectorPrefix20210512\Symfony\Component\Yaml\Exception\ParseException(\sprintf('Found unknown escape character "%s".', $value));
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Get the UTF-8 character for the given code point.
|
||||
*/
|
||||
private static function utf8chr(int $c) : string
|
||||
{
|
||||
if (0x80 > ($c %= 0x200000)) {
|
||||
return \chr($c);
|
||||
}
|
||||
if (0x800 > $c) {
|
||||
return \chr(0xc0 | $c >> 6) . \chr(0x80 | $c & 0x3f);
|
||||
}
|
||||
if (0x10000 > $c) {
|
||||
return \chr(0xe0 | $c >> 12) . \chr(0x80 | $c >> 6 & 0x3f) . \chr(0x80 | $c & 0x3f);
|
||||
}
|
||||
return \chr(0xf0 | $c >> 18) . \chr(0x80 | $c >> 12 & 0x3f) . \chr(0x80 | $c >> 6 & 0x3f) . \chr(0x80 | $c & 0x3f);
|
||||
}
|
||||
}
|
94
vendor/symfony/yaml/Yaml.php
vendored
Normal file
94
vendor/symfony/yaml/Yaml.php
vendored
Normal file
|
@ -0,0 +1,94 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Symfony package.
|
||||
*
|
||||
* (c) Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
namespace RectorPrefix20210512\Symfony\Component\Yaml;
|
||||
|
||||
use RectorPrefix20210512\Symfony\Component\Yaml\Exception\ParseException;
|
||||
/**
|
||||
* Yaml offers convenience methods to load and dump YAML.
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* @final
|
||||
*/
|
||||
class Yaml
|
||||
{
|
||||
public const DUMP_OBJECT = 1;
|
||||
public const PARSE_EXCEPTION_ON_INVALID_TYPE = 2;
|
||||
public const PARSE_OBJECT = 4;
|
||||
public const PARSE_OBJECT_FOR_MAP = 8;
|
||||
public const DUMP_EXCEPTION_ON_INVALID_TYPE = 16;
|
||||
public const PARSE_DATETIME = 32;
|
||||
public const DUMP_OBJECT_AS_MAP = 64;
|
||||
public const DUMP_MULTI_LINE_LITERAL_BLOCK = 128;
|
||||
public const PARSE_CONSTANT = 256;
|
||||
public const PARSE_CUSTOM_TAGS = 512;
|
||||
public const DUMP_EMPTY_ARRAY_AS_SEQUENCE = 1024;
|
||||
public const DUMP_NULL_AS_TILDE = 2048;
|
||||
/**
|
||||
* Parses a YAML file into a PHP value.
|
||||
*
|
||||
* Usage:
|
||||
*
|
||||
* $array = Yaml::parseFile('config.yml');
|
||||
* print_r($array);
|
||||
*
|
||||
* @param string $filename The path to the YAML file to be parsed
|
||||
* @param int $flags A bit field of PARSE_* constants to customize the YAML parser behavior
|
||||
*
|
||||
* @return mixed The YAML converted to a PHP value
|
||||
*
|
||||
* @throws ParseException If the file could not be read or the YAML is not valid
|
||||
*/
|
||||
public static function parseFile(string $filename, int $flags = 0)
|
||||
{
|
||||
$yaml = new \RectorPrefix20210512\Symfony\Component\Yaml\Parser();
|
||||
return $yaml->parseFile($filename, $flags);
|
||||
}
|
||||
/**
|
||||
* Parses YAML into a PHP value.
|
||||
*
|
||||
* Usage:
|
||||
* <code>
|
||||
* $array = Yaml::parse(file_get_contents('config.yml'));
|
||||
* print_r($array);
|
||||
* </code>
|
||||
*
|
||||
* @param string $input A string containing YAML
|
||||
* @param int $flags A bit field of PARSE_* constants to customize the YAML parser behavior
|
||||
*
|
||||
* @return mixed The YAML converted to a PHP value
|
||||
*
|
||||
* @throws ParseException If the YAML is not valid
|
||||
*/
|
||||
public static function parse(string $input, int $flags = 0)
|
||||
{
|
||||
$yaml = new \RectorPrefix20210512\Symfony\Component\Yaml\Parser();
|
||||
return $yaml->parse($input, $flags);
|
||||
}
|
||||
/**
|
||||
* Dumps a PHP value to a YAML string.
|
||||
*
|
||||
* The dump method, when supplied with an array, will do its best
|
||||
* to convert the array into friendly YAML.
|
||||
*
|
||||
* @param mixed $input The PHP value
|
||||
* @param int $inline The level where you switch to inline YAML
|
||||
* @param int $indent The amount of spaces to use for indentation of nested nodes
|
||||
* @param int $flags A bit field of DUMP_* constants to customize the dumped YAML string
|
||||
*
|
||||
* @return string A YAML string representing the original PHP value
|
||||
*/
|
||||
public static function dump($input, int $inline = 2, int $indent = 4, int $flags = 0) : string
|
||||
{
|
||||
$yaml = new \RectorPrefix20210512\Symfony\Component\Yaml\Dumper($indent);
|
||||
return $yaml->dump($input, $inline, 0, $flags);
|
||||
}
|
||||
}
|
44
vendor/symfony/yaml/composer.json
vendored
Normal file
44
vendor/symfony/yaml/composer.json
vendored
Normal file
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
"name": "symfony\/yaml",
|
||||
"type": "library",
|
||||
"description": "Loads and dumps YAML files",
|
||||
"keywords": [],
|
||||
"homepage": "https:\/\/symfony.com",
|
||||
"license": "MIT",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Fabien Potencier",
|
||||
"email": "fabien@symfony.com"
|
||||
},
|
||||
{
|
||||
"name": "Symfony Community",
|
||||
"homepage": "https:\/\/symfony.com\/contributors"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=7.2.5",
|
||||
"symfony\/deprecation-contracts": "^2.1",
|
||||
"symfony\/polyfill-ctype": "~1.8"
|
||||
},
|
||||
"require-dev": {
|
||||
"symfony\/console": "^4.4|^5.0"
|
||||
},
|
||||
"conflict": {
|
||||
"symfony\/console": "<4.4"
|
||||
},
|
||||
"suggest": {
|
||||
"symfony\/console": "For validating YAML files using the lint command"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"RectorPrefix20210512\\Symfony\\Component\\Yaml\\": ""
|
||||
},
|
||||
"exclude-from-classmap": [
|
||||
"\/Tests\/"
|
||||
]
|
||||
},
|
||||
"bin": [
|
||||
"Resources\/bin\/yaml-lint"
|
||||
],
|
||||
"minimum-stability": "dev"
|
||||
}
|
6
vendor/symplify/astral/composer.json
vendored
6
vendor/symplify/astral/composer.json
vendored
|
@ -6,13 +6,13 @@
|
|||
"php": ">=7.3",
|
||||
"nette\/utils": "^3.2",
|
||||
"symfony\/dependency-injection": "^5.2",
|
||||
"symplify\/autowire-array-parameter": "^9.3.6",
|
||||
"symplify\/autowire-array-parameter": "^9.3.10",
|
||||
"symfony\/http-kernel": "^4.4|^5.2",
|
||||
"nikic\/php-parser": "4.10.5",
|
||||
"symplify\/package-builder": "^9.3.6"
|
||||
"symplify\/package-builder": "^9.3.10"
|
||||
},
|
||||
"require-dev": {
|
||||
"symplify\/easy-testing": "^9.3.6",
|
||||
"symplify\/easy-testing": "^9.3.10",
|
||||
"phpunit\/phpunit": "^9.5"
|
||||
},
|
||||
"autoload": {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"php": ">=7.3",
|
||||
"nette\/utils": "^3.2",
|
||||
"symfony\/dependency-injection": "^5.2",
|
||||
"symplify\/package-builder": "^9.3.6"
|
||||
"symplify\/package-builder": "^9.3.10"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit\/phpunit": "^9.5"
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
"symfony\/dependency-injection": "^5.2",
|
||||
"symfony\/filesystem": "^4.4|^5.2",
|
||||
"symfony\/http-kernel": "^4.4|^5.2",
|
||||
"symplify\/package-builder": "^9.3.6",
|
||||
"symplify\/smart-file-system": "^9.3.6"
|
||||
"symplify\/package-builder": "^9.3.10",
|
||||
"symplify\/smart-file-system": "^9.3.10"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit\/phpunit": "^9.5"
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"sebastian\/diff": "^3.0|^4.0",
|
||||
"symfony\/dependency-injection": "^5.2",
|
||||
"symfony\/http-kernel": "^4.4|^5.2",
|
||||
"symplify\/package-builder": "^9.3.6"
|
||||
"symplify\/package-builder": "^9.3.10"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit\/phpunit": "^9.5"
|
||||
|
|
|
@ -6,11 +6,11 @@
|
|||
"php": ">=7.3",
|
||||
"symfony\/dependency-injection": "^5.2",
|
||||
"symfony\/console": "^4.4|^5.2",
|
||||
"symplify\/symplify-kernel": "^9.3.6"
|
||||
"symplify\/symplify-kernel": "^9.3.10"
|
||||
},
|
||||
"require-dev": {
|
||||
"symfony\/http-kernel": "^4.4|^5.2",
|
||||
"symplify\/package-builder": "^9.3.6",
|
||||
"symplify\/package-builder": "^9.3.10",
|
||||
"phpunit\/phpunit": "^9.5"
|
||||
},
|
||||
"autoload": {
|
||||
|
|
8
vendor/symplify/easy-testing/composer.json
vendored
8
vendor/symplify/easy-testing/composer.json
vendored
|
@ -13,10 +13,10 @@
|
|||
"symfony\/http-kernel": "^4.4|^5.2",
|
||||
"symfony\/console": "^4.4|^5.2",
|
||||
"symfony\/dependency-injection": "^5.2",
|
||||
"symplify\/package-builder": "^9.3.6",
|
||||
"symplify\/console-package-builder": "^9.3.6",
|
||||
"symplify\/smart-file-system": "^9.3.6",
|
||||
"symplify\/symplify-kernel": "^9.3.6"
|
||||
"symplify\/package-builder": "^9.3.10",
|
||||
"symplify\/console-package-builder": "^9.3.10",
|
||||
"symplify\/smart-file-system": "^9.3.10",
|
||||
"symplify\/symplify-kernel": "^9.3.10"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit\/phpunit": "^9.5"
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
"symfony\/dependency-injection": "^5.2",
|
||||
"symfony\/finder": "^4.4|^5.2",
|
||||
"symfony\/http-kernel": "^4.4|^5.2",
|
||||
"symplify\/symplify-kernel": "^9.3.6",
|
||||
"symplify\/easy-testing": "^9.3.6",
|
||||
"symplify\/symplify-kernel": "^9.3.10",
|
||||
"symplify\/easy-testing": "^9.3.10",
|
||||
"nette\/neon": "^3.2"
|
||||
},
|
||||
"require-dev": {
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
"symfony\/console": "^4.4|^5.2",
|
||||
"symfony\/finder": "^4.4|^5.2",
|
||||
"symfony\/filesystem": "^4.4|^5.2",
|
||||
"symplify\/symplify-kernel": "^9.3.6",
|
||||
"symplify\/smart-file-system": "^9.3.6"
|
||||
"symplify\/symplify-kernel": "^9.3.10",
|
||||
"symplify\/smart-file-system": "^9.3.10"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit\/phpunit": "^9.5"
|
||||
|
|
|
@ -8,11 +8,11 @@
|
|||
"symfony\/dependency-injection": "^5.2",
|
||||
"symfony\/config": "^4.4|^5.2",
|
||||
"symfony\/http-kernel": "^4.4|^5.2",
|
||||
"symplify\/package-builder": "^9.3.6"
|
||||
"symplify\/package-builder": "^9.3.10"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit\/phpunit": "^9.5",
|
||||
"symplify\/easy-testing": "^9.3.6"
|
||||
"symplify\/easy-testing": "^9.3.10"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
|
6
vendor/symplify/skipper/composer.json
vendored
6
vendor/symplify/skipper/composer.json
vendored
|
@ -9,9 +9,9 @@
|
|||
"symfony\/dependency-injection": "^5.2",
|
||||
"symfony\/finder": "^4.4|^5.2",
|
||||
"symfony\/filesystem": "^4.4|^5.2",
|
||||
"symplify\/package-builder": "^9.3.6",
|
||||
"symplify\/symplify-kernel": "^9.3.6",
|
||||
"symplify\/smart-file-system": "^9.3.6"
|
||||
"symplify\/package-builder": "^9.3.10",
|
||||
"symplify\/symplify-kernel": "^9.3.10",
|
||||
"symplify\/smart-file-system": "^9.3.10"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit\/phpunit": "^9.5"
|
||||
|
|
|
@ -7,10 +7,10 @@
|
|||
"symfony\/console": "^4.4|^5.2",
|
||||
"symfony\/http-kernel": "^4.4|^5.2",
|
||||
"symfony\/dependency-injection": "^5.2",
|
||||
"symplify\/smart-file-system": "^9.3.6",
|
||||
"symplify\/composer-json-manipulator": "^9.3.6",
|
||||
"symplify\/autowire-array-parameter": "^9.3.6",
|
||||
"symplify\/package-builder": "^9.3.6"
|
||||
"symplify\/smart-file-system": "^9.3.10",
|
||||
"symplify\/composer-json-manipulator": "^9.3.10",
|
||||
"symplify\/autowire-array-parameter": "^9.3.10",
|
||||
"symplify\/package-builder": "^9.3.10"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit\/phpunit": "^9.5"
|
||||
|
|
|
@ -20,7 +20,8 @@ final class KernelUniqueHasher
|
|||
{
|
||||
$this->ensureIsNotGenericKernelClass($kernelClass);
|
||||
$shortClassName = (string) \RectorPrefix20210512\Nette\Utils\Strings::after($kernelClass, '\\', -1);
|
||||
return $this->stringsConverter->camelCaseToGlue($shortClassName, '_');
|
||||
$userSpecificShortClassName = $shortClassName . \get_current_user();
|
||||
return $this->stringsConverter->camelCaseToGlue($userSpecificShortClassName, '_');
|
||||
}
|
||||
private function ensureIsNotGenericKernelClass(string $kernelClass) : void
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user