From 615b34d7a031c8c75fdac9280edd579c08506a4d Mon Sep 17 00:00:00 2001 From: Netkas Date: Thu, 11 Aug 2022 14:13:47 -0400 Subject: [PATCH] Refactored namespace for Symfony/polyfill-ctype --- src/autoload/autoload.php | 7 ++-- .../Symfony/polyfill-ctype/Ctype.php | 2 +- .../ThirdParty/Symfony/polyfill-ctype/VERSION | 1 + .../Symfony/polyfill-ctype/bootstrap.php | 2 +- .../Symfony/polyfill-ctype/bootstrap80.php | 2 +- .../Symfony/polyfill-ctype/composer.json | 41 +++++++++++++++++++ .../Symfony/polyfill-mbstring/Mbstring.php | 2 +- 7 files changed, 50 insertions(+), 7 deletions(-) create mode 100644 src/ncc/ThirdParty/Symfony/polyfill-ctype/VERSION create mode 100644 src/ncc/ThirdParty/Symfony/polyfill-ctype/composer.json diff --git a/src/autoload/autoload.php b/src/autoload/autoload.php index 3e117aa..ce8024d 100644 --- a/src/autoload/autoload.php +++ b/src/autoload/autoload.php @@ -14,9 +14,10 @@ $target_files = [ __DIR__ . DIRECTORY_SEPARATOR . 'autoload_spl.php', $third_party_path . 'defuse' . DIRECTORY_SEPARATOR . 'php-encryption' . DIRECTORY_SEPARATOR . 'autoload_spl.php', - $third_party_path . 'Symfony' . DIRECTORY_SEPARATOR . 'polyfill-ctype' . DIRECTORY_SEPARATOR . 'autoload_spl.php', - $third_party_path . 'Symfony' . DIRECTORY_SEPARATOR . 'polyfill-mbstring' . DIRECTORY_SEPARATOR . 'autoload_spl.php', - $third_party_path . 'Symfony' . DIRECTORY_SEPARATOR . 'polyfill-mbstring' . DIRECTORY_SEPARATOR . 'bootstrap.php', + $third_party_path . 'Symfony' . DIRECTORY_SEPARATOR . 'polyfill_ctype' . DIRECTORY_SEPARATOR . 'autoload_spl.php', + $third_party_path . 'Symfony' . DIRECTORY_SEPARATOR . 'polyfill_ctype' . DIRECTORY_SEPARATOR . 'bootstrap.php', + $third_party_path . 'Symfony' . DIRECTORY_SEPARATOR . 'polyfill_mbstring' . DIRECTORY_SEPARATOR . 'autoload_spl.php', + $third_party_path . 'Symfony' . DIRECTORY_SEPARATOR . 'polyfill_mbstring' . DIRECTORY_SEPARATOR . 'bootstrap.php', $third_party_path . 'Symfony' . DIRECTORY_SEPARATOR . 'Process' . DIRECTORY_SEPARATOR . 'autoload_spl.php', $third_party_path . 'Symfony' . DIRECTORY_SEPARATOR . 'uid' . DIRECTORY_SEPARATOR . 'autoload_spl.php', ]; diff --git a/src/ncc/ThirdParty/Symfony/polyfill-ctype/Ctype.php b/src/ncc/ThirdParty/Symfony/polyfill-ctype/Ctype.php index efebf65..52ccc99 100644 --- a/src/ncc/ThirdParty/Symfony/polyfill-ctype/Ctype.php +++ b/src/ncc/ThirdParty/Symfony/polyfill-ctype/Ctype.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace ncc\Symfony\Polyfill\Ctype; +namespace ncc\ThirdParty\Symfony\ctype; /** * Ctype implementation through regex. diff --git a/src/ncc/ThirdParty/Symfony/polyfill-ctype/VERSION b/src/ncc/ThirdParty/Symfony/polyfill-ctype/VERSION new file mode 100644 index 0000000..bc58404 --- /dev/null +++ b/src/ncc/ThirdParty/Symfony/polyfill-ctype/VERSION @@ -0,0 +1 @@ +1.26.0 \ No newline at end of file diff --git a/src/ncc/ThirdParty/Symfony/polyfill-ctype/bootstrap.php b/src/ncc/ThirdParty/Symfony/polyfill-ctype/bootstrap.php index 1cc060b..041bf98 100644 --- a/src/ncc/ThirdParty/Symfony/polyfill-ctype/bootstrap.php +++ b/src/ncc/ThirdParty/Symfony/polyfill-ctype/bootstrap.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -use ncc\Symfony\Polyfill\Ctype as p; +use ncc\ThirdParty\Symfony\polyfill as p; if (\PHP_VERSION_ID >= 80000) { return require __DIR__.'/bootstrap80.php'; diff --git a/src/ncc/ThirdParty/Symfony/polyfill-ctype/bootstrap80.php b/src/ncc/ThirdParty/Symfony/polyfill-ctype/bootstrap80.php index 159f9ab..6d0136c 100644 --- a/src/ncc/ThirdParty/Symfony/polyfill-ctype/bootstrap80.php +++ b/src/ncc/ThirdParty/Symfony/polyfill-ctype/bootstrap80.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -use ncc\Symfony\Polyfill\Ctype as p; +use ncc\ThirdParty\Symfony\polyfill as p; if (!function_exists('ctype_alnum')) { function ctype_alnum(mixed $text): bool { return p\Ctype::ctype_alnum($text); } diff --git a/src/ncc/ThirdParty/Symfony/polyfill-ctype/composer.json b/src/ncc/ThirdParty/Symfony/polyfill-ctype/composer.json new file mode 100644 index 0000000..ee5c931 --- /dev/null +++ b/src/ncc/ThirdParty/Symfony/polyfill-ctype/composer.json @@ -0,0 +1,41 @@ +{ + "name": "symfony/polyfill-ctype", + "type": "library", + "description": "Symfony polyfill for ctype functions", + "keywords": ["polyfill", "compatibility", "portable", "ctype"], + "homepage": "https://symfony.com", + "license": "MIT", + "authors": [ + { + "name": "Gert de Pagter", + "email": "BackEndTea@gmail.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "require": { + "php": ">=7.1" + }, + "provide": { + "ext-ctype": "*" + }, + "autoload": { + "psr-4": { "Symfony\\Polyfill\\Ctype\\": "" }, + "files": [ "bootstrap.php" ] + }, + "suggest": { + "ext-ctype": "For best performance" + }, + "minimum-stability": "dev", + "extra": { + "branch-alias": { + "dev-main": "1.26-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + } +} diff --git a/src/ncc/ThirdParty/Symfony/polyfill-mbstring/Mbstring.php b/src/ncc/ThirdParty/Symfony/polyfill-mbstring/Mbstring.php index 538da3a..a5ae8c5 100644 --- a/src/ncc/ThirdParty/Symfony/polyfill-mbstring/Mbstring.php +++ b/src/ncc/ThirdParty/Symfony/polyfill-mbstring/Mbstring.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace ncc\ThirdParty\Symfony\mbstring; +namespace ncc\ThirdParty\Symfony\polyfill_mbstring; /** * Partial mbstring implementation in PHP, iconv based, UTF-8 centric.