Changeset 3008865
- Timestamp:
- 12/12/2023 03:03:01 PM (2 years ago)
- Location:
- dhl-for-woocommerce
- Files:
-
- 3 deleted
- 11 edited
- 1 copied
-
tags/3.6.1 (copied) (copied from dhl-for-woocommerce/tags/3.6.0)
-
tags/3.6.1/includes/pr-dhl-api/class-pr-dhl-api-paket.php (modified) (1 diff)
-
tags/3.6.1/pr-dhl-woocommerce.php (modified) (1 diff)
-
tags/3.6.1/readme.txt (modified) (2 diffs)
-
tags/3.6.1/vendor/autoload.php (modified) (1 diff)
-
tags/3.6.1/vendor/composer/ClassLoader.php (modified) (19 diffs)
-
tags/3.6.1/vendor/composer/InstalledVersions.php (deleted)
-
tags/3.6.1/vendor/composer/autoload_classmap.php (modified) (2 diffs)
-
tags/3.6.1/vendor/composer/autoload_namespaces.php (modified) (1 diff)
-
tags/3.6.1/vendor/composer/autoload_psr4.php (modified) (1 diff)
-
tags/3.6.1/vendor/composer/autoload_real.php (modified) (3 diffs)
-
tags/3.6.1/vendor/composer/autoload_static.php (modified) (4 diffs)
-
tags/3.6.1/vendor/composer/installed.json (deleted)
-
tags/3.6.1/vendor/composer/installed.php (deleted)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
dhl-for-woocommerce/tags/3.6.1/includes/pr-dhl-api/class-pr-dhl-api-paket.php
r3007982 r3008865 7 7 use PR\DHL\REST_API\Parcel_DE\Item_Info; 8 8 use PR\DHL\Utils\API_Utils; 9 use PR\DHL\REST_API\Parcel_DE_MyAccount; 9 10 10 11 class PR_DHL_API_Paket extends PR_DHL_API { -
dhl-for-woocommerce/tags/3.6.1/pr-dhl-woocommerce.php
r3007982 r3008865 1025 1025 $dhl_obj = $this->get_dhl_factory(); 1026 1026 1027 if( ! $dhl_obj->is_dhl_paket() ) { 1028 return; 1029 } 1030 1027 1031 $pwd_expiration = $dhl_obj->get_dhl_myaccount_pwd_expiration(); 1028 1032 -
dhl-for-woocommerce/tags/3.6.1/readme.txt
r3007982 r3008865 6 6 Requires PHP: 5.6 7 7 Tested up to: 6.3 8 Stable tag: 3.6. 08 Stable tag: 3.6.1 9 9 WC requires at least: 3.0 10 10 WC tested up to: 8.2 … … 76 76 77 77 == Changelog == 78 79 = 3.6.1 = 80 * DHL Paket: Fix MyAccount files crash due to namespacing 78 81 79 82 = 3.6.0 = -
dhl-for-woocommerce/tags/3.6.1/vendor/autoload.php
r2799831 r3008865 3 3 // autoload.php @generated by Composer 4 4 5 if (PHP_VERSION_ID < 50600) {6 echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;7 exit(1);8 }9 10 5 require_once __DIR__ . '/composer/autoload_real.php'; 11 6 12 return ComposerAutoloaderInit 1cd980acb359f8dd1a4361ab925b2d50::getLoader();7 return ComposerAutoloaderInitf157335b37588c2d91df9d32b4934c2d::getLoader(); -
dhl-for-woocommerce/tags/3.6.1/vendor/composer/ClassLoader.php
r2799831 r3008865 38 38 * @author Fabien Potencier <fabien@symfony.com> 39 39 * @author Jordi Boggiano <j.boggiano@seld.be> 40 * @see http s://www.php-fig.org/psr/psr-0/41 * @see http s://www.php-fig.org/psr/psr-4/40 * @see http://www.php-fig.org/psr/psr-0/ 41 * @see http://www.php-fig.org/psr/psr-4/ 42 42 */ 43 43 class ClassLoader 44 44 { 45 /** @var ?string */46 private $vendorDir;47 48 45 // PSR-4 49 /**50 * @var array[]51 * @psalm-var array<string, array<string, int>>52 */53 46 private $prefixLengthsPsr4 = array(); 54 /**55 * @var array[]56 * @psalm-var array<string, array<int, string>>57 */58 47 private $prefixDirsPsr4 = array(); 59 /**60 * @var array[]61 * @psalm-var array<string, string>62 */63 48 private $fallbackDirsPsr4 = array(); 64 49 65 50 // PSR-0 66 /**67 * @var array[]68 * @psalm-var array<string, array<string, string[]>>69 */70 51 private $prefixesPsr0 = array(); 71 /**72 * @var array[]73 * @psalm-var array<string, string>74 */75 52 private $fallbackDirsPsr0 = array(); 76 53 77 /** @var bool */78 54 private $useIncludePath = false; 79 80 /**81 * @var string[]82 * @psalm-var array<string, string>83 */84 55 private $classMap = array(); 85 86 /** @var bool */87 56 private $classMapAuthoritative = false; 88 89 /**90 * @var bool[]91 * @psalm-var array<string, bool>92 */93 57 private $missingClasses = array(); 94 95 /** @var ?string */96 58 private $apcuPrefix; 97 59 98 /**99 * @var self[]100 */101 private static $registeredLoaders = array();102 103 /**104 * @param ?string $vendorDir105 */106 public function __construct($vendorDir = null)107 {108 $this->vendorDir = $vendorDir;109 }110 111 /**112 * @return string[]113 */114 60 public function getPrefixes() 115 61 { 116 62 if (!empty($this->prefixesPsr0)) { 117 return call_user_func_array('array_merge', array_values($this->prefixesPsr0));63 return call_user_func_array('array_merge', $this->prefixesPsr0); 118 64 } 119 65 … … 121 67 } 122 68 123 /**124 * @return array[]125 * @psalm-return array<string, array<int, string>>126 */127 69 public function getPrefixesPsr4() 128 70 { … … 130 72 } 131 73 132 /**133 * @return array[]134 * @psalm-return array<string, string>135 */136 74 public function getFallbackDirs() 137 75 { … … 139 77 } 140 78 141 /**142 * @return array[]143 * @psalm-return array<string, string>144 */145 79 public function getFallbackDirsPsr4() 146 80 { … … 148 82 } 149 83 150 /**151 * @return string[] Array of classname => path152 * @psalm-return array<string, string>153 */154 84 public function getClassMap() 155 85 { … … 158 88 159 89 /** 160 * @param string[] $classMap Class to filename map 161 * @psalm-param array<string, string> $classMap 162 * 163 * @return void 90 * @param array $classMap Class to filename map 164 91 */ 165 92 public function addClassMap(array $classMap) … … 176 103 * appending or prepending to the ones previously set for this prefix. 177 104 * 178 * @param string $prefix The prefix 179 * @param string[]|string $paths The PSR-0 root directories 180 * @param bool $prepend Whether to prepend the directories 181 * 182 * @return void 105 * @param string $prefix The prefix 106 * @param array|string $paths The PSR-0 root directories 107 * @param bool $prepend Whether to prepend the directories 183 108 */ 184 109 public function add($prefix, $paths, $prepend = false) … … 223 148 * appending or prepending to the ones previously set for this namespace. 224 149 * 225 * @param string $prefix The prefix/namespace, with trailing '\\'226 * @param string[]|string $paths The PSR-4 base directories227 * @param bool $prepend Whether to prepend the directories150 * @param string $prefix The prefix/namespace, with trailing '\\' 151 * @param array|string $paths The PSR-4 base directories 152 * @param bool $prepend Whether to prepend the directories 228 153 * 229 154 * @throws \InvalidArgumentException 230 *231 * @return void232 155 */ 233 156 public function addPsr4($prefix, $paths, $prepend = false) … … 273 196 * replacing any others previously set for this prefix. 274 197 * 275 * @param string $prefix The prefix 276 * @param string[]|string $paths The PSR-0 base directories 277 * 278 * @return void 198 * @param string $prefix The prefix 199 * @param array|string $paths The PSR-0 base directories 279 200 */ 280 201 public function set($prefix, $paths) … … 291 212 * replacing any others previously set for this namespace. 292 213 * 293 * @param string $prefix The prefix/namespace, with trailing '\\'294 * @param string[]|string $paths The PSR-4 base directories214 * @param string $prefix The prefix/namespace, with trailing '\\' 215 * @param array|string $paths The PSR-4 base directories 295 216 * 296 217 * @throws \InvalidArgumentException 297 *298 * @return void299 218 */ 300 219 public function setPsr4($prefix, $paths) … … 316 235 * 317 236 * @param bool $useIncludePath 318 *319 * @return void320 237 */ 321 238 public function setUseIncludePath($useIncludePath) … … 340 257 * 341 258 * @param bool $classMapAuthoritative 342 *343 * @return void344 259 */ 345 260 public function setClassMapAuthoritative($classMapAuthoritative) … … 362 277 * 363 278 * @param string|null $apcuPrefix 364 *365 * @return void366 279 */ 367 280 public function setApcuPrefix($apcuPrefix) 368 281 { 369 $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;282 $this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null; 370 283 } 371 284 … … 384 297 * 385 298 * @param bool $prepend Whether to prepend the autoloader or not 386 *387 * @return void388 299 */ 389 300 public function register($prepend = false) 390 301 { 391 302 spl_autoload_register(array($this, 'loadClass'), true, $prepend); 392 393 if (null === $this->vendorDir) {394 return;395 }396 397 if ($prepend) {398 self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders;399 } else {400 unset(self::$registeredLoaders[$this->vendorDir]);401 self::$registeredLoaders[$this->vendorDir] = $this;402 }403 303 } 404 304 405 305 /** 406 306 * Unregisters this instance as an autoloader. 407 *408 * @return void409 307 */ 410 308 public function unregister() 411 309 { 412 310 spl_autoload_unregister(array($this, 'loadClass')); 413 414 if (null !== $this->vendorDir) {415 unset(self::$registeredLoaders[$this->vendorDir]);416 }417 311 } 418 312 … … 421 315 * 422 316 * @param string $class The name of the class 423 * @return true|null True if loaded, null otherwise317 * @return bool|null True if loaded, null otherwise 424 318 */ 425 319 public function loadClass($class) … … 430 324 return true; 431 325 } 432 433 return null;434 326 } 435 327 … … 476 368 } 477 369 478 /**479 * Returns the currently registered loaders indexed by their corresponding vendor directories.480 *481 * @return self[]482 */483 public static function getRegisteredLoaders()484 {485 return self::$registeredLoaders;486 }487 488 /**489 * @param string $class490 * @param string $ext491 * @return string|false492 */493 370 private function findFileWithExtension($class, $ext) 494 371 { … … 501 378 while (false !== $lastPos = strrpos($subPath, '\\')) { 502 379 $subPath = substr($subPath, 0, $lastPos); 503 $search = $subPath .'\\';380 $search = $subPath.'\\'; 504 381 if (isset($this->prefixDirsPsr4[$search])) { 505 382 $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); … … 562 439 * 563 440 * Prevents access to $this/self from included files. 564 *565 * @param string $file566 * @return void567 * @private568 441 */ 569 442 function includeFile($file) -
dhl-for-woocommerce/tags/3.6.1/vendor/composer/autoload_classmap.php
r2931374 r3008865 3 3 // autoload_classmap.php @generated by Composer 4 4 5 $vendorDir = dirname( __DIR__);5 $vendorDir = dirname(dirname(__FILE__)); 6 6 $baseDir = dirname($vendorDir); 7 7 8 8 return array( 9 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',10 9 'PR\\DHL\\REST_API\\API_Client' => $baseDir . '/includes/REST_API/API_Client.php', 11 10 'PR\\DHL\\REST_API\\DHL_eCS_Asia\\Auth' => $baseDir . '/includes/REST_API/DHL_eCS_Asia/Auth.php', … … 26 25 'PR\\DHL\\REST_API\\Parcel_DE\\Client' => $baseDir . '/includes/REST_API/Parcel_DE/Client.php', 27 26 'PR\\DHL\\REST_API\\Parcel_DE\\Item_Info' => $baseDir . '/includes/REST_API/Parcel_DE/Item_Info.php', 27 'PR\\DHL\\REST_API\\Parcel_DE_MyAccount\\Auth' => $baseDir . '/includes/REST_API/Parcel_DE_MyAccount/Auth.php', 28 'PR\\DHL\\REST_API\\Parcel_DE_MyAccount\\Client' => $baseDir . '/includes/REST_API/Parcel_DE_MyAccount/Client.php', 29 'PR\\DHL\\REST_API\\Parcel_DE_MyAccount\\Item_Info' => $baseDir . '/includes/REST_API/Parcel_DE_MyAccount/Item_Info.php', 28 30 'PR\\DHL\\REST_API\\Request' => $baseDir . '/includes/REST_API/Request.php', 29 31 'PR\\DHL\\REST_API\\Response' => $baseDir . '/includes/REST_API/Response.php', -
dhl-for-woocommerce/tags/3.6.1/vendor/composer/autoload_namespaces.php
r2799831 r3008865 3 3 // autoload_namespaces.php @generated by Composer 4 4 5 $vendorDir = dirname( __DIR__);5 $vendorDir = dirname(dirname(__FILE__)); 6 6 $baseDir = dirname($vendorDir); 7 7 -
dhl-for-woocommerce/tags/3.6.1/vendor/composer/autoload_psr4.php
r2799831 r3008865 3 3 // autoload_psr4.php @generated by Composer 4 4 5 $vendorDir = dirname( __DIR__);5 $vendorDir = dirname(dirname(__FILE__)); 6 6 $baseDir = dirname($vendorDir); 7 7 -
dhl-for-woocommerce/tags/3.6.1/vendor/composer/autoload_real.php
r2799831 r3008865 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 1cd980acb359f8dd1a4361ab925b2d505 class ComposerAutoloaderInitf157335b37588c2d91df9d32b4934c2d 6 6 { 7 7 private static $loader; … … 14 14 } 15 15 16 /**17 * @return \Composer\Autoload\ClassLoader18 */19 16 public static function getLoader() 20 17 { … … 23 20 } 24 21 25 spl_autoload_register(array('ComposerAutoloaderInit 1cd980acb359f8dd1a4361ab925b2d50', 'loadClassLoader'), true, true);26 self::$loader = $loader = new \Composer\Autoload\ClassLoader( \dirname(__DIR__));27 spl_autoload_unregister(array('ComposerAutoloaderInit 1cd980acb359f8dd1a4361ab925b2d50', 'loadClassLoader'));22 spl_autoload_register(array('ComposerAutoloaderInitf157335b37588c2d91df9d32b4934c2d', 'loadClassLoader'), true, true); 23 self::$loader = $loader = new \Composer\Autoload\ClassLoader(); 24 spl_autoload_unregister(array('ComposerAutoloaderInitf157335b37588c2d91df9d32b4934c2d', 'loadClassLoader')); 28 25 29 require __DIR__ . '/autoload_static.php'; 30 call_user_func(\Composer\Autoload\ComposerStaticInit1cd980acb359f8dd1a4361ab925b2d50::getInitializer($loader)); 26 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); 27 if ($useStaticLoader) { 28 require_once __DIR__ . '/autoload_static.php'; 29 30 call_user_func(\Composer\Autoload\ComposerStaticInitf157335b37588c2d91df9d32b4934c2d::getInitializer($loader)); 31 } else { 32 $map = require __DIR__ . '/autoload_namespaces.php'; 33 foreach ($map as $namespace => $path) { 34 $loader->set($namespace, $path); 35 } 36 37 $map = require __DIR__ . '/autoload_psr4.php'; 38 foreach ($map as $namespace => $path) { 39 $loader->setPsr4($namespace, $path); 40 } 41 42 $classMap = require __DIR__ . '/autoload_classmap.php'; 43 if ($classMap) { 44 $loader->addClassMap($classMap); 45 } 46 } 31 47 32 48 $loader->register(true); -
dhl-for-woocommerce/tags/3.6.1/vendor/composer/autoload_static.php
r2931374 r3008865 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 1cd980acb359f8dd1a4361ab925b2d507 class ComposerStaticInitf157335b37588c2d91df9d32b4934c2d 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 22 22 23 23 public static $classMap = array ( 24 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',25 24 'PR\\DHL\\REST_API\\API_Client' => __DIR__ . '/../..' . '/includes/REST_API/API_Client.php', 26 25 'PR\\DHL\\REST_API\\DHL_eCS_Asia\\Auth' => __DIR__ . '/../..' . '/includes/REST_API/DHL_eCS_Asia/Auth.php', … … 41 40 'PR\\DHL\\REST_API\\Parcel_DE\\Client' => __DIR__ . '/../..' . '/includes/REST_API/Parcel_DE/Client.php', 42 41 'PR\\DHL\\REST_API\\Parcel_DE\\Item_Info' => __DIR__ . '/../..' . '/includes/REST_API/Parcel_DE/Item_Info.php', 42 'PR\\DHL\\REST_API\\Parcel_DE_MyAccount\\Auth' => __DIR__ . '/../..' . '/includes/REST_API/Parcel_DE_MyAccount/Auth.php', 43 'PR\\DHL\\REST_API\\Parcel_DE_MyAccount\\Client' => __DIR__ . '/../..' . '/includes/REST_API/Parcel_DE_MyAccount/Client.php', 44 'PR\\DHL\\REST_API\\Parcel_DE_MyAccount\\Item_Info' => __DIR__ . '/../..' . '/includes/REST_API/Parcel_DE_MyAccount/Item_Info.php', 43 45 'PR\\DHL\\REST_API\\Request' => __DIR__ . '/../..' . '/includes/REST_API/Request.php', 44 46 'PR\\DHL\\REST_API\\Response' => __DIR__ . '/../..' . '/includes/REST_API/Response.php', … … 51 53 { 52 54 return \Closure::bind(function () use ($loader) { 53 $loader->prefixLengthsPsr4 = ComposerStaticInit 1cd980acb359f8dd1a4361ab925b2d50::$prefixLengthsPsr4;54 $loader->prefixDirsPsr4 = ComposerStaticInit 1cd980acb359f8dd1a4361ab925b2d50::$prefixDirsPsr4;55 $loader->classMap = ComposerStaticInit 1cd980acb359f8dd1a4361ab925b2d50::$classMap;55 $loader->prefixLengthsPsr4 = ComposerStaticInitf157335b37588c2d91df9d32b4934c2d::$prefixLengthsPsr4; 56 $loader->prefixDirsPsr4 = ComposerStaticInitf157335b37588c2d91df9d32b4934c2d::$prefixDirsPsr4; 57 $loader->classMap = ComposerStaticInitf157335b37588c2d91df9d32b4934c2d::$classMap; 56 58 57 59 }, null, ClassLoader::class); -
dhl-for-woocommerce/trunk/readme.txt
r3007982 r3008865 6 6 Requires PHP: 5.6 7 7 Tested up to: 4.8.2 8 Stable tag: 3.6. 08 Stable tag: 3.6.1 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.