Changeset 2990514
- Timestamp:
- 11/07/2023 08:07:27 AM (2 years ago)
- Location:
- recras/trunk
- Files:
-
- 16 edited
-
bin/install-wp-tests.sh (modified) (2 diffs)
-
changelog.md (modified) (1 diff)
-
composer.json (modified) (1 diff)
-
lang/recras-de_DE.mo (modified) (previous)
-
lang/recras-de_DE.po (modified) (6 diffs)
-
lang/recras-en_GB.mo (modified) (previous)
-
lang/recras-en_GB.po (modified) (6 diffs)
-
lang/recras-nl_NL.mo (modified) (previous)
-
lang/recras-nl_NL.po (modified) (7 diffs)
-
package.json (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
recras-wordpress-plugin.php (modified) (1 diff)
-
src/ContactForm.php (modified) (1 diff)
-
vendor/composer/ClassLoader.php (modified) (24 diffs)
-
vendor/composer/autoload_real.php (modified) (2 diffs)
-
vendor/composer/autoload_static.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
recras/trunk/bin/install-wp-tests.sh
r2584048 r2990514 1 1 #!/usr/bin/env bash 2 2 3 # Based on https://github.com/wp-cli/scaffold-command/blob/ma ster/templates/install-wp-tests.sh4 # Last updated: 202 1-08-083 # Based on https://github.com/wp-cli/scaffold-command/blob/main/templates/install-wp-tests.sh 4 # Last updated: 2023-08-08 5 5 # Usage: $0 [db-name] [db-user] [db-pass] [db-host] [wp-version] [skip-db-create] 6 6 … … 92 92 fi 93 93 94 download https://raw.github .com/markoheijnen/wp-mysqli/master/db.php $WP_CORE_DIR/wp-content/db.php94 download https://raw.githubusercontent.com/markoheijnen/wp-mysqli/master/db.php $WP_CORE_DIR/wp-content/db.php 95 95 } 96 96 -
recras/trunk/changelog.md
r2953659 r2990514 1 1 # Changelog 2 3 ## 6.0.0 (2023-11-07) 4 * Removed support for Composer Installers 5 * Updated "Tested up to" version to 6.4 2 6 3 7 ## 5.5.2 (2023-08-15) -
recras/trunk/composer.json
r2724556 r2990514 9 9 }, 10 10 "require": { 11 "composer/installers": "1.9.0",12 11 "ext-ctype": "*", 13 12 "ext-curl": "*", 14 13 "ext-json": "*", 15 "php": ">=7. 1"14 "php": ">=7.2" 16 15 }, 17 16 "require-dev": { 18 "phpunit/phpunit": " 7.5.20",19 "wp-cli/wp-cli": "2. 5.0"17 "phpunit/phpunit": "9.6.10", 18 "wp-cli/wp-cli": "2.8.1" 20 19 }, 21 20 "authors": [ -
recras/trunk/lang/recras-de_DE.po
r2953659 r2990514 2 2 msgstr "" 3 3 "Project-Id-Version: Recras WordPress plugin\n" 4 "POT-Creation-Date: 2023-0 8-03 11:49+0200\n"5 "PO-Revision-Date: 2023-0 8-03 11:49+0200\n"4 "POT-Creation-Date: 2023-09-29 14:56+0200\n" 5 "PO-Revision-Date: 2023-09-29 14:56+0200\n" 6 6 "Last-Translator: Sander de Jong <sander@recras.nl>\n" 7 7 "Language-Team: Recras\n" … … 99 99 100 100 #: editor/form-arrangement.php:44 editor/form-booking.php:82 101 #: js/gutenberg-package.js:127 src/ContactForm.php:28 1101 #: js/gutenberg-package.js:127 src/ContactForm.php:285 102 102 msgid "hh:mm" 103 103 msgstr "UU:MM" … … 174 174 msgstr "" 175 175 176 #: editor/form-booking.php:73 src/ContactForm.php:26 4 src/ContactForm.php:306176 #: editor/form-booking.php:73 src/ContactForm.php:268 src/ContactForm.php:310 177 177 msgid "yyyy-mm-dd" 178 178 msgstr "JJJJ-MM-TT" … … 301 301 #: editor/form-contact.php:62 editor/form-contact.php:109 302 302 #: js/gutenberg-contactform.js:14 js/gutenberg-contactform.js:27 303 #: src/ContactForm.php:11 4303 #: src/ContactForm.php:118 304 304 msgid "Send" 305 305 msgstr "" … … 478 478 479 479 #: src/Arrangement.php:38 src/Arrangement.php:243 src/Bookprocess.php:89 480 #: src/ContactForm.php:71 480 #: src/ContactForm.php:71 src/ContactForm.php:75 481 481 #, php-format 482 482 msgid "Error: %s" … … 520 520 msgstr "" 521 521 522 #: src/ContactForm.php:110 522 #: src/ContactForm.php:75 523 msgid "Contact form might be deleted" 524 msgstr "" 525 526 #: src/ContactForm.php:114 523 527 msgid "Error: package is set, but contact form does not support packages" 524 528 msgstr "" 525 529 526 #: src/ContactForm.php:37 2530 #: src/ContactForm.php:376 527 531 msgid "Unknown" 528 532 msgstr "Unbekannt" 529 533 530 #: src/ContactForm.php:37 3534 #: src/ContactForm.php:377 531 535 msgid "Male" 532 536 msgstr "Mann" 533 537 534 #: src/ContactForm.php:37 4538 #: src/ContactForm.php:378 535 539 msgid "Female" 536 540 msgstr "Frau" 537 541 538 #: src/ContactForm.php:51 0542 #: src/ContactForm.php:514 539 543 msgid "(required)" 540 544 msgstr "(erforderlich)" 541 545 542 #: src/ContactForm.php:53 5546 #: src/ContactForm.php:539 543 547 msgid "Clear choice" 544 548 msgstr "" -
recras/trunk/lang/recras-en_GB.po
r2953659 r2990514 2 2 msgstr "" 3 3 "Project-Id-Version: Recras WordPress plugin\n" 4 "POT-Creation-Date: 2023-0 8-03 11:49+0200\n"5 "PO-Revision-Date: 2023-0 8-03 11:49+0200\n"4 "POT-Creation-Date: 2023-09-29 14:56+0200\n" 5 "PO-Revision-Date: 2023-09-29 14:56+0200\n" 6 6 "Last-Translator: Sander de Jong <sander@recras.nl>\n" 7 7 "Language-Team: Recras\n" … … 96 96 97 97 #: editor/form-arrangement.php:44 editor/form-booking.php:82 98 #: js/gutenberg-package.js:127 src/ContactForm.php:28 198 #: js/gutenberg-package.js:127 src/ContactForm.php:285 99 99 msgid "hh:mm" 100 100 msgstr "" … … 171 171 msgstr "" 172 172 173 #: editor/form-booking.php:73 src/ContactForm.php:26 4 src/ContactForm.php:306173 #: editor/form-booking.php:73 src/ContactForm.php:268 src/ContactForm.php:310 174 174 msgid "yyyy-mm-dd" 175 175 msgstr "" … … 298 298 #: editor/form-contact.php:62 editor/form-contact.php:109 299 299 #: js/gutenberg-contactform.js:14 js/gutenberg-contactform.js:27 300 #: src/ContactForm.php:11 4300 #: src/ContactForm.php:118 301 301 msgid "Send" 302 302 msgstr "" … … 475 475 476 476 #: src/Arrangement.php:38 src/Arrangement.php:243 src/Bookprocess.php:89 477 #: src/ContactForm.php:71 477 #: src/ContactForm.php:71 src/ContactForm.php:75 478 478 #, php-format 479 479 msgid "Error: %s" … … 517 517 msgstr "" 518 518 519 #: src/ContactForm.php:110 519 #: src/ContactForm.php:75 520 msgid "Contact form might be deleted" 521 msgstr "" 522 523 #: src/ContactForm.php:114 520 524 msgid "Error: package is set, but contact form does not support packages" 521 525 msgstr "" 522 526 523 #: src/ContactForm.php:37 2527 #: src/ContactForm.php:376 524 528 msgid "Unknown" 525 529 msgstr "" 526 530 527 #: src/ContactForm.php:37 3531 #: src/ContactForm.php:377 528 532 msgid "Male" 529 533 msgstr "" 530 534 531 #: src/ContactForm.php:37 4535 #: src/ContactForm.php:378 532 536 msgid "Female" 533 537 msgstr "" 534 538 535 #: src/ContactForm.php:51 0539 #: src/ContactForm.php:514 536 540 msgid "(required)" 537 541 msgstr "" 538 542 539 #: src/ContactForm.php:53 5543 #: src/ContactForm.php:539 540 544 msgid "Clear choice" 541 545 msgstr "" -
recras/trunk/lang/recras-nl_NL.po
r2953659 r2990514 2 2 msgstr "" 3 3 "Project-Id-Version: Recras WordPress plugin\n" 4 "POT-Creation-Date: 2023-0 8-03 11:49+0200\n"5 "PO-Revision-Date: 2023-0 8-03 11:50+0200\n"4 "POT-Creation-Date: 2023-09-29 14:56+0200\n" 5 "PO-Revision-Date: 2023-09-29 14:56+0200\n" 6 6 "Last-Translator: Sander de Jong <sander@recras.nl>\n" 7 7 "Language-Team: Recras\n" … … 99 99 100 100 #: editor/form-arrangement.php:44 editor/form-booking.php:82 101 #: js/gutenberg-package.js:127 src/ContactForm.php:28 1101 #: js/gutenberg-package.js:127 src/ContactForm.php:285 102 102 msgid "hh:mm" 103 103 msgstr "uu:mm" … … 181 181 msgstr "Datum vooraf invullen (vereist exact 1 geselecteerd arrangement)" 182 182 183 #: editor/form-booking.php:73 src/ContactForm.php:26 4 src/ContactForm.php:306183 #: editor/form-booking.php:73 src/ContactForm.php:268 src/ContactForm.php:310 184 184 msgid "yyyy-mm-dd" 185 185 msgstr "jjjj-mm-dd" … … 319 319 #: editor/form-contact.php:62 editor/form-contact.php:109 320 320 #: js/gutenberg-contactform.js:14 js/gutenberg-contactform.js:27 321 #: src/ContactForm.php:11 4321 #: src/ContactForm.php:118 322 322 msgid "Send" 323 323 msgstr "Versturen" … … 505 505 506 506 #: src/Arrangement.php:38 src/Arrangement.php:243 src/Bookprocess.php:89 507 #: src/ContactForm.php:71 507 #: src/ContactForm.php:71 src/ContactForm.php:75 508 508 #, php-format 509 509 msgid "Error: %s" … … 547 547 msgstr "Fout: boekproces bestaat niet" 548 548 549 #: src/ContactForm.php:110 549 #: src/ContactForm.php:75 550 msgid "Contact form might be deleted" 551 msgstr "Contactformulier is mogelijk verwijderd" 552 553 #: src/ContactForm.php:114 550 554 msgid "Error: package is set, but contact form does not support packages" 551 555 msgstr "" … … 553 557 "arrangementen" 554 558 555 #: src/ContactForm.php:37 2559 #: src/ContactForm.php:376 556 560 msgid "Unknown" 557 561 msgstr "Onbekend" 558 562 559 #: src/ContactForm.php:37 3563 #: src/ContactForm.php:377 560 564 msgid "Male" 561 565 msgstr "Man" 562 566 563 #: src/ContactForm.php:37 4567 #: src/ContactForm.php:378 564 568 msgid "Female" 565 569 msgstr "Vrouw" 566 570 567 #: src/ContactForm.php:51 0571 #: src/ContactForm.php:514 568 572 msgid "(required)" 569 573 msgstr "(verplicht)" 570 574 571 #: src/ContactForm.php:53 5575 #: src/ContactForm.php:539 572 576 msgid "Clear choice" 573 577 msgstr "Keuze wissen" -
recras/trunk/package.json
r2953659 r2990514 1 1 { 2 2 "name": "recras-wordpress-plugin", 3 "version": " 5.5.2",3 "version": "6.0.0", 4 4 "description": "Recras WordPress plugin", 5 5 "main": "index.js", -
recras/trunk/readme.txt
r2953659 r2990514 2 2 Contributors: zanderz 3 3 Tags: recras, recreation, reservation, booking, voucher 4 Tested up to: 6. 35 Stable tag: 5.5.24 Tested up to: 6.4 5 Stable tag: 6.0.0 6 6 License: GPLv2 or later 7 7 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 81 81 == Changelog == 82 82 83 = 6.0.0 = 84 * Removed support for Composer Installers 85 * Updated "Tested up to" version to 6.4 86 83 87 = 5.5.2 = 84 88 * **No functional changes** -
recras/trunk/recras-wordpress-plugin.php
r2953659 r2990514 3 3 Plugin Name: Recras WordPress Plugin 4 4 Plugin URI: https://www.recras.nl/ 5 Version: 5.5.25 Version: 6.0.0 6 6 Description: Easily integrate your Recras data into your own site 7 Requires at least: 6. 17 Requires at least: 6.2 8 8 Requires PHP: 7.2.0 9 9 Author: Recras -
recras/trunk/src/ContactForm.php
r2915644 r2990514 70 70 // Not a form, but an error 71 71 return sprintf(__('Error: %s', Plugin::TEXT_DOMAIN), $form); 72 } 73 74 if (!property_exists($form, 'naam') || !property_exists($form, 'Velden')) { 75 return sprintf(__('Error: %s', Plugin::TEXT_DOMAIN), __('Contact form might be deleted', Plugin::TEXT_DOMAIN)); 72 76 } 73 77 -
recras/trunk/vendor/composer/ClassLoader.php
r2008432 r2990514 38 38 * @author Fabien Potencier <fabien@symfony.com> 39 39 * @author Jordi Boggiano <j.boggiano@seld.be> 40 * @see http ://www.php-fig.org/psr/psr-0/41 * @see http ://www.php-fig.org/psr/psr-4/40 * @see https://www.php-fig.org/psr/psr-0/ 41 * @see https://www.php-fig.org/psr/psr-4/ 42 42 */ 43 43 class ClassLoader 44 44 { 45 /** @var \Closure(string):void */ 46 private static $includeFile; 47 48 /** @var string|null */ 49 private $vendorDir; 50 45 51 // PSR-4 52 /** 53 * @var array<string, array<string, int>> 54 */ 46 55 private $prefixLengthsPsr4 = array(); 56 /** 57 * @var array<string, list<string>> 58 */ 47 59 private $prefixDirsPsr4 = array(); 60 /** 61 * @var list<string> 62 */ 48 63 private $fallbackDirsPsr4 = array(); 49 64 50 65 // PSR-0 66 /** 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 */ 51 73 private $prefixesPsr0 = array(); 74 /** 75 * @var list<string> 76 */ 52 77 private $fallbackDirsPsr0 = array(); 53 78 79 /** @var bool */ 54 80 private $useIncludePath = false; 81 82 /** 83 * @var array<string, string> 84 */ 55 85 private $classMap = array(); 86 87 /** @var bool */ 56 88 private $classMapAuthoritative = false; 89 90 /** 91 * @var array<string, bool> 92 */ 57 93 private $missingClasses = array(); 94 95 /** @var string|null */ 58 96 private $apcuPrefix; 59 97 98 /** 99 * @var array<string, self> 100 */ 101 private static $registeredLoaders = array(); 102 103 /** 104 * @param string|null $vendorDir 105 */ 106 public function __construct($vendorDir = null) 107 { 108 $this->vendorDir = $vendorDir; 109 self::initializeIncludeClosure(); 110 } 111 112 /** 113 * @return array<string, list<string>> 114 */ 60 115 public function getPrefixes() 61 116 { 62 117 if (!empty($this->prefixesPsr0)) { 63 return call_user_func_array('array_merge', $this->prefixesPsr0);118 return call_user_func_array('array_merge', array_values($this->prefixesPsr0)); 64 119 } 65 120 … … 67 122 } 68 123 124 /** 125 * @return array<string, list<string>> 126 */ 69 127 public function getPrefixesPsr4() 70 128 { … … 72 130 } 73 131 132 /** 133 * @return list<string> 134 */ 74 135 public function getFallbackDirs() 75 136 { … … 77 138 } 78 139 140 /** 141 * @return list<string> 142 */ 79 143 public function getFallbackDirsPsr4() 80 144 { … … 82 146 } 83 147 148 /** 149 * @return array<string, string> Array of classname => path 150 */ 84 151 public function getClassMap() 85 152 { … … 88 155 89 156 /** 90 * @param array $classMap Class to filename map 157 * @param array<string, string> $classMap Class to filename map 158 * 159 * @return void 91 160 */ 92 161 public function addClassMap(array $classMap) … … 103 172 * appending or prepending to the ones previously set for this prefix. 104 173 * 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 174 * @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 177 * 178 * @return void 108 179 */ 109 180 public function add($prefix, $paths, $prepend = false) 110 181 { 182 $paths = (array) $paths; 111 183 if (!$prefix) { 112 184 if ($prepend) { 113 185 $this->fallbackDirsPsr0 = array_merge( 114 (array)$paths,186 $paths, 115 187 $this->fallbackDirsPsr0 116 188 ); … … 118 190 $this->fallbackDirsPsr0 = array_merge( 119 191 $this->fallbackDirsPsr0, 120 (array)$paths192 $paths 121 193 ); 122 194 } … … 127 199 $first = $prefix[0]; 128 200 if (!isset($this->prefixesPsr0[$first][$prefix])) { 129 $this->prefixesPsr0[$first][$prefix] = (array)$paths;201 $this->prefixesPsr0[$first][$prefix] = $paths; 130 202 131 203 return; … … 133 205 if ($prepend) { 134 206 $this->prefixesPsr0[$first][$prefix] = array_merge( 135 (array)$paths,207 $paths, 136 208 $this->prefixesPsr0[$first][$prefix] 137 209 ); … … 139 211 $this->prefixesPsr0[$first][$prefix] = array_merge( 140 212 $this->prefixesPsr0[$first][$prefix], 141 (array)$paths213 $paths 142 214 ); 143 215 } … … 148 220 * appending or prepending to the ones previously set for this namespace. 149 221 * 150 * @param string $prefix The prefix/namespace, with trailing '\\'151 * @param array|string $paths The PSR-4 base directories152 * @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 153 225 * 154 226 * @throws \InvalidArgumentException 227 * 228 * @return void 155 229 */ 156 230 public function addPsr4($prefix, $paths, $prepend = false) 157 231 { 232 $paths = (array) $paths; 158 233 if (!$prefix) { 159 234 // Register directories for the root namespace. 160 235 if ($prepend) { 161 236 $this->fallbackDirsPsr4 = array_merge( 162 (array)$paths,237 $paths, 163 238 $this->fallbackDirsPsr4 164 239 ); … … 166 241 $this->fallbackDirsPsr4 = array_merge( 167 242 $this->fallbackDirsPsr4, 168 (array)$paths243 $paths 169 244 ); 170 245 } … … 176 251 } 177 252 $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; 178 $this->prefixDirsPsr4[$prefix] = (array)$paths;253 $this->prefixDirsPsr4[$prefix] = $paths; 179 254 } elseif ($prepend) { 180 255 // Prepend directories for an already registered namespace. 181 256 $this->prefixDirsPsr4[$prefix] = array_merge( 182 (array)$paths,257 $paths, 183 258 $this->prefixDirsPsr4[$prefix] 184 259 ); … … 187 262 $this->prefixDirsPsr4[$prefix] = array_merge( 188 263 $this->prefixDirsPsr4[$prefix], 189 (array)$paths264 $paths 190 265 ); 191 266 } … … 196 271 * replacing any others previously set for this prefix. 197 272 * 198 * @param string $prefix The prefix 199 * @param array|string $paths The PSR-0 base directories 273 * @param string $prefix The prefix 274 * @param list<string>|string $paths The PSR-0 base directories 275 * 276 * @return void 200 277 */ 201 278 public function set($prefix, $paths) … … 212 289 * replacing any others previously set for this namespace. 213 290 * 214 * @param string $prefix The prefix/namespace, with trailing '\\'215 * @param array|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 216 293 * 217 294 * @throws \InvalidArgumentException 295 * 296 * @return void 218 297 */ 219 298 public function setPsr4($prefix, $paths) … … 235 314 * 236 315 * @param bool $useIncludePath 316 * 317 * @return void 237 318 */ 238 319 public function setUseIncludePath($useIncludePath) … … 257 338 * 258 339 * @param bool $classMapAuthoritative 340 * 341 * @return void 259 342 */ 260 343 public function setClassMapAuthoritative($classMapAuthoritative) … … 277 360 * 278 361 * @param string|null $apcuPrefix 362 * 363 * @return void 279 364 */ 280 365 public function setApcuPrefix($apcuPrefix) 281 366 { 282 $this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null;367 $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null; 283 368 } 284 369 … … 297 382 * 298 383 * @param bool $prepend Whether to prepend the autoloader or not 384 * 385 * @return void 299 386 */ 300 387 public function register($prepend = false) 301 388 { 302 389 spl_autoload_register(array($this, 'loadClass'), true, $prepend); 390 391 if (null === $this->vendorDir) { 392 return; 393 } 394 395 if ($prepend) { 396 self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders; 397 } else { 398 unset(self::$registeredLoaders[$this->vendorDir]); 399 self::$registeredLoaders[$this->vendorDir] = $this; 400 } 303 401 } 304 402 305 403 /** 306 404 * Unregisters this instance as an autoloader. 405 * 406 * @return void 307 407 */ 308 408 public function unregister() 309 409 { 310 410 spl_autoload_unregister(array($this, 'loadClass')); 411 412 if (null !== $this->vendorDir) { 413 unset(self::$registeredLoaders[$this->vendorDir]); 414 } 311 415 } 312 416 … … 315 419 * 316 420 * @param string $class The name of the class 317 * @return bool|null True if loaded, null otherwise421 * @return true|null True if loaded, null otherwise 318 422 */ 319 423 public function loadClass($class) 320 424 { 321 425 if ($file = $this->findFile($class)) { 322 includeFile($file); 426 $includeFile = self::$includeFile; 427 $includeFile($file); 323 428 324 429 return true; 325 430 } 431 432 return null; 326 433 } 327 434 … … 368 475 } 369 476 477 /** 478 * Returns the currently registered loaders keyed by their corresponding vendor directories. 479 * 480 * @return array<string, self> 481 */ 482 public static function getRegisteredLoaders() 483 { 484 return self::$registeredLoaders; 485 } 486 487 /** 488 * @param string $class 489 * @param string $ext 490 * @return string|false 491 */ 370 492 private function findFileWithExtension($class, $ext) 371 493 { … … 433 555 return false; 434 556 } 557 558 /** 559 * @return void 560 */ 561 private static function initializeIncludeClosure() 562 { 563 if (self::$includeFile !== null) { 564 return; 565 } 566 567 /** 568 * Scope isolated include. 569 * 570 * Prevents access to $this/self from included files. 571 * 572 * @param string $file 573 * @return void 574 */ 575 self::$includeFile = \Closure::bind(static function($file) { 576 include $file; 577 }, null, null); 578 } 435 579 } 436 437 /**438 * Scope isolated include.439 *440 * Prevents access to $this/self from included files.441 */442 function includeFile($file)443 {444 include $file;445 } -
recras/trunk/vendor/composer/autoload_real.php
r2008432 r2990514 14 14 } 15 15 16 /** 17 * @return \Composer\Autoload\ClassLoader 18 */ 16 19 public static function getLoader() 17 20 { … … 21 24 22 25 spl_autoload_register(array('ComposerAutoloaderIniteda2edcf35e3249484bbc681eb6321db', 'loadClassLoader'), true, true); 23 self::$loader = $loader = new \Composer\Autoload\ClassLoader( );26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 24 27 spl_autoload_unregister(array('ComposerAutoloaderIniteda2edcf35e3249484bbc681eb6321db', 'loadClassLoader')); 25 28 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\ComposerStaticIniteda2edcf35e3249484bbc681eb6321db::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 } 29 require __DIR__ . '/autoload_static.php'; 30 call_user_func(\Composer\Autoload\ComposerStaticIniteda2edcf35e3249484bbc681eb6321db::getInitializer($loader)); 47 31 48 32 $loader->register(true); -
recras/trunk/vendor/composer/autoload_static.php
r1456750 r2990514 12 12 'Recras\\' => 7, 13 13 ), 14 'C' =>15 array (16 'Composer\\Installers\\' => 20,17 ),18 14 ); 19 15 … … 23 19 0 => __DIR__ . '/../..' . '/src', 24 20 ), 25 'Composer\\Installers\\' => 26 array ( 27 0 => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers', 28 ), 21 ); 22 23 public static $classMap = array ( 29 24 ); 30 25 … … 34 29 $loader->prefixLengthsPsr4 = ComposerStaticIniteda2edcf35e3249484bbc681eb6321db::$prefixLengthsPsr4; 35 30 $loader->prefixDirsPsr4 = ComposerStaticIniteda2edcf35e3249484bbc681eb6321db::$prefixDirsPsr4; 31 $loader->classMap = ComposerStaticIniteda2edcf35e3249484bbc681eb6321db::$classMap; 36 32 37 33 }, null, ClassLoader::class);
Note: See TracChangeset
for help on using the changeset viewer.