Changeset 2925826
- Timestamp:
- 06/14/2023 10:46:03 AM (3 years ago)
- Location:
- ecomail
- Files:
-
- 30 edited
- 1 copied
-
tags/2.1.3 (copied) (copied from ecomail/trunk)
-
tags/2.1.3/deps/autoload.php (modified) (1 diff)
-
tags/2.1.3/deps/composer/ClassLoader.php (modified) (24 diffs)
-
tags/2.1.3/deps/composer/InstalledVersions.php (modified) (4 diffs)
-
tags/2.1.3/deps/composer/autoload_real.php (modified) (2 diffs)
-
tags/2.1.3/deps/composer/autoload_static.php (modified) (2 diffs)
-
tags/2.1.3/deps/composer/installed.php (modified) (1 diff)
-
tags/2.1.3/ecomail.php (modified) (1 diff)
-
tags/2.1.3/readme.txt (modified) (2 diffs)
-
tags/2.1.3/src/WooCommerce.php (modified) (1 diff)
-
tags/2.1.3/vendor/autoload.php (modified) (1 diff)
-
tags/2.1.3/vendor/composer/ClassLoader.php (modified) (24 diffs)
-
tags/2.1.3/vendor/composer/InstalledVersions.php (modified) (4 diffs)
-
tags/2.1.3/vendor/composer/autoload_real.php (modified) (2 diffs)
-
tags/2.1.3/vendor/composer/autoload_static.php (modified) (2 diffs)
-
tags/2.1.3/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/deps/autoload.php (modified) (1 diff)
-
trunk/deps/composer/ClassLoader.php (modified) (24 diffs)
-
trunk/deps/composer/InstalledVersions.php (modified) (4 diffs)
-
trunk/deps/composer/autoload_real.php (modified) (2 diffs)
-
trunk/deps/composer/autoload_static.php (modified) (2 diffs)
-
trunk/deps/composer/installed.php (modified) (1 diff)
-
trunk/ecomail.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/WooCommerce.php (modified) (1 diff)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/ClassLoader.php (modified) (24 diffs)
-
trunk/vendor/composer/InstalledVersions.php (modified) (4 diffs)
-
trunk/vendor/composer/autoload_real.php (modified) (2 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ecomail/tags/2.1.3/deps/autoload.php
r2865205 r2925826 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit3 945cc562aa3c9efcc88de30ba8cb8c8::getLoader();25 return ComposerAutoloaderInit3f23579fad6f1c15c8058e1911a63a7e::getLoader(); -
ecomail/tags/2.1.3/deps/composer/ClassLoader.php
r2864675 r2925826 46 46 private static $includeFile; 47 47 48 /** @var ?string*/48 /** @var string|null */ 49 49 private $vendorDir; 50 50 51 51 // PSR-4 52 52 /** 53 * @var array[] 54 * @psalm-var array<string, array<string, int>> 53 * @var array<string, array<string, int>> 55 54 */ 56 55 private $prefixLengthsPsr4 = array(); 57 56 /** 58 * @var array[] 59 * @psalm-var array<string, array<int, string>> 57 * @var array<string, list<string>> 60 58 */ 61 59 private $prefixDirsPsr4 = array(); 62 60 /** 63 * @var array[] 64 * @psalm-var array<string, string> 61 * @var list<string> 65 62 */ 66 63 private $fallbackDirsPsr4 = array(); … … 68 65 // PSR-0 69 66 /** 70 * @var array[] 71 * @psalm-var array<string, array<string, string[]>> 67 * List of PSR-0 prefixes 68 * 69 * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2'))) 70 * 71 * @var array<string, array<string, list<string>>> 72 72 */ 73 73 private $prefixesPsr0 = array(); 74 74 /** 75 * @var array[] 76 * @psalm-var array<string, string> 75 * @var list<string> 77 76 */ 78 77 private $fallbackDirsPsr0 = array(); … … 82 81 83 82 /** 84 * @var string[] 85 * @psalm-var array<string, string> 83 * @var array<string, string> 86 84 */ 87 85 private $classMap = array(); … … 91 89 92 90 /** 93 * @var bool[] 94 * @psalm-var array<string, bool> 91 * @var array<string, bool> 95 92 */ 96 93 private $missingClasses = array(); 97 94 98 /** @var ?string*/95 /** @var string|null */ 99 96 private $apcuPrefix; 100 97 101 98 /** 102 * @var self[]99 * @var array<string, self> 103 100 */ 104 101 private static $registeredLoaders = array(); 105 102 106 103 /** 107 * @param ?string$vendorDir104 * @param string|null $vendorDir 108 105 */ 109 106 public function __construct($vendorDir = null) … … 114 111 115 112 /** 116 * @return string[]113 * @return array<string, list<string>> 117 114 */ 118 115 public function getPrefixes() … … 126 123 127 124 /** 128 * @return array[] 129 * @psalm-return array<string, array<int, string>> 125 * @return array<string, list<string>> 130 126 */ 131 127 public function getPrefixesPsr4() … … 135 131 136 132 /** 137 * @return array[] 138 * @psalm-return array<string, string> 133 * @return list<string> 139 134 */ 140 135 public function getFallbackDirs() … … 144 139 145 140 /** 146 * @return array[] 147 * @psalm-return array<string, string> 141 * @return list<string> 148 142 */ 149 143 public function getFallbackDirsPsr4() … … 153 147 154 148 /** 155 * @return string[] Array of classname => path 156 * @psalm-return array<string, string> 149 * @return array<string, string> Array of classname => path 157 150 */ 158 151 public function getClassMap() … … 162 155 163 156 /** 164 * @param string[] $classMap Class to filename map 165 * @psalm-param array<string, string> $classMap 157 * @param array<string, string> $classMap Class to filename map 166 158 * 167 159 * @return void … … 180 172 * appending or prepending to the ones previously set for this prefix. 181 173 * 182 * @param string $prefix The prefix183 * @param string[]|string $paths The PSR-0 root directories184 * @param bool $prepend Whether to prepend the directories174 * @param string $prefix The prefix 175 * @param list<string>|string $paths The PSR-0 root directories 176 * @param bool $prepend Whether to prepend the directories 185 177 * 186 178 * @return void … … 188 180 public function add($prefix, $paths, $prepend = false) 189 181 { 182 $paths = (array) $paths; 190 183 if (!$prefix) { 191 184 if ($prepend) { 192 185 $this->fallbackDirsPsr0 = array_merge( 193 (array)$paths,186 $paths, 194 187 $this->fallbackDirsPsr0 195 188 ); … … 197 190 $this->fallbackDirsPsr0 = array_merge( 198 191 $this->fallbackDirsPsr0, 199 (array)$paths192 $paths 200 193 ); 201 194 } … … 206 199 $first = $prefix[0]; 207 200 if (!isset($this->prefixesPsr0[$first][$prefix])) { 208 $this->prefixesPsr0[$first][$prefix] = (array)$paths;201 $this->prefixesPsr0[$first][$prefix] = $paths; 209 202 210 203 return; … … 212 205 if ($prepend) { 213 206 $this->prefixesPsr0[$first][$prefix] = array_merge( 214 (array)$paths,207 $paths, 215 208 $this->prefixesPsr0[$first][$prefix] 216 209 ); … … 218 211 $this->prefixesPsr0[$first][$prefix] = array_merge( 219 212 $this->prefixesPsr0[$first][$prefix], 220 (array)$paths213 $paths 221 214 ); 222 215 } … … 227 220 * appending or prepending to the ones previously set for this namespace. 228 221 * 229 * @param string $prefix The prefix/namespace, with trailing '\\'230 * @param string[]|string $paths The PSR-4 base directories231 * @param bool $prepend Whether to prepend the directories222 * @param string $prefix The prefix/namespace, with trailing '\\' 223 * @param list<string>|string $paths The PSR-4 base directories 224 * @param bool $prepend Whether to prepend the directories 232 225 * 233 226 * @throws \InvalidArgumentException … … 237 230 public function addPsr4($prefix, $paths, $prepend = false) 238 231 { 232 $paths = (array) $paths; 239 233 if (!$prefix) { 240 234 // Register directories for the root namespace. 241 235 if ($prepend) { 242 236 $this->fallbackDirsPsr4 = array_merge( 243 (array)$paths,237 $paths, 244 238 $this->fallbackDirsPsr4 245 239 ); … … 247 241 $this->fallbackDirsPsr4 = array_merge( 248 242 $this->fallbackDirsPsr4, 249 (array)$paths243 $paths 250 244 ); 251 245 } … … 257 251 } 258 252 $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; 259 $this->prefixDirsPsr4[$prefix] = (array)$paths;253 $this->prefixDirsPsr4[$prefix] = $paths; 260 254 } elseif ($prepend) { 261 255 // Prepend directories for an already registered namespace. 262 256 $this->prefixDirsPsr4[$prefix] = array_merge( 263 (array)$paths,257 $paths, 264 258 $this->prefixDirsPsr4[$prefix] 265 259 ); … … 268 262 $this->prefixDirsPsr4[$prefix] = array_merge( 269 263 $this->prefixDirsPsr4[$prefix], 270 (array)$paths264 $paths 271 265 ); 272 266 } … … 277 271 * replacing any others previously set for this prefix. 278 272 * 279 * @param string $prefix The prefix280 * @param string[]|string $paths The PSR-0 base directories273 * @param string $prefix The prefix 274 * @param list<string>|string $paths The PSR-0 base directories 281 275 * 282 276 * @return void … … 295 289 * replacing any others previously set for this namespace. 296 290 * 297 * @param string $prefix The prefix/namespace, with trailing '\\'298 * @param string[]|string $paths The PSR-4 base directories291 * @param string $prefix The prefix/namespace, with trailing '\\' 292 * @param list<string>|string $paths The PSR-4 base directories 299 293 * 300 294 * @throws \InvalidArgumentException … … 482 476 483 477 /** 484 * Returns the currently registered loaders indexed by their corresponding vendor directories.485 * 486 * @return self[]478 * Returns the currently registered loaders keyed by their corresponding vendor directories. 479 * 480 * @return array<string, self> 487 481 */ 488 482 public static function getRegisteredLoaders() -
ecomail/tags/2.1.3/deps/composer/InstalledVersions.php
r2746515 r2925826 88 88 foreach (self::getInstalled() as $installed) { 89 89 if (isset($installed['versions'][$packageName])) { 90 return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);90 return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === \false; 91 91 } 92 92 } … … 107 107 public static function satisfies(VersionParser $parser, $packageName, $constraint) 108 108 { 109 $constraint = $parser->parseConstraints( $constraint);109 $constraint = $parser->parseConstraints((string) $constraint); 110 110 $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); 111 111 return $provided->matches($constraint); … … 286 286 $installed[] = self::$installedByVendor[$vendorDir]; 287 287 } elseif (\is_file($vendorDir . '/composer/installed.php')) { 288 $installed[] = self::$installedByVendor[$vendorDir] = (require $vendorDir . '/composer/installed.php'); 288 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 289 $required = (require $vendorDir . '/composer/installed.php'); 290 $installed[] = self::$installedByVendor[$vendorDir] = $required; 289 291 if (null === self::$installed && \strtr($vendorDir . '/composer', '\\', '/') === \strtr(__DIR__, '\\', '/')) { 290 292 self::$installed = $installed[\count($installed) - 1]; … … 297 299 // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 298 300 if (\substr(__DIR__, -8, 1) !== 'C') { 299 self::$installed = (require __DIR__ . '/installed.php'); 301 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 302 $required = (require __DIR__ . '/installed.php'); 303 self::$installed = $required; 300 304 } else { 301 305 self::$installed = array(); 302 306 } 303 307 } 304 $installed[] = self::$installed; 308 if (self::$installed !== array()) { 309 $installed[] = self::$installed; 310 } 305 311 return $installed; 306 312 } -
ecomail/tags/2.1.3/deps/composer/autoload_real.php
r2865205 r2925826 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit3 945cc562aa3c9efcc88de30ba8cb8c85 class ComposerAutoloaderInit3f23579fad6f1c15c8058e1911a63a7e 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit3 945cc562aa3c9efcc88de30ba8cb8c8', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInit3f23579fad6f1c15c8058e1911a63a7e', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 27 spl_autoload_unregister(array('ComposerAutoloaderInit3 945cc562aa3c9efcc88de30ba8cb8c8', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInit3f23579fad6f1c15c8058e1911a63a7e', 'loadClassLoader')); 28 28 29 29 require __DIR__ . '/autoload_static.php'; 30 call_user_func(\Composer\Autoload\ComposerStaticInit3 945cc562aa3c9efcc88de30ba8cb8c8::getInitializer($loader));30 call_user_func(\Composer\Autoload\ComposerStaticInit3f23579fad6f1c15c8058e1911a63a7e::getInitializer($loader)); 31 31 32 32 $loader->register(true); 33 33 34 $filesToLoad = \Composer\Autoload\ComposerStaticInit3 945cc562aa3c9efcc88de30ba8cb8c8::$files;34 $filesToLoad = \Composer\Autoload\ComposerStaticInit3f23579fad6f1c15c8058e1911a63a7e::$files; 35 35 $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { 36 36 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
ecomail/tags/2.1.3/deps/composer/autoload_static.php
r2865205 r2925826 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit3 945cc562aa3c9efcc88de30ba8cb8c87 class ComposerStaticInit3f23579fad6f1c15c8058e1911a63a7e 8 8 { 9 9 public static $files = array ( … … 301 301 { 302 302 return \Closure::bind(function () use ($loader) { 303 $loader->prefixLengthsPsr4 = ComposerStaticInit3 945cc562aa3c9efcc88de30ba8cb8c8::$prefixLengthsPsr4;304 $loader->prefixDirsPsr4 = ComposerStaticInit3 945cc562aa3c9efcc88de30ba8cb8c8::$prefixDirsPsr4;305 $loader->classMap = ComposerStaticInit3 945cc562aa3c9efcc88de30ba8cb8c8::$classMap;303 $loader->prefixLengthsPsr4 = ComposerStaticInit3f23579fad6f1c15c8058e1911a63a7e::$prefixLengthsPsr4; 304 $loader->prefixDirsPsr4 = ComposerStaticInit3f23579fad6f1c15c8058e1911a63a7e::$prefixDirsPsr4; 305 $loader->classMap = ComposerStaticInit3f23579fad6f1c15c8058e1911a63a7e::$classMap; 306 306 307 307 }, null, ClassLoader::class); -
ecomail/tags/2.1.3/deps/composer/installed.php
r2865205 r2925826 3 3 namespace EcomailDeps; 4 4 5 return array('root' => array('name' => '__root__', 'pretty_version' => '2.1. 2', 'version' => '2.1.2.0', 'reference' => '3344a4fe69789967ef634695e5f42db4e73bb5f3', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev' => \true), 'versions' => array('__root__' => array('pretty_version' => '2.1.2', 'version' => '2.1.2.0', 'reference' => '3344a4fe69789967ef634695e5f42db4e73bb5f3', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev_requirement' => \false), 'ecomailcz/ecomail' => array('pretty_version' => 'v1.2.5', 'version' => '1.2.5.0', 'reference' => 'c7370229cf94a7129bb6386136da0df59424c9e1', 'type' => 'library', 'install_path' => __DIR__ . '/../ecomailcz/ecomail', 'aliases' => array(), 'dev_requirement' => \false), 'laravel/serializable-closure' => array('pretty_version' => 'v1.2.2', 'version' => '1.2.2.0', 'reference' => '47afb7fae28ed29057fdca37e16a84f90cc62fae', 'type' => 'library', 'install_path' => __DIR__ . '/../laravel/serializable-closure', 'aliases' => array(), 'dev_requirement' => \false), 'php-di/invoker' => array('pretty_version' => '2.3.3', 'version' => '2.3.3.0', 'reference' => 'cd6d9f267d1a3474bdddf1be1da079f01b942786', 'type' => 'library', 'install_path' => __DIR__ . '/../php-di/invoker', 'aliases' => array(), 'dev_requirement' => \false), 'php-di/php-di' => array('pretty_version' => '6.4.0', 'version' => '6.4.0.0', 'reference' => 'ae0f1b3b03d8b29dff81747063cbfd6276246cc4', 'type' => 'library', 'install_path' => __DIR__ . '/../php-di/php-di', 'aliases' => array(), 'dev_requirement' => \false), 'php-di/phpdoc-reader' => array('pretty_version' => '2.2.1', 'version' => '2.2.1.0', 'reference' => '66daff34cbd2627740ffec9469ffbac9f8c8185c', 'type' => 'library', 'install_path' => __DIR__ . '/../php-di/phpdoc-reader', 'aliases' => array(), 'dev_requirement' => \false), 'phpstan/phpdoc-parser' => array('pretty_version' => '0.5.7', 'version' => '0.5.7.0', 'reference' => '816e826ce0b7fb32098d8cb6de62511ce6021cea', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpdoc-parser', 'aliases' => array(), 'dev_requirement' => \false), 'psr/container' => array('pretty_version' => '1.1.2', 'version' => '1.1.2.0', 'reference' => '513e0666f7216c7459170d56df27dfcefe1689ea', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/container', 'aliases' => array(), 'dev_requirement' => \false), 'psr/container-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '^1.0')), 'wpify/asset' => array('pretty_version' => '1.2.7', 'version' => '1.2.7.0', 'reference' => '6bc587810b33e47a86120cf2897790454d0ade38', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/asset', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/custom-fields' => array('pretty_version' => '2.3.5', 'version' => '2.3.5.0', 'reference' => '3118c9c389b023f15d81c3cbe33a7b3a8bc5a492', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/custom-fields', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/model' => array('pretty_version' => '2.1.97', 'version' => '2.1.97.0', 'reference' => '25f3af2a3102dea0db0be35383b1ea94ca7c44ce', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/model', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/plugin-utils' => array('pretty_version' => '1.0.1', 'version' => '1.0.1.0', 'reference' => '0ace7f3a23bdfe3e2b2b05c72af79fa034c7e77a', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/plugin-utils', 'aliases' => array(), 'dev_requirement' => \false)));5 return array('root' => array('name' => '__root__', 'pretty_version' => '2.1.3', 'version' => '2.1.3.0', 'reference' => 'f97a0bf013e9d41042169faae1d74fb4e7a882f2', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev' => \true), 'versions' => array('__root__' => array('pretty_version' => '2.1.3', 'version' => '2.1.3.0', 'reference' => 'f97a0bf013e9d41042169faae1d74fb4e7a882f2', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev_requirement' => \false), 'ecomailcz/ecomail' => array('pretty_version' => 'v1.2.5', 'version' => '1.2.5.0', 'reference' => 'c7370229cf94a7129bb6386136da0df59424c9e1', 'type' => 'library', 'install_path' => __DIR__ . '/../ecomailcz/ecomail', 'aliases' => array(), 'dev_requirement' => \false), 'laravel/serializable-closure' => array('pretty_version' => 'v1.2.2', 'version' => '1.2.2.0', 'reference' => '47afb7fae28ed29057fdca37e16a84f90cc62fae', 'type' => 'library', 'install_path' => __DIR__ . '/../laravel/serializable-closure', 'aliases' => array(), 'dev_requirement' => \false), 'php-di/invoker' => array('pretty_version' => '2.3.3', 'version' => '2.3.3.0', 'reference' => 'cd6d9f267d1a3474bdddf1be1da079f01b942786', 'type' => 'library', 'install_path' => __DIR__ . '/../php-di/invoker', 'aliases' => array(), 'dev_requirement' => \false), 'php-di/php-di' => array('pretty_version' => '6.4.0', 'version' => '6.4.0.0', 'reference' => 'ae0f1b3b03d8b29dff81747063cbfd6276246cc4', 'type' => 'library', 'install_path' => __DIR__ . '/../php-di/php-di', 'aliases' => array(), 'dev_requirement' => \false), 'php-di/phpdoc-reader' => array('pretty_version' => '2.2.1', 'version' => '2.2.1.0', 'reference' => '66daff34cbd2627740ffec9469ffbac9f8c8185c', 'type' => 'library', 'install_path' => __DIR__ . '/../php-di/phpdoc-reader', 'aliases' => array(), 'dev_requirement' => \false), 'phpstan/phpdoc-parser' => array('pretty_version' => '0.5.7', 'version' => '0.5.7.0', 'reference' => '816e826ce0b7fb32098d8cb6de62511ce6021cea', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpdoc-parser', 'aliases' => array(), 'dev_requirement' => \false), 'psr/container' => array('pretty_version' => '1.1.2', 'version' => '1.1.2.0', 'reference' => '513e0666f7216c7459170d56df27dfcefe1689ea', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/container', 'aliases' => array(), 'dev_requirement' => \false), 'psr/container-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '^1.0')), 'wpify/asset' => array('pretty_version' => '1.2.7', 'version' => '1.2.7.0', 'reference' => '6bc587810b33e47a86120cf2897790454d0ade38', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/asset', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/custom-fields' => array('pretty_version' => '2.3.5', 'version' => '2.3.5.0', 'reference' => '3118c9c389b023f15d81c3cbe33a7b3a8bc5a492', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/custom-fields', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/model' => array('pretty_version' => '2.1.97', 'version' => '2.1.97.0', 'reference' => '25f3af2a3102dea0db0be35383b1ea94ca7c44ce', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/model', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/plugin-utils' => array('pretty_version' => '1.0.1', 'version' => '1.0.1.0', 'reference' => '0ace7f3a23bdfe3e2b2b05c72af79fa034c7e77a', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/plugin-utils', 'aliases' => array(), 'dev_requirement' => \false))); -
ecomail/tags/2.1.3/ecomail.php
r2865205 r2925826 3 3 * Plugin Name: Ecomail 4 4 * Description: Official Ecomail integration for WordPress and WooCommerce 5 * Version: 2.1. 25 * Version: 2.1.3 6 6 * Requires PHP: 7.4.0 7 7 * Requires at least: 5.3.0 -
ecomail/tags/2.1.3/readme.txt
r2865205 r2925826 6 6 Tested up to: 6.0 7 7 Requires PHP: 7.4 8 Stable tag: 2.1. 28 Stable tag: 2.1.3 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 39 39 40 40 == Changelog == 41 = 2.1.3 = 42 * Full size image in cart tracking 43 41 44 = 2.1.2 = 42 45 * Add support for subscription on pay for order page -
ecomail/tags/2.1.3/src/WooCommerce.php
r2865205 r2925826 235 235 $products[] = array( 236 236 'productId' => $item['product_id'], 237 'img_url' => wp_get_attachment_image_url( $prod->get_image_id() ),237 'img_url' => wp_get_attachment_image_url( $prod->get_image_id(), 'full' ), 238 238 'url' => $prod->get_permalink(), 239 239 'name' => $prod->get_name(), -
ecomail/tags/2.1.3/vendor/autoload.php
r2865205 r2925826 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit 595f71980b6d97cb112c7a39698b0692::getLoader();25 return ComposerAutoloaderInit8b09f69cc1857dd70671c6010ce5955b::getLoader(); -
ecomail/tags/2.1.3/vendor/composer/ClassLoader.php
r2864675 r2925826 46 46 private static $includeFile; 47 47 48 /** @var ?string*/48 /** @var string|null */ 49 49 private $vendorDir; 50 50 51 51 // PSR-4 52 52 /** 53 * @var array[] 54 * @psalm-var array<string, array<string, int>> 53 * @var array<string, array<string, int>> 55 54 */ 56 55 private $prefixLengthsPsr4 = array(); 57 56 /** 58 * @var array[] 59 * @psalm-var array<string, array<int, string>> 57 * @var array<string, list<string>> 60 58 */ 61 59 private $prefixDirsPsr4 = array(); 62 60 /** 63 * @var array[] 64 * @psalm-var array<string, string> 61 * @var list<string> 65 62 */ 66 63 private $fallbackDirsPsr4 = array(); … … 68 65 // PSR-0 69 66 /** 70 * @var array[] 71 * @psalm-var array<string, array<string, string[]>> 67 * List of PSR-0 prefixes 68 * 69 * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2'))) 70 * 71 * @var array<string, array<string, list<string>>> 72 72 */ 73 73 private $prefixesPsr0 = array(); 74 74 /** 75 * @var array[] 76 * @psalm-var array<string, string> 75 * @var list<string> 77 76 */ 78 77 private $fallbackDirsPsr0 = array(); … … 82 81 83 82 /** 84 * @var string[] 85 * @psalm-var array<string, string> 83 * @var array<string, string> 86 84 */ 87 85 private $classMap = array(); … … 91 89 92 90 /** 93 * @var bool[] 94 * @psalm-var array<string, bool> 91 * @var array<string, bool> 95 92 */ 96 93 private $missingClasses = array(); 97 94 98 /** @var ?string*/95 /** @var string|null */ 99 96 private $apcuPrefix; 100 97 101 98 /** 102 * @var self[]99 * @var array<string, self> 103 100 */ 104 101 private static $registeredLoaders = array(); 105 102 106 103 /** 107 * @param ?string$vendorDir104 * @param string|null $vendorDir 108 105 */ 109 106 public function __construct($vendorDir = null) … … 114 111 115 112 /** 116 * @return string[]113 * @return array<string, list<string>> 117 114 */ 118 115 public function getPrefixes() … … 126 123 127 124 /** 128 * @return array[] 129 * @psalm-return array<string, array<int, string>> 125 * @return array<string, list<string>> 130 126 */ 131 127 public function getPrefixesPsr4() … … 135 131 136 132 /** 137 * @return array[] 138 * @psalm-return array<string, string> 133 * @return list<string> 139 134 */ 140 135 public function getFallbackDirs() … … 144 139 145 140 /** 146 * @return array[] 147 * @psalm-return array<string, string> 141 * @return list<string> 148 142 */ 149 143 public function getFallbackDirsPsr4() … … 153 147 154 148 /** 155 * @return string[] Array of classname => path 156 * @psalm-return array<string, string> 149 * @return array<string, string> Array of classname => path 157 150 */ 158 151 public function getClassMap() … … 162 155 163 156 /** 164 * @param string[] $classMap Class to filename map 165 * @psalm-param array<string, string> $classMap 157 * @param array<string, string> $classMap Class to filename map 166 158 * 167 159 * @return void … … 180 172 * appending or prepending to the ones previously set for this prefix. 181 173 * 182 * @param string $prefix The prefix183 * @param string[]|string $paths The PSR-0 root directories184 * @param bool $prepend Whether to prepend the directories174 * @param string $prefix The prefix 175 * @param list<string>|string $paths The PSR-0 root directories 176 * @param bool $prepend Whether to prepend the directories 185 177 * 186 178 * @return void … … 188 180 public function add($prefix, $paths, $prepend = false) 189 181 { 182 $paths = (array) $paths; 190 183 if (!$prefix) { 191 184 if ($prepend) { 192 185 $this->fallbackDirsPsr0 = array_merge( 193 (array)$paths,186 $paths, 194 187 $this->fallbackDirsPsr0 195 188 ); … … 197 190 $this->fallbackDirsPsr0 = array_merge( 198 191 $this->fallbackDirsPsr0, 199 (array)$paths192 $paths 200 193 ); 201 194 } … … 206 199 $first = $prefix[0]; 207 200 if (!isset($this->prefixesPsr0[$first][$prefix])) { 208 $this->prefixesPsr0[$first][$prefix] = (array)$paths;201 $this->prefixesPsr0[$first][$prefix] = $paths; 209 202 210 203 return; … … 212 205 if ($prepend) { 213 206 $this->prefixesPsr0[$first][$prefix] = array_merge( 214 (array)$paths,207 $paths, 215 208 $this->prefixesPsr0[$first][$prefix] 216 209 ); … … 218 211 $this->prefixesPsr0[$first][$prefix] = array_merge( 219 212 $this->prefixesPsr0[$first][$prefix], 220 (array)$paths213 $paths 221 214 ); 222 215 } … … 227 220 * appending or prepending to the ones previously set for this namespace. 228 221 * 229 * @param string $prefix The prefix/namespace, with trailing '\\'230 * @param string[]|string $paths The PSR-4 base directories231 * @param bool $prepend Whether to prepend the directories222 * @param string $prefix The prefix/namespace, with trailing '\\' 223 * @param list<string>|string $paths The PSR-4 base directories 224 * @param bool $prepend Whether to prepend the directories 232 225 * 233 226 * @throws \InvalidArgumentException … … 237 230 public function addPsr4($prefix, $paths, $prepend = false) 238 231 { 232 $paths = (array) $paths; 239 233 if (!$prefix) { 240 234 // Register directories for the root namespace. 241 235 if ($prepend) { 242 236 $this->fallbackDirsPsr4 = array_merge( 243 (array)$paths,237 $paths, 244 238 $this->fallbackDirsPsr4 245 239 ); … … 247 241 $this->fallbackDirsPsr4 = array_merge( 248 242 $this->fallbackDirsPsr4, 249 (array)$paths243 $paths 250 244 ); 251 245 } … … 257 251 } 258 252 $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; 259 $this->prefixDirsPsr4[$prefix] = (array)$paths;253 $this->prefixDirsPsr4[$prefix] = $paths; 260 254 } elseif ($prepend) { 261 255 // Prepend directories for an already registered namespace. 262 256 $this->prefixDirsPsr4[$prefix] = array_merge( 263 (array)$paths,257 $paths, 264 258 $this->prefixDirsPsr4[$prefix] 265 259 ); … … 268 262 $this->prefixDirsPsr4[$prefix] = array_merge( 269 263 $this->prefixDirsPsr4[$prefix], 270 (array)$paths264 $paths 271 265 ); 272 266 } … … 277 271 * replacing any others previously set for this prefix. 278 272 * 279 * @param string $prefix The prefix280 * @param string[]|string $paths The PSR-0 base directories273 * @param string $prefix The prefix 274 * @param list<string>|string $paths The PSR-0 base directories 281 275 * 282 276 * @return void … … 295 289 * replacing any others previously set for this namespace. 296 290 * 297 * @param string $prefix The prefix/namespace, with trailing '\\'298 * @param string[]|string $paths The PSR-4 base directories291 * @param string $prefix The prefix/namespace, with trailing '\\' 292 * @param list<string>|string $paths The PSR-4 base directories 299 293 * 300 294 * @throws \InvalidArgumentException … … 482 476 483 477 /** 484 * Returns the currently registered loaders indexed by their corresponding vendor directories.485 * 486 * @return self[]478 * Returns the currently registered loaders keyed by their corresponding vendor directories. 479 * 480 * @return array<string, self> 487 481 */ 488 482 public static function getRegisteredLoaders() -
ecomail/tags/2.1.3/vendor/composer/InstalledVersions.php
r2746515 r2925826 99 99 foreach (self::getInstalled() as $installed) { 100 100 if (isset($installed['versions'][$packageName])) { 101 return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);101 return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false; 102 102 } 103 103 } … … 120 120 public static function satisfies(VersionParser $parser, $packageName, $constraint) 121 121 { 122 $constraint = $parser->parseConstraints( $constraint);122 $constraint = $parser->parseConstraints((string) $constraint); 123 123 $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); 124 124 … … 329 329 $installed[] = self::$installedByVendor[$vendorDir]; 330 330 } elseif (is_file($vendorDir.'/composer/installed.php')) { 331 $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; 331 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 332 $required = require $vendorDir.'/composer/installed.php'; 333 $installed[] = self::$installedByVendor[$vendorDir] = $required; 332 334 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 333 335 self::$installed = $installed[count($installed) - 1]; … … 341 343 // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 342 344 if (substr(__DIR__, -8, 1) !== 'C') { 343 self::$installed = require __DIR__ . '/installed.php'; 345 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 346 $required = require __DIR__ . '/installed.php'; 347 self::$installed = $required; 344 348 } else { 345 349 self::$installed = array(); 346 350 } 347 351 } 348 $installed[] = self::$installed; 352 353 if (self::$installed !== array()) { 354 $installed[] = self::$installed; 355 } 349 356 350 357 return $installed; -
ecomail/tags/2.1.3/vendor/composer/autoload_real.php
r2865205 r2925826 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 595f71980b6d97cb112c7a39698b06925 class ComposerAutoloaderInit8b09f69cc1857dd70671c6010ce5955b 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit 595f71980b6d97cb112c7a39698b0692', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInit8b09f69cc1857dd70671c6010ce5955b', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 27 spl_autoload_unregister(array('ComposerAutoloaderInit 595f71980b6d97cb112c7a39698b0692', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInit8b09f69cc1857dd70671c6010ce5955b', 'loadClassLoader')); 28 28 29 29 require __DIR__ . '/autoload_static.php'; 30 call_user_func(\Composer\Autoload\ComposerStaticInit 595f71980b6d97cb112c7a39698b0692::getInitializer($loader));30 call_user_func(\Composer\Autoload\ComposerStaticInit8b09f69cc1857dd70671c6010ce5955b::getInitializer($loader)); 31 31 32 32 $loader->register(true); -
ecomail/tags/2.1.3/vendor/composer/autoload_static.php
r2865205 r2925826 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 595f71980b6d97cb112c7a39698b06927 class ComposerStaticInit8b09f69cc1857dd70671c6010ce5955b 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 43 43 { 44 44 return \Closure::bind(function () use ($loader) { 45 $loader->prefixLengthsPsr4 = ComposerStaticInit 595f71980b6d97cb112c7a39698b0692::$prefixLengthsPsr4;46 $loader->prefixDirsPsr4 = ComposerStaticInit 595f71980b6d97cb112c7a39698b0692::$prefixDirsPsr4;47 $loader->classMap = ComposerStaticInit 595f71980b6d97cb112c7a39698b0692::$classMap;45 $loader->prefixLengthsPsr4 = ComposerStaticInit8b09f69cc1857dd70671c6010ce5955b::$prefixLengthsPsr4; 46 $loader->prefixDirsPsr4 = ComposerStaticInit8b09f69cc1857dd70671c6010ce5955b::$prefixDirsPsr4; 47 $loader->classMap = ComposerStaticInit8b09f69cc1857dd70671c6010ce5955b::$classMap; 48 48 49 49 }, null, ClassLoader::class); -
ecomail/tags/2.1.3/vendor/composer/installed.php
r2865205 r2925826 2 2 'root' => array( 3 3 'name' => 'ecomailcz/ecomail-woocommerce', 4 'pretty_version' => '2.1. 2',5 'version' => '2.1. 2.0',6 'reference' => ' 3344a4fe69789967ef634695e5f42db4e73bb5f3',4 'pretty_version' => '2.1.3', 5 'version' => '2.1.3.0', 6 'reference' => 'f97a0bf013e9d41042169faae1d74fb4e7a882f2', 7 7 'type' => 'project', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'ecomailcz/ecomail-woocommerce' => array( 14 'pretty_version' => '2.1. 2',15 'version' => '2.1. 2.0',16 'reference' => ' 3344a4fe69789967ef634695e5f42db4e73bb5f3',14 'pretty_version' => '2.1.3', 15 'version' => '2.1.3.0', 16 'reference' => 'f97a0bf013e9d41042169faae1d74fb4e7a882f2', 17 17 'type' => 'project', 18 18 'install_path' => __DIR__ . '/../../', -
ecomail/trunk/deps/autoload.php
r2865205 r2925826 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit3 945cc562aa3c9efcc88de30ba8cb8c8::getLoader();25 return ComposerAutoloaderInit3f23579fad6f1c15c8058e1911a63a7e::getLoader(); -
ecomail/trunk/deps/composer/ClassLoader.php
r2864675 r2925826 46 46 private static $includeFile; 47 47 48 /** @var ?string*/48 /** @var string|null */ 49 49 private $vendorDir; 50 50 51 51 // PSR-4 52 52 /** 53 * @var array[] 54 * @psalm-var array<string, array<string, int>> 53 * @var array<string, array<string, int>> 55 54 */ 56 55 private $prefixLengthsPsr4 = array(); 57 56 /** 58 * @var array[] 59 * @psalm-var array<string, array<int, string>> 57 * @var array<string, list<string>> 60 58 */ 61 59 private $prefixDirsPsr4 = array(); 62 60 /** 63 * @var array[] 64 * @psalm-var array<string, string> 61 * @var list<string> 65 62 */ 66 63 private $fallbackDirsPsr4 = array(); … … 68 65 // PSR-0 69 66 /** 70 * @var array[] 71 * @psalm-var array<string, array<string, string[]>> 67 * List of PSR-0 prefixes 68 * 69 * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2'))) 70 * 71 * @var array<string, array<string, list<string>>> 72 72 */ 73 73 private $prefixesPsr0 = array(); 74 74 /** 75 * @var array[] 76 * @psalm-var array<string, string> 75 * @var list<string> 77 76 */ 78 77 private $fallbackDirsPsr0 = array(); … … 82 81 83 82 /** 84 * @var string[] 85 * @psalm-var array<string, string> 83 * @var array<string, string> 86 84 */ 87 85 private $classMap = array(); … … 91 89 92 90 /** 93 * @var bool[] 94 * @psalm-var array<string, bool> 91 * @var array<string, bool> 95 92 */ 96 93 private $missingClasses = array(); 97 94 98 /** @var ?string*/95 /** @var string|null */ 99 96 private $apcuPrefix; 100 97 101 98 /** 102 * @var self[]99 * @var array<string, self> 103 100 */ 104 101 private static $registeredLoaders = array(); 105 102 106 103 /** 107 * @param ?string$vendorDir104 * @param string|null $vendorDir 108 105 */ 109 106 public function __construct($vendorDir = null) … … 114 111 115 112 /** 116 * @return string[]113 * @return array<string, list<string>> 117 114 */ 118 115 public function getPrefixes() … … 126 123 127 124 /** 128 * @return array[] 129 * @psalm-return array<string, array<int, string>> 125 * @return array<string, list<string>> 130 126 */ 131 127 public function getPrefixesPsr4() … … 135 131 136 132 /** 137 * @return array[] 138 * @psalm-return array<string, string> 133 * @return list<string> 139 134 */ 140 135 public function getFallbackDirs() … … 144 139 145 140 /** 146 * @return array[] 147 * @psalm-return array<string, string> 141 * @return list<string> 148 142 */ 149 143 public function getFallbackDirsPsr4() … … 153 147 154 148 /** 155 * @return string[] Array of classname => path 156 * @psalm-return array<string, string> 149 * @return array<string, string> Array of classname => path 157 150 */ 158 151 public function getClassMap() … … 162 155 163 156 /** 164 * @param string[] $classMap Class to filename map 165 * @psalm-param array<string, string> $classMap 157 * @param array<string, string> $classMap Class to filename map 166 158 * 167 159 * @return void … … 180 172 * appending or prepending to the ones previously set for this prefix. 181 173 * 182 * @param string $prefix The prefix183 * @param string[]|string $paths The PSR-0 root directories184 * @param bool $prepend Whether to prepend the directories174 * @param string $prefix The prefix 175 * @param list<string>|string $paths The PSR-0 root directories 176 * @param bool $prepend Whether to prepend the directories 185 177 * 186 178 * @return void … … 188 180 public function add($prefix, $paths, $prepend = false) 189 181 { 182 $paths = (array) $paths; 190 183 if (!$prefix) { 191 184 if ($prepend) { 192 185 $this->fallbackDirsPsr0 = array_merge( 193 (array)$paths,186 $paths, 194 187 $this->fallbackDirsPsr0 195 188 ); … … 197 190 $this->fallbackDirsPsr0 = array_merge( 198 191 $this->fallbackDirsPsr0, 199 (array)$paths192 $paths 200 193 ); 201 194 } … … 206 199 $first = $prefix[0]; 207 200 if (!isset($this->prefixesPsr0[$first][$prefix])) { 208 $this->prefixesPsr0[$first][$prefix] = (array)$paths;201 $this->prefixesPsr0[$first][$prefix] = $paths; 209 202 210 203 return; … … 212 205 if ($prepend) { 213 206 $this->prefixesPsr0[$first][$prefix] = array_merge( 214 (array)$paths,207 $paths, 215 208 $this->prefixesPsr0[$first][$prefix] 216 209 ); … … 218 211 $this->prefixesPsr0[$first][$prefix] = array_merge( 219 212 $this->prefixesPsr0[$first][$prefix], 220 (array)$paths213 $paths 221 214 ); 222 215 } … … 227 220 * appending or prepending to the ones previously set for this namespace. 228 221 * 229 * @param string $prefix The prefix/namespace, with trailing '\\'230 * @param string[]|string $paths The PSR-4 base directories231 * @param bool $prepend Whether to prepend the directories222 * @param string $prefix The prefix/namespace, with trailing '\\' 223 * @param list<string>|string $paths The PSR-4 base directories 224 * @param bool $prepend Whether to prepend the directories 232 225 * 233 226 * @throws \InvalidArgumentException … … 237 230 public function addPsr4($prefix, $paths, $prepend = false) 238 231 { 232 $paths = (array) $paths; 239 233 if (!$prefix) { 240 234 // Register directories for the root namespace. 241 235 if ($prepend) { 242 236 $this->fallbackDirsPsr4 = array_merge( 243 (array)$paths,237 $paths, 244 238 $this->fallbackDirsPsr4 245 239 ); … … 247 241 $this->fallbackDirsPsr4 = array_merge( 248 242 $this->fallbackDirsPsr4, 249 (array)$paths243 $paths 250 244 ); 251 245 } … … 257 251 } 258 252 $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; 259 $this->prefixDirsPsr4[$prefix] = (array)$paths;253 $this->prefixDirsPsr4[$prefix] = $paths; 260 254 } elseif ($prepend) { 261 255 // Prepend directories for an already registered namespace. 262 256 $this->prefixDirsPsr4[$prefix] = array_merge( 263 (array)$paths,257 $paths, 264 258 $this->prefixDirsPsr4[$prefix] 265 259 ); … … 268 262 $this->prefixDirsPsr4[$prefix] = array_merge( 269 263 $this->prefixDirsPsr4[$prefix], 270 (array)$paths264 $paths 271 265 ); 272 266 } … … 277 271 * replacing any others previously set for this prefix. 278 272 * 279 * @param string $prefix The prefix280 * @param string[]|string $paths The PSR-0 base directories273 * @param string $prefix The prefix 274 * @param list<string>|string $paths The PSR-0 base directories 281 275 * 282 276 * @return void … … 295 289 * replacing any others previously set for this namespace. 296 290 * 297 * @param string $prefix The prefix/namespace, with trailing '\\'298 * @param string[]|string $paths The PSR-4 base directories291 * @param string $prefix The prefix/namespace, with trailing '\\' 292 * @param list<string>|string $paths The PSR-4 base directories 299 293 * 300 294 * @throws \InvalidArgumentException … … 482 476 483 477 /** 484 * Returns the currently registered loaders indexed by their corresponding vendor directories.485 * 486 * @return self[]478 * Returns the currently registered loaders keyed by their corresponding vendor directories. 479 * 480 * @return array<string, self> 487 481 */ 488 482 public static function getRegisteredLoaders() -
ecomail/trunk/deps/composer/InstalledVersions.php
r2746515 r2925826 88 88 foreach (self::getInstalled() as $installed) { 89 89 if (isset($installed['versions'][$packageName])) { 90 return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);90 return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === \false; 91 91 } 92 92 } … … 107 107 public static function satisfies(VersionParser $parser, $packageName, $constraint) 108 108 { 109 $constraint = $parser->parseConstraints( $constraint);109 $constraint = $parser->parseConstraints((string) $constraint); 110 110 $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); 111 111 return $provided->matches($constraint); … … 286 286 $installed[] = self::$installedByVendor[$vendorDir]; 287 287 } elseif (\is_file($vendorDir . '/composer/installed.php')) { 288 $installed[] = self::$installedByVendor[$vendorDir] = (require $vendorDir . '/composer/installed.php'); 288 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 289 $required = (require $vendorDir . '/composer/installed.php'); 290 $installed[] = self::$installedByVendor[$vendorDir] = $required; 289 291 if (null === self::$installed && \strtr($vendorDir . '/composer', '\\', '/') === \strtr(__DIR__, '\\', '/')) { 290 292 self::$installed = $installed[\count($installed) - 1]; … … 297 299 // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 298 300 if (\substr(__DIR__, -8, 1) !== 'C') { 299 self::$installed = (require __DIR__ . '/installed.php'); 301 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 302 $required = (require __DIR__ . '/installed.php'); 303 self::$installed = $required; 300 304 } else { 301 305 self::$installed = array(); 302 306 } 303 307 } 304 $installed[] = self::$installed; 308 if (self::$installed !== array()) { 309 $installed[] = self::$installed; 310 } 305 311 return $installed; 306 312 } -
ecomail/trunk/deps/composer/autoload_real.php
r2865205 r2925826 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit3 945cc562aa3c9efcc88de30ba8cb8c85 class ComposerAutoloaderInit3f23579fad6f1c15c8058e1911a63a7e 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit3 945cc562aa3c9efcc88de30ba8cb8c8', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInit3f23579fad6f1c15c8058e1911a63a7e', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 27 spl_autoload_unregister(array('ComposerAutoloaderInit3 945cc562aa3c9efcc88de30ba8cb8c8', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInit3f23579fad6f1c15c8058e1911a63a7e', 'loadClassLoader')); 28 28 29 29 require __DIR__ . '/autoload_static.php'; 30 call_user_func(\Composer\Autoload\ComposerStaticInit3 945cc562aa3c9efcc88de30ba8cb8c8::getInitializer($loader));30 call_user_func(\Composer\Autoload\ComposerStaticInit3f23579fad6f1c15c8058e1911a63a7e::getInitializer($loader)); 31 31 32 32 $loader->register(true); 33 33 34 $filesToLoad = \Composer\Autoload\ComposerStaticInit3 945cc562aa3c9efcc88de30ba8cb8c8::$files;34 $filesToLoad = \Composer\Autoload\ComposerStaticInit3f23579fad6f1c15c8058e1911a63a7e::$files; 35 35 $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { 36 36 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
ecomail/trunk/deps/composer/autoload_static.php
r2865205 r2925826 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit3 945cc562aa3c9efcc88de30ba8cb8c87 class ComposerStaticInit3f23579fad6f1c15c8058e1911a63a7e 8 8 { 9 9 public static $files = array ( … … 301 301 { 302 302 return \Closure::bind(function () use ($loader) { 303 $loader->prefixLengthsPsr4 = ComposerStaticInit3 945cc562aa3c9efcc88de30ba8cb8c8::$prefixLengthsPsr4;304 $loader->prefixDirsPsr4 = ComposerStaticInit3 945cc562aa3c9efcc88de30ba8cb8c8::$prefixDirsPsr4;305 $loader->classMap = ComposerStaticInit3 945cc562aa3c9efcc88de30ba8cb8c8::$classMap;303 $loader->prefixLengthsPsr4 = ComposerStaticInit3f23579fad6f1c15c8058e1911a63a7e::$prefixLengthsPsr4; 304 $loader->prefixDirsPsr4 = ComposerStaticInit3f23579fad6f1c15c8058e1911a63a7e::$prefixDirsPsr4; 305 $loader->classMap = ComposerStaticInit3f23579fad6f1c15c8058e1911a63a7e::$classMap; 306 306 307 307 }, null, ClassLoader::class); -
ecomail/trunk/deps/composer/installed.php
r2865205 r2925826 3 3 namespace EcomailDeps; 4 4 5 return array('root' => array('name' => '__root__', 'pretty_version' => '2.1. 2', 'version' => '2.1.2.0', 'reference' => '3344a4fe69789967ef634695e5f42db4e73bb5f3', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev' => \true), 'versions' => array('__root__' => array('pretty_version' => '2.1.2', 'version' => '2.1.2.0', 'reference' => '3344a4fe69789967ef634695e5f42db4e73bb5f3', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev_requirement' => \false), 'ecomailcz/ecomail' => array('pretty_version' => 'v1.2.5', 'version' => '1.2.5.0', 'reference' => 'c7370229cf94a7129bb6386136da0df59424c9e1', 'type' => 'library', 'install_path' => __DIR__ . '/../ecomailcz/ecomail', 'aliases' => array(), 'dev_requirement' => \false), 'laravel/serializable-closure' => array('pretty_version' => 'v1.2.2', 'version' => '1.2.2.0', 'reference' => '47afb7fae28ed29057fdca37e16a84f90cc62fae', 'type' => 'library', 'install_path' => __DIR__ . '/../laravel/serializable-closure', 'aliases' => array(), 'dev_requirement' => \false), 'php-di/invoker' => array('pretty_version' => '2.3.3', 'version' => '2.3.3.0', 'reference' => 'cd6d9f267d1a3474bdddf1be1da079f01b942786', 'type' => 'library', 'install_path' => __DIR__ . '/../php-di/invoker', 'aliases' => array(), 'dev_requirement' => \false), 'php-di/php-di' => array('pretty_version' => '6.4.0', 'version' => '6.4.0.0', 'reference' => 'ae0f1b3b03d8b29dff81747063cbfd6276246cc4', 'type' => 'library', 'install_path' => __DIR__ . '/../php-di/php-di', 'aliases' => array(), 'dev_requirement' => \false), 'php-di/phpdoc-reader' => array('pretty_version' => '2.2.1', 'version' => '2.2.1.0', 'reference' => '66daff34cbd2627740ffec9469ffbac9f8c8185c', 'type' => 'library', 'install_path' => __DIR__ . '/../php-di/phpdoc-reader', 'aliases' => array(), 'dev_requirement' => \false), 'phpstan/phpdoc-parser' => array('pretty_version' => '0.5.7', 'version' => '0.5.7.0', 'reference' => '816e826ce0b7fb32098d8cb6de62511ce6021cea', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpdoc-parser', 'aliases' => array(), 'dev_requirement' => \false), 'psr/container' => array('pretty_version' => '1.1.2', 'version' => '1.1.2.0', 'reference' => '513e0666f7216c7459170d56df27dfcefe1689ea', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/container', 'aliases' => array(), 'dev_requirement' => \false), 'psr/container-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '^1.0')), 'wpify/asset' => array('pretty_version' => '1.2.7', 'version' => '1.2.7.0', 'reference' => '6bc587810b33e47a86120cf2897790454d0ade38', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/asset', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/custom-fields' => array('pretty_version' => '2.3.5', 'version' => '2.3.5.0', 'reference' => '3118c9c389b023f15d81c3cbe33a7b3a8bc5a492', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/custom-fields', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/model' => array('pretty_version' => '2.1.97', 'version' => '2.1.97.0', 'reference' => '25f3af2a3102dea0db0be35383b1ea94ca7c44ce', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/model', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/plugin-utils' => array('pretty_version' => '1.0.1', 'version' => '1.0.1.0', 'reference' => '0ace7f3a23bdfe3e2b2b05c72af79fa034c7e77a', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/plugin-utils', 'aliases' => array(), 'dev_requirement' => \false)));5 return array('root' => array('name' => '__root__', 'pretty_version' => '2.1.3', 'version' => '2.1.3.0', 'reference' => 'f97a0bf013e9d41042169faae1d74fb4e7a882f2', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev' => \true), 'versions' => array('__root__' => array('pretty_version' => '2.1.3', 'version' => '2.1.3.0', 'reference' => 'f97a0bf013e9d41042169faae1d74fb4e7a882f2', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev_requirement' => \false), 'ecomailcz/ecomail' => array('pretty_version' => 'v1.2.5', 'version' => '1.2.5.0', 'reference' => 'c7370229cf94a7129bb6386136da0df59424c9e1', 'type' => 'library', 'install_path' => __DIR__ . '/../ecomailcz/ecomail', 'aliases' => array(), 'dev_requirement' => \false), 'laravel/serializable-closure' => array('pretty_version' => 'v1.2.2', 'version' => '1.2.2.0', 'reference' => '47afb7fae28ed29057fdca37e16a84f90cc62fae', 'type' => 'library', 'install_path' => __DIR__ . '/../laravel/serializable-closure', 'aliases' => array(), 'dev_requirement' => \false), 'php-di/invoker' => array('pretty_version' => '2.3.3', 'version' => '2.3.3.0', 'reference' => 'cd6d9f267d1a3474bdddf1be1da079f01b942786', 'type' => 'library', 'install_path' => __DIR__ . '/../php-di/invoker', 'aliases' => array(), 'dev_requirement' => \false), 'php-di/php-di' => array('pretty_version' => '6.4.0', 'version' => '6.4.0.0', 'reference' => 'ae0f1b3b03d8b29dff81747063cbfd6276246cc4', 'type' => 'library', 'install_path' => __DIR__ . '/../php-di/php-di', 'aliases' => array(), 'dev_requirement' => \false), 'php-di/phpdoc-reader' => array('pretty_version' => '2.2.1', 'version' => '2.2.1.0', 'reference' => '66daff34cbd2627740ffec9469ffbac9f8c8185c', 'type' => 'library', 'install_path' => __DIR__ . '/../php-di/phpdoc-reader', 'aliases' => array(), 'dev_requirement' => \false), 'phpstan/phpdoc-parser' => array('pretty_version' => '0.5.7', 'version' => '0.5.7.0', 'reference' => '816e826ce0b7fb32098d8cb6de62511ce6021cea', 'type' => 'library', 'install_path' => __DIR__ . '/../phpstan/phpdoc-parser', 'aliases' => array(), 'dev_requirement' => \false), 'psr/container' => array('pretty_version' => '1.1.2', 'version' => '1.1.2.0', 'reference' => '513e0666f7216c7459170d56df27dfcefe1689ea', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/container', 'aliases' => array(), 'dev_requirement' => \false), 'psr/container-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '^1.0')), 'wpify/asset' => array('pretty_version' => '1.2.7', 'version' => '1.2.7.0', 'reference' => '6bc587810b33e47a86120cf2897790454d0ade38', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/asset', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/custom-fields' => array('pretty_version' => '2.3.5', 'version' => '2.3.5.0', 'reference' => '3118c9c389b023f15d81c3cbe33a7b3a8bc5a492', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/custom-fields', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/model' => array('pretty_version' => '2.1.97', 'version' => '2.1.97.0', 'reference' => '25f3af2a3102dea0db0be35383b1ea94ca7c44ce', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/model', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/plugin-utils' => array('pretty_version' => '1.0.1', 'version' => '1.0.1.0', 'reference' => '0ace7f3a23bdfe3e2b2b05c72af79fa034c7e77a', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/plugin-utils', 'aliases' => array(), 'dev_requirement' => \false))); -
ecomail/trunk/ecomail.php
r2865205 r2925826 3 3 * Plugin Name: Ecomail 4 4 * Description: Official Ecomail integration for WordPress and WooCommerce 5 * Version: 2.1. 25 * Version: 2.1.3 6 6 * Requires PHP: 7.4.0 7 7 * Requires at least: 5.3.0 -
ecomail/trunk/readme.txt
r2865205 r2925826 6 6 Tested up to: 6.0 7 7 Requires PHP: 7.4 8 Stable tag: 2.1. 28 Stable tag: 2.1.3 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 39 39 40 40 == Changelog == 41 = 2.1.3 = 42 * Full size image in cart tracking 43 41 44 = 2.1.2 = 42 45 * Add support for subscription on pay for order page -
ecomail/trunk/src/WooCommerce.php
r2865205 r2925826 235 235 $products[] = array( 236 236 'productId' => $item['product_id'], 237 'img_url' => wp_get_attachment_image_url( $prod->get_image_id() ),237 'img_url' => wp_get_attachment_image_url( $prod->get_image_id(), 'full' ), 238 238 'url' => $prod->get_permalink(), 239 239 'name' => $prod->get_name(), -
ecomail/trunk/vendor/autoload.php
r2865205 r2925826 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit 595f71980b6d97cb112c7a39698b0692::getLoader();25 return ComposerAutoloaderInit8b09f69cc1857dd70671c6010ce5955b::getLoader(); -
ecomail/trunk/vendor/composer/ClassLoader.php
r2864675 r2925826 46 46 private static $includeFile; 47 47 48 /** @var ?string*/48 /** @var string|null */ 49 49 private $vendorDir; 50 50 51 51 // PSR-4 52 52 /** 53 * @var array[] 54 * @psalm-var array<string, array<string, int>> 53 * @var array<string, array<string, int>> 55 54 */ 56 55 private $prefixLengthsPsr4 = array(); 57 56 /** 58 * @var array[] 59 * @psalm-var array<string, array<int, string>> 57 * @var array<string, list<string>> 60 58 */ 61 59 private $prefixDirsPsr4 = array(); 62 60 /** 63 * @var array[] 64 * @psalm-var array<string, string> 61 * @var list<string> 65 62 */ 66 63 private $fallbackDirsPsr4 = array(); … … 68 65 // PSR-0 69 66 /** 70 * @var array[] 71 * @psalm-var array<string, array<string, string[]>> 67 * List of PSR-0 prefixes 68 * 69 * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2'))) 70 * 71 * @var array<string, array<string, list<string>>> 72 72 */ 73 73 private $prefixesPsr0 = array(); 74 74 /** 75 * @var array[] 76 * @psalm-var array<string, string> 75 * @var list<string> 77 76 */ 78 77 private $fallbackDirsPsr0 = array(); … … 82 81 83 82 /** 84 * @var string[] 85 * @psalm-var array<string, string> 83 * @var array<string, string> 86 84 */ 87 85 private $classMap = array(); … … 91 89 92 90 /** 93 * @var bool[] 94 * @psalm-var array<string, bool> 91 * @var array<string, bool> 95 92 */ 96 93 private $missingClasses = array(); 97 94 98 /** @var ?string*/95 /** @var string|null */ 99 96 private $apcuPrefix; 100 97 101 98 /** 102 * @var self[]99 * @var array<string, self> 103 100 */ 104 101 private static $registeredLoaders = array(); 105 102 106 103 /** 107 * @param ?string$vendorDir104 * @param string|null $vendorDir 108 105 */ 109 106 public function __construct($vendorDir = null) … … 114 111 115 112 /** 116 * @return string[]113 * @return array<string, list<string>> 117 114 */ 118 115 public function getPrefixes() … … 126 123 127 124 /** 128 * @return array[] 129 * @psalm-return array<string, array<int, string>> 125 * @return array<string, list<string>> 130 126 */ 131 127 public function getPrefixesPsr4() … … 135 131 136 132 /** 137 * @return array[] 138 * @psalm-return array<string, string> 133 * @return list<string> 139 134 */ 140 135 public function getFallbackDirs() … … 144 139 145 140 /** 146 * @return array[] 147 * @psalm-return array<string, string> 141 * @return list<string> 148 142 */ 149 143 public function getFallbackDirsPsr4() … … 153 147 154 148 /** 155 * @return string[] Array of classname => path 156 * @psalm-return array<string, string> 149 * @return array<string, string> Array of classname => path 157 150 */ 158 151 public function getClassMap() … … 162 155 163 156 /** 164 * @param string[] $classMap Class to filename map 165 * @psalm-param array<string, string> $classMap 157 * @param array<string, string> $classMap Class to filename map 166 158 * 167 159 * @return void … … 180 172 * appending or prepending to the ones previously set for this prefix. 181 173 * 182 * @param string $prefix The prefix183 * @param string[]|string $paths The PSR-0 root directories184 * @param bool $prepend Whether to prepend the directories174 * @param string $prefix The prefix 175 * @param list<string>|string $paths The PSR-0 root directories 176 * @param bool $prepend Whether to prepend the directories 185 177 * 186 178 * @return void … … 188 180 public function add($prefix, $paths, $prepend = false) 189 181 { 182 $paths = (array) $paths; 190 183 if (!$prefix) { 191 184 if ($prepend) { 192 185 $this->fallbackDirsPsr0 = array_merge( 193 (array)$paths,186 $paths, 194 187 $this->fallbackDirsPsr0 195 188 ); … … 197 190 $this->fallbackDirsPsr0 = array_merge( 198 191 $this->fallbackDirsPsr0, 199 (array)$paths192 $paths 200 193 ); 201 194 } … … 206 199 $first = $prefix[0]; 207 200 if (!isset($this->prefixesPsr0[$first][$prefix])) { 208 $this->prefixesPsr0[$first][$prefix] = (array)$paths;201 $this->prefixesPsr0[$first][$prefix] = $paths; 209 202 210 203 return; … … 212 205 if ($prepend) { 213 206 $this->prefixesPsr0[$first][$prefix] = array_merge( 214 (array)$paths,207 $paths, 215 208 $this->prefixesPsr0[$first][$prefix] 216 209 ); … … 218 211 $this->prefixesPsr0[$first][$prefix] = array_merge( 219 212 $this->prefixesPsr0[$first][$prefix], 220 (array)$paths213 $paths 221 214 ); 222 215 } … … 227 220 * appending or prepending to the ones previously set for this namespace. 228 221 * 229 * @param string $prefix The prefix/namespace, with trailing '\\'230 * @param string[]|string $paths The PSR-4 base directories231 * @param bool $prepend Whether to prepend the directories222 * @param string $prefix The prefix/namespace, with trailing '\\' 223 * @param list<string>|string $paths The PSR-4 base directories 224 * @param bool $prepend Whether to prepend the directories 232 225 * 233 226 * @throws \InvalidArgumentException … … 237 230 public function addPsr4($prefix, $paths, $prepend = false) 238 231 { 232 $paths = (array) $paths; 239 233 if (!$prefix) { 240 234 // Register directories for the root namespace. 241 235 if ($prepend) { 242 236 $this->fallbackDirsPsr4 = array_merge( 243 (array)$paths,237 $paths, 244 238 $this->fallbackDirsPsr4 245 239 ); … … 247 241 $this->fallbackDirsPsr4 = array_merge( 248 242 $this->fallbackDirsPsr4, 249 (array)$paths243 $paths 250 244 ); 251 245 } … … 257 251 } 258 252 $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; 259 $this->prefixDirsPsr4[$prefix] = (array)$paths;253 $this->prefixDirsPsr4[$prefix] = $paths; 260 254 } elseif ($prepend) { 261 255 // Prepend directories for an already registered namespace. 262 256 $this->prefixDirsPsr4[$prefix] = array_merge( 263 (array)$paths,257 $paths, 264 258 $this->prefixDirsPsr4[$prefix] 265 259 ); … … 268 262 $this->prefixDirsPsr4[$prefix] = array_merge( 269 263 $this->prefixDirsPsr4[$prefix], 270 (array)$paths264 $paths 271 265 ); 272 266 } … … 277 271 * replacing any others previously set for this prefix. 278 272 * 279 * @param string $prefix The prefix280 * @param string[]|string $paths The PSR-0 base directories273 * @param string $prefix The prefix 274 * @param list<string>|string $paths The PSR-0 base directories 281 275 * 282 276 * @return void … … 295 289 * replacing any others previously set for this namespace. 296 290 * 297 * @param string $prefix The prefix/namespace, with trailing '\\'298 * @param string[]|string $paths The PSR-4 base directories291 * @param string $prefix The prefix/namespace, with trailing '\\' 292 * @param list<string>|string $paths The PSR-4 base directories 299 293 * 300 294 * @throws \InvalidArgumentException … … 482 476 483 477 /** 484 * Returns the currently registered loaders indexed by their corresponding vendor directories.485 * 486 * @return self[]478 * Returns the currently registered loaders keyed by their corresponding vendor directories. 479 * 480 * @return array<string, self> 487 481 */ 488 482 public static function getRegisteredLoaders() -
ecomail/trunk/vendor/composer/InstalledVersions.php
r2746515 r2925826 99 99 foreach (self::getInstalled() as $installed) { 100 100 if (isset($installed['versions'][$packageName])) { 101 return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);101 return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false; 102 102 } 103 103 } … … 120 120 public static function satisfies(VersionParser $parser, $packageName, $constraint) 121 121 { 122 $constraint = $parser->parseConstraints( $constraint);122 $constraint = $parser->parseConstraints((string) $constraint); 123 123 $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); 124 124 … … 329 329 $installed[] = self::$installedByVendor[$vendorDir]; 330 330 } elseif (is_file($vendorDir.'/composer/installed.php')) { 331 $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; 331 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 332 $required = require $vendorDir.'/composer/installed.php'; 333 $installed[] = self::$installedByVendor[$vendorDir] = $required; 332 334 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 333 335 self::$installed = $installed[count($installed) - 1]; … … 341 343 // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 342 344 if (substr(__DIR__, -8, 1) !== 'C') { 343 self::$installed = require __DIR__ . '/installed.php'; 345 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 346 $required = require __DIR__ . '/installed.php'; 347 self::$installed = $required; 344 348 } else { 345 349 self::$installed = array(); 346 350 } 347 351 } 348 $installed[] = self::$installed; 352 353 if (self::$installed !== array()) { 354 $installed[] = self::$installed; 355 } 349 356 350 357 return $installed; -
ecomail/trunk/vendor/composer/autoload_real.php
r2865205 r2925826 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 595f71980b6d97cb112c7a39698b06925 class ComposerAutoloaderInit8b09f69cc1857dd70671c6010ce5955b 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit 595f71980b6d97cb112c7a39698b0692', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInit8b09f69cc1857dd70671c6010ce5955b', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 27 spl_autoload_unregister(array('ComposerAutoloaderInit 595f71980b6d97cb112c7a39698b0692', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInit8b09f69cc1857dd70671c6010ce5955b', 'loadClassLoader')); 28 28 29 29 require __DIR__ . '/autoload_static.php'; 30 call_user_func(\Composer\Autoload\ComposerStaticInit 595f71980b6d97cb112c7a39698b0692::getInitializer($loader));30 call_user_func(\Composer\Autoload\ComposerStaticInit8b09f69cc1857dd70671c6010ce5955b::getInitializer($loader)); 31 31 32 32 $loader->register(true); -
ecomail/trunk/vendor/composer/autoload_static.php
r2865205 r2925826 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 595f71980b6d97cb112c7a39698b06927 class ComposerStaticInit8b09f69cc1857dd70671c6010ce5955b 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 43 43 { 44 44 return \Closure::bind(function () use ($loader) { 45 $loader->prefixLengthsPsr4 = ComposerStaticInit 595f71980b6d97cb112c7a39698b0692::$prefixLengthsPsr4;46 $loader->prefixDirsPsr4 = ComposerStaticInit 595f71980b6d97cb112c7a39698b0692::$prefixDirsPsr4;47 $loader->classMap = ComposerStaticInit 595f71980b6d97cb112c7a39698b0692::$classMap;45 $loader->prefixLengthsPsr4 = ComposerStaticInit8b09f69cc1857dd70671c6010ce5955b::$prefixLengthsPsr4; 46 $loader->prefixDirsPsr4 = ComposerStaticInit8b09f69cc1857dd70671c6010ce5955b::$prefixDirsPsr4; 47 $loader->classMap = ComposerStaticInit8b09f69cc1857dd70671c6010ce5955b::$classMap; 48 48 49 49 }, null, ClassLoader::class); -
ecomail/trunk/vendor/composer/installed.php
r2865205 r2925826 2 2 'root' => array( 3 3 'name' => 'ecomailcz/ecomail-woocommerce', 4 'pretty_version' => '2.1. 2',5 'version' => '2.1. 2.0',6 'reference' => ' 3344a4fe69789967ef634695e5f42db4e73bb5f3',4 'pretty_version' => '2.1.3', 5 'version' => '2.1.3.0', 6 'reference' => 'f97a0bf013e9d41042169faae1d74fb4e7a882f2', 7 7 'type' => 'project', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'ecomailcz/ecomail-woocommerce' => array( 14 'pretty_version' => '2.1. 2',15 'version' => '2.1. 2.0',16 'reference' => ' 3344a4fe69789967ef634695e5f42db4e73bb5f3',14 'pretty_version' => '2.1.3', 15 'version' => '2.1.3.0', 16 'reference' => 'f97a0bf013e9d41042169faae1d74fb4e7a882f2', 17 17 'type' => 'project', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.