Plugin Directory

Changeset 3008865


Ignore:
Timestamp:
12/12/2023 03:03:01 PM (2 years ago)
Author:
shadim
Message:

tagging version 3.6.1

Location:
dhl-for-woocommerce
Files:
3 deleted
11 edited
1 copied

Legend:

Unmodified
Added
Removed
  • dhl-for-woocommerce/tags/3.6.1/includes/pr-dhl-api/class-pr-dhl-api-paket.php

    r3007982 r3008865  
    77use PR\DHL\REST_API\Parcel_DE\Item_Info;
    88use PR\DHL\Utils\API_Utils;
     9use PR\DHL\REST_API\Parcel_DE_MyAccount;
    910
    1011class PR_DHL_API_Paket extends PR_DHL_API {
  • dhl-for-woocommerce/tags/3.6.1/pr-dhl-woocommerce.php

    r3007982 r3008865  
    10251025        $dhl_obj = $this->get_dhl_factory();
    10261026   
     1027        if( ! $dhl_obj->is_dhl_paket() ) {
     1028            return;
     1029        }
     1030
    10271031        $pwd_expiration = $dhl_obj->get_dhl_myaccount_pwd_expiration();
    10281032   
  • dhl-for-woocommerce/tags/3.6.1/readme.txt

    r3007982 r3008865  
    66Requires PHP: 5.6
    77Tested up to: 6.3
    8 Stable tag: 3.6.0
     8Stable tag: 3.6.1
    99WC requires at least: 3.0
    1010WC tested up to: 8.2
     
    7676
    7777== Changelog ==
     78
     79= 3.6.1 =
     80* DHL Paket: Fix MyAccount files crash due to namespacing
    7881
    7982= 3.6.0 =
  • dhl-for-woocommerce/tags/3.6.1/vendor/autoload.php

    r2799831 r3008865  
    33// autoload.php @generated by Composer
    44
    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 
    105require_once __DIR__ . '/composer/autoload_real.php';
    116
    12 return ComposerAutoloaderInit1cd980acb359f8dd1a4361ab925b2d50::getLoader();
     7return ComposerAutoloaderInitf157335b37588c2d91df9d32b4934c2d::getLoader();
  • dhl-for-woocommerce/tags/3.6.1/vendor/composer/ClassLoader.php

    r2799831 r3008865  
    3838 * @author Fabien Potencier <fabien@symfony.com>
    3939 * @author Jordi Boggiano <j.boggiano@seld.be>
    40  * @see    https://www.php-fig.org/psr/psr-0/
    41  * @see    https://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/
    4242 */
    4343class ClassLoader
    4444{
    45     /** @var ?string */
    46     private $vendorDir;
    47 
    4845    // PSR-4
    49     /**
    50      * @var array[]
    51      * @psalm-var array<string, array<string, int>>
    52      */
    5346    private $prefixLengthsPsr4 = array();
    54     /**
    55      * @var array[]
    56      * @psalm-var array<string, array<int, string>>
    57      */
    5847    private $prefixDirsPsr4 = array();
    59     /**
    60      * @var array[]
    61      * @psalm-var array<string, string>
    62      */
    6348    private $fallbackDirsPsr4 = array();
    6449
    6550    // PSR-0
    66     /**
    67      * @var array[]
    68      * @psalm-var array<string, array<string, string[]>>
    69      */
    7051    private $prefixesPsr0 = array();
    71     /**
    72      * @var array[]
    73      * @psalm-var array<string, string>
    74      */
    7552    private $fallbackDirsPsr0 = array();
    7653
    77     /** @var bool */
    7854    private $useIncludePath = false;
    79 
    80     /**
    81      * @var string[]
    82      * @psalm-var array<string, string>
    83      */
    8455    private $classMap = array();
    85 
    86     /** @var bool */
    8756    private $classMapAuthoritative = false;
    88 
    89     /**
    90      * @var bool[]
    91      * @psalm-var array<string, bool>
    92      */
    9357    private $missingClasses = array();
    94 
    95     /** @var ?string */
    9658    private $apcuPrefix;
    9759
    98     /**
    99      * @var self[]
    100      */
    101     private static $registeredLoaders = array();
    102 
    103     /**
    104      * @param ?string $vendorDir
    105      */
    106     public function __construct($vendorDir = null)
    107     {
    108         $this->vendorDir = $vendorDir;
    109     }
    110 
    111     /**
    112      * @return string[]
    113      */
    11460    public function getPrefixes()
    11561    {
    11662        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);
    11864        }
    11965
     
    12167    }
    12268
    123     /**
    124      * @return array[]
    125      * @psalm-return array<string, array<int, string>>
    126      */
    12769    public function getPrefixesPsr4()
    12870    {
     
    13072    }
    13173
    132     /**
    133      * @return array[]
    134      * @psalm-return array<string, string>
    135      */
    13674    public function getFallbackDirs()
    13775    {
     
    13977    }
    14078
    141     /**
    142      * @return array[]
    143      * @psalm-return array<string, string>
    144      */
    14579    public function getFallbackDirsPsr4()
    14680    {
     
    14882    }
    14983
    150     /**
    151      * @return string[] Array of classname => path
    152      * @psalm-return array<string, string>
    153      */
    15484    public function getClassMap()
    15585    {
     
    15888
    15989    /**
    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
    16491     */
    16592    public function addClassMap(array $classMap)
     
    176103     * appending or prepending to the ones previously set for this prefix.
    177104     *
    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
    183108     */
    184109    public function add($prefix, $paths, $prepend = false)
     
    223148     * appending or prepending to the ones previously set for this namespace.
    224149     *
    225      * @param string          $prefix  The prefix/namespace, with trailing '\\'
    226      * @param string[]|string $paths   The PSR-4 base directories
    227      * @param bool            $prepend Whether to prepend the directories
     150     * @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
    228153     *
    229154     * @throws \InvalidArgumentException
    230      *
    231      * @return void
    232155     */
    233156    public function addPsr4($prefix, $paths, $prepend = false)
     
    273196     * replacing any others previously set for this prefix.
    274197     *
    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
    279200     */
    280201    public function set($prefix, $paths)
     
    291212     * replacing any others previously set for this namespace.
    292213     *
    293      * @param string          $prefix The prefix/namespace, with trailing '\\'
    294      * @param string[]|string $paths  The PSR-4 base directories
     214     * @param string       $prefix The prefix/namespace, with trailing '\\'
     215     * @param array|string $paths  The PSR-4 base directories
    295216     *
    296217     * @throws \InvalidArgumentException
    297      *
    298      * @return void
    299218     */
    300219    public function setPsr4($prefix, $paths)
     
    316235     *
    317236     * @param bool $useIncludePath
    318      *
    319      * @return void
    320237     */
    321238    public function setUseIncludePath($useIncludePath)
     
    340257     *
    341258     * @param bool $classMapAuthoritative
    342      *
    343      * @return void
    344259     */
    345260    public function setClassMapAuthoritative($classMapAuthoritative)
     
    362277     *
    363278     * @param string|null $apcuPrefix
    364      *
    365      * @return void
    366279     */
    367280    public function setApcuPrefix($apcuPrefix)
    368281    {
    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;
    370283    }
    371284
     
    384297     *
    385298     * @param bool $prepend Whether to prepend the autoloader or not
    386      *
    387      * @return void
    388299     */
    389300    public function register($prepend = false)
    390301    {
    391302        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         }
    403303    }
    404304
    405305    /**
    406306     * Unregisters this instance as an autoloader.
    407      *
    408      * @return void
    409307     */
    410308    public function unregister()
    411309    {
    412310        spl_autoload_unregister(array($this, 'loadClass'));
    413 
    414         if (null !== $this->vendorDir) {
    415             unset(self::$registeredLoaders[$this->vendorDir]);
    416         }
    417311    }
    418312
     
    421315     *
    422316     * @param  string    $class The name of the class
    423      * @return true|null True if loaded, null otherwise
     317     * @return bool|null True if loaded, null otherwise
    424318     */
    425319    public function loadClass($class)
     
    430324            return true;
    431325        }
    432 
    433         return null;
    434326    }
    435327
     
    476368    }
    477369
    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       $class
    490      * @param  string       $ext
    491      * @return string|false
    492      */
    493370    private function findFileWithExtension($class, $ext)
    494371    {
     
    501378            while (false !== $lastPos = strrpos($subPath, '\\')) {
    502379                $subPath = substr($subPath, 0, $lastPos);
    503                 $search = $subPath . '\\';
     380                $search = $subPath.'\\';
    504381                if (isset($this->prefixDirsPsr4[$search])) {
    505382                    $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
     
    562439 *
    563440 * Prevents access to $this/self from included files.
    564  *
    565  * @param  string $file
    566  * @return void
    567  * @private
    568441 */
    569442function includeFile($file)
  • dhl-for-woocommerce/tags/3.6.1/vendor/composer/autoload_classmap.php

    r2931374 r3008865  
    33// autoload_classmap.php @generated by Composer
    44
    5 $vendorDir = dirname(__DIR__);
     5$vendorDir = dirname(dirname(__FILE__));
    66$baseDir = dirname($vendorDir);
    77
    88return array(
    9     'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
    109    'PR\\DHL\\REST_API\\API_Client' => $baseDir . '/includes/REST_API/API_Client.php',
    1110    'PR\\DHL\\REST_API\\DHL_eCS_Asia\\Auth' => $baseDir . '/includes/REST_API/DHL_eCS_Asia/Auth.php',
     
    2625    'PR\\DHL\\REST_API\\Parcel_DE\\Client' => $baseDir . '/includes/REST_API/Parcel_DE/Client.php',
    2726    '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',
    2830    'PR\\DHL\\REST_API\\Request' => $baseDir . '/includes/REST_API/Request.php',
    2931    '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  
    33// autoload_namespaces.php @generated by Composer
    44
    5 $vendorDir = dirname(__DIR__);
     5$vendorDir = dirname(dirname(__FILE__));
    66$baseDir = dirname($vendorDir);
    77
  • dhl-for-woocommerce/tags/3.6.1/vendor/composer/autoload_psr4.php

    r2799831 r3008865  
    33// autoload_psr4.php @generated by Composer
    44
    5 $vendorDir = dirname(__DIR__);
     5$vendorDir = dirname(dirname(__FILE__));
    66$baseDir = dirname($vendorDir);
    77
  • dhl-for-woocommerce/tags/3.6.1/vendor/composer/autoload_real.php

    r2799831 r3008865  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit1cd980acb359f8dd1a4361ab925b2d50
     5class ComposerAutoloaderInitf157335b37588c2d91df9d32b4934c2d
    66{
    77    private static $loader;
     
    1414    }
    1515
    16     /**
    17      * @return \Composer\Autoload\ClassLoader
    18      */
    1916    public static function getLoader()
    2017    {
     
    2320        }
    2421
    25         spl_autoload_register(array('ComposerAutoloaderInit1cd980acb359f8dd1a4361ab925b2d50', 'loadClassLoader'), true, true);
    26         self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    27         spl_autoload_unregister(array('ComposerAutoloaderInit1cd980acb359f8dd1a4361ab925b2d50', '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'));
    2825
    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        }
    3147
    3248        $loader->register(true);
  • dhl-for-woocommerce/tags/3.6.1/vendor/composer/autoload_static.php

    r2931374 r3008865  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit1cd980acb359f8dd1a4361ab925b2d50
     7class ComposerStaticInitf157335b37588c2d91df9d32b4934c2d
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    2222
    2323    public static $classMap = array (
    24         'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
    2524        'PR\\DHL\\REST_API\\API_Client' => __DIR__ . '/../..' . '/includes/REST_API/API_Client.php',
    2625        'PR\\DHL\\REST_API\\DHL_eCS_Asia\\Auth' => __DIR__ . '/../..' . '/includes/REST_API/DHL_eCS_Asia/Auth.php',
     
    4140        'PR\\DHL\\REST_API\\Parcel_DE\\Client' => __DIR__ . '/../..' . '/includes/REST_API/Parcel_DE/Client.php',
    4241        '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',
    4345        'PR\\DHL\\REST_API\\Request' => __DIR__ . '/../..' . '/includes/REST_API/Request.php',
    4446        'PR\\DHL\\REST_API\\Response' => __DIR__ . '/../..' . '/includes/REST_API/Response.php',
     
    5153    {
    5254        return \Closure::bind(function () use ($loader) {
    53             $loader->prefixLengthsPsr4 = ComposerStaticInit1cd980acb359f8dd1a4361ab925b2d50::$prefixLengthsPsr4;
    54             $loader->prefixDirsPsr4 = ComposerStaticInit1cd980acb359f8dd1a4361ab925b2d50::$prefixDirsPsr4;
    55             $loader->classMap = ComposerStaticInit1cd980acb359f8dd1a4361ab925b2d50::$classMap;
     55            $loader->prefixLengthsPsr4 = ComposerStaticInitf157335b37588c2d91df9d32b4934c2d::$prefixLengthsPsr4;
     56            $loader->prefixDirsPsr4 = ComposerStaticInitf157335b37588c2d91df9d32b4934c2d::$prefixDirsPsr4;
     57            $loader->classMap = ComposerStaticInitf157335b37588c2d91df9d32b4934c2d::$classMap;
    5658
    5759        }, null, ClassLoader::class);
  • dhl-for-woocommerce/trunk/readme.txt

    r3007982 r3008865  
    66Requires PHP: 5.6
    77Tested up to: 4.8.2
    8 Stable tag: 3.6.0
     8Stable tag: 3.6.1
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.