Changeset 2458198
- Timestamp:
- 01/18/2021 11:07:18 AM (5 years ago)
- Location:
- quick-login/trunk
- Files:
-
- 23 added
- 6 deleted
- 80 edited
-
composer.lock (modified) (25 diffs)
-
readme.txt (modified) (2 diffs)
-
vendor/composer/ClassLoader.php (modified) (1 diff)
-
vendor/composer/autoload_classmap.php (modified) (6 diffs)
-
vendor/composer/autoload_psr4.php (modified) (1 diff)
-
vendor/composer/autoload_real.php (modified) (1 diff)
-
vendor/composer/autoload_static.php (modified) (7 diffs)
-
vendor/composer/installed.json (modified) (22 diffs)
-
vendor/composer/installers/.github (added)
-
vendor/composer/installers/.github/workflows (added)
-
vendor/composer/installers/.github/workflows/continuous-integration.yml (added)
-
vendor/composer/installers/.github/workflows/lint.yml (added)
-
vendor/composer/installers/.github/workflows/phpstan.yml (added)
-
vendor/composer/installers/composer.json (modified) (4 diffs)
-
vendor/composer/installers/phpstan.neon.dist (added)
-
vendor/composer/installers/src/Composer/Installers/BaseInstaller.php (modified) (4 diffs)
-
vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php (modified) (3 diffs)
-
vendor/composer/installers/src/Composer/Installers/CockpitInstaller.php (modified) (1 diff)
-
vendor/composer/installers/src/Composer/Installers/Installer.php (modified) (5 diffs)
-
vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php (modified) (1 diff)
-
vendor/composer/installers/src/Composer/Installers/OxidInstaller.php (modified) (1 diff)
-
vendor/composer/installers/src/Composer/Installers/ProcessWireInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/StarbugInstaller.php (added)
-
vendor/composer/installers/src/Composer/Installers/SyDESInstaller.php (modified) (1 diff)
-
vendor/composer/installers/src/Composer/Installers/TaoInstaller.php (modified) (1 diff)
-
vendor/guzzlehttp/promises/.php_cs.dist (added)
-
vendor/guzzlehttp/promises/CHANGELOG.md (modified) (1 diff)
-
vendor/guzzlehttp/promises/README.md (modified) (8 diffs)
-
vendor/guzzlehttp/promises/composer.json (modified) (2 diffs)
-
vendor/guzzlehttp/promises/phpstan-baseline.neon (added)
-
vendor/guzzlehttp/promises/phpstan.neon.dist (added)
-
vendor/guzzlehttp/promises/psalm.xml (added)
-
vendor/guzzlehttp/promises/src/AggregateException.php (modified) (1 diff)
-
vendor/guzzlehttp/promises/src/CancellationException.php (modified) (1 diff)
-
vendor/guzzlehttp/promises/src/Coroutine.php (modified) (7 diffs)
-
vendor/guzzlehttp/promises/src/Create.php (added)
-
vendor/guzzlehttp/promises/src/Each.php (added)
-
vendor/guzzlehttp/promises/src/EachPromise.php (modified) (9 diffs)
-
vendor/guzzlehttp/promises/src/FulfilledPromise.php (modified) (3 diffs)
-
vendor/guzzlehttp/promises/src/Is.php (added)
-
vendor/guzzlehttp/promises/src/Promise.php (modified) (11 diffs)
-
vendor/guzzlehttp/promises/src/PromiseInterface.php (modified) (4 diffs)
-
vendor/guzzlehttp/promises/src/PromisorInterface.php (modified) (1 diff)
-
vendor/guzzlehttp/promises/src/RejectedPromise.php (modified) (4 diffs)
-
vendor/guzzlehttp/promises/src/RejectionException.php (modified) (2 diffs)
-
vendor/guzzlehttp/promises/src/TaskQueue.php (modified) (3 diffs)
-
vendor/guzzlehttp/promises/src/TaskQueueInterface.php (modified) (2 diffs)
-
vendor/guzzlehttp/promises/src/Utils.php (added)
-
vendor/guzzlehttp/promises/src/functions.php (modified) (25 diffs)
-
vendor/guzzlehttp/psr7/.editorconfig (deleted)
-
vendor/guzzlehttp/psr7/CHANGELOG.md (modified) (1 diff)
-
vendor/guzzlehttp/psr7/README.md (modified) (13 diffs)
-
vendor/guzzlehttp/psr7/composer.json (modified) (3 diffs)
-
vendor/guzzlehttp/psr7/src/AppendStream.php (modified) (3 diffs)
-
vendor/guzzlehttp/psr7/src/BufferStream.php (modified) (2 diffs)
-
vendor/guzzlehttp/psr7/src/CachingStream.php (modified) (2 diffs)
-
vendor/guzzlehttp/psr7/src/DroppingStream.php (modified) (1 diff)
-
vendor/guzzlehttp/psr7/src/FnStream.php (modified) (2 diffs)
-
vendor/guzzlehttp/psr7/src/Header.php (added)
-
vendor/guzzlehttp/psr7/src/InflateStream.php (modified) (1 diff)
-
vendor/guzzlehttp/psr7/src/LazyOpenStream.php (modified) (2 diffs)
-
vendor/guzzlehttp/psr7/src/LimitStream.php (modified) (1 diff)
-
vendor/guzzlehttp/psr7/src/Message.php (added)
-
vendor/guzzlehttp/psr7/src/MessageTrait.php (modified) (4 diffs)
-
vendor/guzzlehttp/psr7/src/MimeType.php (added)
-
vendor/guzzlehttp/psr7/src/MultipartStream.php (modified) (5 diffs)
-
vendor/guzzlehttp/psr7/src/NoSeekStream.php (modified) (1 diff)
-
vendor/guzzlehttp/psr7/src/PumpStream.php (modified) (3 diffs)
-
vendor/guzzlehttp/psr7/src/Query.php (added)
-
vendor/guzzlehttp/psr7/src/Request.php (modified) (2 diffs)
-
vendor/guzzlehttp/psr7/src/Response.php (modified) (3 diffs)
-
vendor/guzzlehttp/psr7/src/ServerRequest.php (modified) (1 diff)
-
vendor/guzzlehttp/psr7/src/Stream.php (modified) (3 diffs)
-
vendor/guzzlehttp/psr7/src/StreamDecoratorTrait.php (modified) (3 diffs)
-
vendor/guzzlehttp/psr7/src/StreamWrapper.php (modified) (2 diffs)
-
vendor/guzzlehttp/psr7/src/UploadedFile.php (modified) (9 diffs)
-
vendor/guzzlehttp/psr7/src/Uri.php (modified) (1 diff)
-
vendor/guzzlehttp/psr7/src/UriNormalizer.php (modified) (1 diff)
-
vendor/guzzlehttp/psr7/src/UriResolver.php (modified) (1 diff)
-
vendor/guzzlehttp/psr7/src/Utils.php (added)
-
vendor/guzzlehttp/psr7/src/functions.php (modified) (23 diffs)
-
vendor/league/oauth2-client/CHANGELOG.md (deleted)
-
vendor/league/oauth2-client/CODE_OF_CONDUCT.md (deleted)
-
vendor/league/oauth2-client/CONTRIBUTING.md (deleted)
-
vendor/league/oauth2-client/CREDITS.md (deleted)
-
vendor/league/oauth2-client/LICENSE (modified) (1 diff)
-
vendor/league/oauth2-client/README.PROVIDER-GUIDE.md (deleted)
-
vendor/league/oauth2-client/README.md (modified) (2 diffs)
-
vendor/league/oauth2-client/composer.json (modified) (1 diff)
-
vendor/league/oauth2-client/src/Token/AccessToken.php (modified) (3 diffs)
-
vendor/league/oauth2-client/src/Token/AccessTokenInterface.php (modified) (1 diff)
-
vendor/league/oauth2-facebook/src/Provider/Facebook.php (modified) (2 diffs)
-
vendor/paragonie/random_compat/phpunit-autoload.php (added)
-
vendor/symfony/polyfill-intl-idn/Idn.php (modified) (5 diffs)
-
vendor/symfony/polyfill-intl-idn/composer.json (modified) (1 diff)
-
vendor/symfony/polyfill-intl-normalizer/bootstrap.php (modified) (1 diff)
-
vendor/symfony/polyfill-intl-normalizer/composer.json (modified) (1 diff)
-
vendor/symfony/polyfill-php70/Php70.php (modified) (2 diffs)
-
vendor/symfony/polyfill-php70/Resources/stubs/ArithmeticError.php (modified) (1 diff)
-
vendor/symfony/polyfill-php70/Resources/stubs/AssertionError.php (modified) (1 diff)
-
vendor/symfony/polyfill-php70/Resources/stubs/DivisionByZeroError.php (modified) (1 diff)
-
vendor/symfony/polyfill-php70/Resources/stubs/Error.php (added)
-
vendor/symfony/polyfill-php70/Resources/stubs/ParseError.php (modified) (1 diff)
-
vendor/symfony/polyfill-php70/Resources/stubs/TypeError.php (modified) (1 diff)
-
vendor/symfony/polyfill-php70/bootstrap.php (modified) (1 diff)
-
vendor/symfony/polyfill-php70/composer.json (modified) (1 diff)
-
vendor/symfony/polyfill-php72/Php72.php (modified) (1 diff)
-
vendor/symfony/polyfill-php72/bootstrap.php (modified) (1 diff)
-
vendor/symfony/polyfill-php72/composer.json (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
quick-login/trunk/composer.lock
r2364279 r2458198 9 9 { 10 10 "name": "composer/installers", 11 "version": "v1. 9.0",11 "version": "v1.10.0", 12 12 "source": { 13 13 "type": "git", 14 14 "url": "https://github.com/composer/installers.git", 15 "reference": " b93bcf0fa1fccb0b7d176b0967d969691cd74cca"16 }, 17 "dist": { 18 "type": "zip", 19 "url": "https://api.github.com/repos/composer/installers/zipball/ b93bcf0fa1fccb0b7d176b0967d969691cd74cca",20 "reference": " b93bcf0fa1fccb0b7d176b0967d969691cd74cca",15 "reference": "1a0357fccad9d1cc1ea0c9a05b8847fbccccb78d" 16 }, 17 "dist": { 18 "type": "zip", 19 "url": "https://api.github.com/repos/composer/installers/zipball/1a0357fccad9d1cc1ea0c9a05b8847fbccccb78d", 20 "reference": "1a0357fccad9d1cc1ea0c9a05b8847fbccccb78d", 21 21 "shasum": "" 22 22 }, … … 29 29 }, 30 30 "require-dev": { 31 "composer/composer": "1.6.* || 2.0.*@dev", 32 "composer/semver": "1.0.* || 2.0.*@dev", 33 "phpunit/phpunit": "^4.8.36", 34 "sebastian/comparator": "^1.2.4", 31 "composer/composer": "1.6.* || ^2.0", 32 "composer/semver": "^1 || ^3", 33 "phpstan/phpstan": "^0.12.55", 34 "phpstan/phpstan-phpunit": "^0.12.16", 35 "symfony/phpunit-bridge": "^4.2 || ^5", 35 36 "symfony/process": "^2.3" 36 37 }, … … 39 40 "class": "Composer\\Installers\\Plugin", 40 41 "branch-alias": { 41 "dev-ma ster": "1.0-dev"42 "dev-main": "1.x-dev" 42 43 } 43 44 }, … … 77 78 "RadPHP", 78 79 "SMF", 80 "Starbug", 79 81 "Thelia", 80 82 "Whmcs", … … 117 119 "piwik", 118 120 "ppi", 121 "processwire", 119 122 "puppet", 120 123 "pxcms", … … 132 135 "zikula" 133 136 ], 134 "time": "2020-04-07T06:57:05+00:00" 137 "funding": [ 138 { 139 "url": "https://packagist.com", 140 "type": "custom" 141 }, 142 { 143 "url": "https://github.com/composer", 144 "type": "github" 145 }, 146 { 147 "url": "https://tidelift.com/funding/github/packagist/composer/composer", 148 "type": "tidelift" 149 } 150 ], 151 "time": "2021-01-14T11:07:16+00:00" 135 152 }, 136 153 { … … 203 220 { 204 221 "name": "guzzlehttp/promises", 205 "version": " v1.3.1",222 "version": "1.4.0", 206 223 "source": { 207 224 "type": "git", 208 225 "url": "https://github.com/guzzle/promises.git", 209 "reference": " a59da6cf61d80060647ff4d3eb2c03a2bc694646"210 }, 211 "dist": { 212 "type": "zip", 213 "url": "https://api.github.com/repos/guzzle/promises/zipball/ a59da6cf61d80060647ff4d3eb2c03a2bc694646",214 "reference": " a59da6cf61d80060647ff4d3eb2c03a2bc694646",215 "shasum": "" 216 }, 217 "require": { 218 "php": ">=5.5 .0"226 "reference": "60d379c243457e073cff02bc323a2a86cb355631" 227 }, 228 "dist": { 229 "type": "zip", 230 "url": "https://api.github.com/repos/guzzle/promises/zipball/60d379c243457e073cff02bc323a2a86cb355631", 231 "reference": "60d379c243457e073cff02bc323a2a86cb355631", 232 "shasum": "" 233 }, 234 "require": { 235 "php": ">=5.5" 219 236 }, 220 237 "require-dev": { 221 " phpunit/phpunit": "^4.0"238 "symfony/phpunit-bridge": "^4.4 || ^5.1" 222 239 }, 223 240 "type": "library", … … 250 267 "promise" 251 268 ], 252 "time": "20 16-12-20T10:07:11+00:00"269 "time": "2020-09-30T07:37:28+00:00" 253 270 }, 254 271 { 255 272 "name": "guzzlehttp/psr7", 256 "version": "1. 6.1",273 "version": "1.7.0", 257 274 "source": { 258 275 "type": "git", 259 276 "url": "https://github.com/guzzle/psr7.git", 260 "reference": " 239400de7a173fe9901b9ac7c06497751f00727a"261 }, 262 "dist": { 263 "type": "zip", 264 "url": "https://api.github.com/repos/guzzle/psr7/zipball/ 239400de7a173fe9901b9ac7c06497751f00727a",265 "reference": " 239400de7a173fe9901b9ac7c06497751f00727a",277 "reference": "53330f47520498c0ae1f61f7e2c90f55690c06a3" 278 }, 279 "dist": { 280 "type": "zip", 281 "url": "https://api.github.com/repos/guzzle/psr7/zipball/53330f47520498c0ae1f61f7e2c90f55690c06a3", 282 "reference": "53330f47520498c0ae1f61f7e2c90f55690c06a3", 266 283 "shasum": "" 267 284 }, … … 276 293 "require-dev": { 277 294 "ext-zlib": "*", 278 "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5. 8"295 "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.8 || ^9.3.10" 279 296 }, 280 297 "suggest": { 281 " zendframework/zend-httphandlerrunner": "Emit PSR-7 responses"298 "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" 282 299 }, 283 300 "type": "library", 284 301 "extra": { 285 302 "branch-alias": { 286 "dev-master": "1. 6-dev"303 "dev-master": "1.7-dev" 287 304 } 288 305 }, … … 321 338 "url" 322 339 ], 323 "time": "20 19-07-01T23:21:34+00:00"340 "time": "2020-09-30T07:37:11+00:00" 324 341 }, 325 342 { … … 437 454 { 438 455 "name": "league/oauth2-client", 439 "version": "2. 5.0",456 "version": "2.6.0", 440 457 "source": { 441 458 "type": "git", 442 459 "url": "https://github.com/thephpleague/oauth2-client.git", 443 "reference": " d9f2a1e000dc14eb3c02e15d15759385ec7ff0fb"444 }, 445 "dist": { 446 "type": "zip", 447 "url": "https://api.github.com/repos/thephpleague/oauth2-client/zipball/ d9f2a1e000dc14eb3c02e15d15759385ec7ff0fb",448 "reference": " d9f2a1e000dc14eb3c02e15d15759385ec7ff0fb",460 "reference": "badb01e62383430706433191b82506b6df24ad98" 461 }, 462 "dist": { 463 "type": "zip", 464 "url": "https://api.github.com/repos/thephpleague/oauth2-client/zipball/badb01e62383430706433191b82506b6df24ad98", 465 "reference": "badb01e62383430706433191b82506b6df24ad98", 449 466 "shasum": "" 450 467 }, 451 468 "require": { 452 469 "guzzlehttp/guzzle": "^6.0 || ^7.0", 453 "paragonie/random_compat": "^1 |^2|^9.99",454 "php": "^5.6 |^7.0"470 "paragonie/random_compat": "^1 || ^2 || ^9.99", 471 "php": "^5.6 || ^7.0 || ^8.0" 455 472 }, 456 473 "require-dev": { 457 "eloquent/liberator": "^2.0", 458 "eloquent/phony-phpunit": "^1.0|^3.0", 459 "jakub-onderka/php-parallel-lint": "^0.9.2", 460 "phpunit/phpunit": "^5.7|^6.0", 461 "squizlabs/php_codesniffer": "^2.3|^3.0" 474 "mockery/mockery": "^1.3", 475 "php-parallel-lint/php-parallel-lint": "^1.2", 476 "phpunit/phpunit": "^5.7 || ^6.0 || ^9.3", 477 "squizlabs/php_codesniffer": "^2.3 || ^3.0" 462 478 }, 463 479 "type": "library", … … 500 516 "single sign on" 501 517 ], 502 "time": "2020- 07-18T17:54:32+00:00"518 "time": "2020-10-28T02:03:40+00:00" 503 519 }, 504 520 { 505 521 "name": "league/oauth2-facebook", 506 "version": "2.0. 2",522 "version": "2.0.3", 507 523 "source": { 508 524 "type": "git", 509 525 "url": "https://github.com/thephpleague/oauth2-facebook.git", 510 "reference": " c482a851c93a6cb718270773635d6a0c8384b560"511 }, 512 "dist": { 513 "type": "zip", 514 "url": "https://api.github.com/repos/thephpleague/oauth2-facebook/zipball/ c482a851c93a6cb718270773635d6a0c8384b560",515 "reference": " c482a851c93a6cb718270773635d6a0c8384b560",526 "reference": "093cf588b9d508ee426c71d6bc68f138fe914ddc" 527 }, 528 "dist": { 529 "type": "zip", 530 "url": "https://api.github.com/repos/thephpleague/oauth2-facebook/zipball/093cf588b9d508ee426c71d6bc68f138fe914ddc", 531 "reference": "093cf588b9d508ee426c71d6bc68f138fe914ddc", 516 532 "shasum": "" 517 533 }, … … 552 568 "oauth2" 553 569 ], 554 "time": "2020- 07-25T13:30:06+00:00"570 "time": "2020-10-01T15:22:47+00:00" 555 571 }, 556 572 { … … 663 679 { 664 680 "name": "paragonie/random_compat", 665 "version": "v2.0.1 8",681 "version": "v2.0.19", 666 682 "source": { 667 683 "type": "git", 668 684 "url": "https://github.com/paragonie/random_compat.git", 669 "reference": " 0a58ef6e3146256cc3dc7cc393927bcc7d1b72db"670 }, 671 "dist": { 672 "type": "zip", 673 "url": "https://api.github.com/repos/paragonie/random_compat/zipball/ 0a58ef6e3146256cc3dc7cc393927bcc7d1b72db",674 "reference": " 0a58ef6e3146256cc3dc7cc393927bcc7d1b72db",685 "reference": "446fc9faa5c2a9ddf65eb7121c0af7e857295241" 686 }, 687 "dist": { 688 "type": "zip", 689 "url": "https://api.github.com/repos/paragonie/random_compat/zipball/446fc9faa5c2a9ddf65eb7121c0af7e857295241", 690 "reference": "446fc9faa5c2a9ddf65eb7121c0af7e857295241", 675 691 "shasum": "" 676 692 }, … … 708 724 "random" 709 725 ], 710 "time": "20 19-01-03T20:59:08+00:00"726 "time": "2020-10-15T10:06:57+00:00" 711 727 }, 712 728 { … … 802 818 { 803 819 "name": "symfony/polyfill-intl-idn", 804 "version": "v1.1 8.1",820 "version": "v1.19.0", 805 821 "source": { 806 822 "type": "git", 807 823 "url": "https://github.com/symfony/polyfill-intl-idn.git", 808 "reference": " 5dcab1bc7146cf8c1beaa4502a3d9be344334251"809 }, 810 "dist": { 811 "type": "zip", 812 "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/ 5dcab1bc7146cf8c1beaa4502a3d9be344334251",813 "reference": " 5dcab1bc7146cf8c1beaa4502a3d9be344334251",824 "reference": "4ad5115c0f5d5172a9fe8147675ec6de266d8826" 825 }, 826 "dist": { 827 "type": "zip", 828 "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/4ad5115c0f5d5172a9fe8147675ec6de266d8826", 829 "reference": "4ad5115c0f5d5172a9fe8147675ec6de266d8826", 814 830 "shasum": "" 815 831 }, … … 826 842 "extra": { 827 843 "branch-alias": { 828 "dev-ma ster": "1.18-dev"844 "dev-main": "1.19-dev" 829 845 }, 830 846 "thanks": { … … 869 885 "shim" 870 886 ], 871 "time": "2020-08-04T06:02:08+00:00" 887 "funding": [ 888 { 889 "url": "https://symfony.com/sponsor", 890 "type": "custom" 891 }, 892 { 893 "url": "https://github.com/fabpot", 894 "type": "github" 895 }, 896 { 897 "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 898 "type": "tidelift" 899 } 900 ], 901 "time": "2020-10-21T09:57:48+00:00" 872 902 }, 873 903 { 874 904 "name": "symfony/polyfill-intl-normalizer", 875 "version": "v1.1 8.1",905 "version": "v1.19.0", 876 906 "source": { 877 907 "type": "git", 878 908 "url": "https://github.com/symfony/polyfill-intl-normalizer.git", 879 "reference": " 37078a8dd4a2a1e9ab0231af7c6cb671b2ed5a7e"880 }, 881 "dist": { 882 "type": "zip", 883 "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/ 37078a8dd4a2a1e9ab0231af7c6cb671b2ed5a7e",884 "reference": " 37078a8dd4a2a1e9ab0231af7c6cb671b2ed5a7e",909 "reference": "8db0ae7936b42feb370840cf24de1a144fb0ef27" 910 }, 911 "dist": { 912 "type": "zip", 913 "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/8db0ae7936b42feb370840cf24de1a144fb0ef27", 914 "reference": "8db0ae7936b42feb370840cf24de1a144fb0ef27", 885 915 "shasum": "" 886 916 }, … … 894 924 "extra": { 895 925 "branch-alias": { 896 "dev-ma ster": "1.18-dev"926 "dev-main": "1.19-dev" 897 927 }, 898 928 "thanks": { … … 936 966 "shim" 937 967 ], 938 "time": "2020-07-14T12:35:20+00:00" 968 "funding": [ 969 { 970 "url": "https://symfony.com/sponsor", 971 "type": "custom" 972 }, 973 { 974 "url": "https://github.com/fabpot", 975 "type": "github" 976 }, 977 { 978 "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 979 "type": "tidelift" 980 } 981 ], 982 "time": "2020-10-23T09:01:57+00:00" 939 983 }, 940 984 { 941 985 "name": "symfony/polyfill-php70", 942 "version": "v1.1 8.1",986 "version": "v1.19.0", 943 987 "source": { 944 988 "type": "git", 945 989 "url": "https://github.com/symfony/polyfill-php70.git", 946 "reference": " 0dd93f2c578bdc9c72697eaa5f1dd25644e618d3"947 }, 948 "dist": { 949 "type": "zip", 950 "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/ 0dd93f2c578bdc9c72697eaa5f1dd25644e618d3",951 "reference": " 0dd93f2c578bdc9c72697eaa5f1dd25644e618d3",990 "reference": "3fe414077251a81a1b15b1c709faf5c2fbae3d4e" 991 }, 992 "dist": { 993 "type": "zip", 994 "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/3fe414077251a81a1b15b1c709faf5c2fbae3d4e", 995 "reference": "3fe414077251a81a1b15b1c709faf5c2fbae3d4e", 952 996 "shasum": "" 953 997 }, … … 959 1003 "extra": { 960 1004 "branch-alias": { 961 "dev-ma ster": "1.18-dev"1005 "dev-main": "1.19-dev" 962 1006 }, 963 1007 "thanks": { … … 999 1043 "shim" 1000 1044 ], 1001 "time": "2020-07-14T12:35:20+00:00" 1045 "funding": [ 1046 { 1047 "url": "https://symfony.com/sponsor", 1048 "type": "custom" 1049 }, 1050 { 1051 "url": "https://github.com/fabpot", 1052 "type": "github" 1053 }, 1054 { 1055 "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 1056 "type": "tidelift" 1057 } 1058 ], 1059 "time": "2020-10-23T09:01:57+00:00" 1002 1060 }, 1003 1061 { 1004 1062 "name": "symfony/polyfill-php72", 1005 "version": "v1.1 8.1",1063 "version": "v1.19.0", 1006 1064 "source": { 1007 1065 "type": "git", 1008 1066 "url": "https://github.com/symfony/polyfill-php72.git", 1009 "reference": " 639447d008615574653fb3bc60d1986d7172eaae"1010 }, 1011 "dist": { 1012 "type": "zip", 1013 "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/ 639447d008615574653fb3bc60d1986d7172eaae",1014 "reference": " 639447d008615574653fb3bc60d1986d7172eaae",1067 "reference": "beecef6b463b06954638f02378f52496cb84bacc" 1068 }, 1069 "dist": { 1070 "type": "zip", 1071 "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/beecef6b463b06954638f02378f52496cb84bacc", 1072 "reference": "beecef6b463b06954638f02378f52496cb84bacc", 1015 1073 "shasum": "" 1016 1074 }, … … 1021 1079 "extra": { 1022 1080 "branch-alias": { 1023 "dev-ma ster": "1.18-dev"1081 "dev-main": "1.19-dev" 1024 1082 }, 1025 1083 "thanks": { … … 1058 1116 "shim" 1059 1117 ], 1060 "time": "2020-07-14T12:35:20+00:00" 1118 "funding": [ 1119 { 1120 "url": "https://symfony.com/sponsor", 1121 "type": "custom" 1122 }, 1123 { 1124 "url": "https://github.com/fabpot", 1125 "type": "github" 1126 }, 1127 { 1128 "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 1129 "type": "tidelift" 1130 } 1131 ], 1132 "time": "2020-10-23T09:01:57+00:00" 1061 1133 } 1062 1134 ], … … 1073 1145 "platform-overrides": { 1074 1146 "php": "5.6" 1075 } 1147 }, 1148 "plugin-api-version": "1.1.0" 1076 1149 } -
quick-login/trunk/readme.txt
r2364279 r2458198 3 3 Tags: login, social login, twitter, google, facebook, linkedin, slack, oauth, register 4 4 Requires at least: 4 5 Tested up to: 5. 55 Tested up to: 5.6 6 6 Requires PHP: 5.6 7 7 Stable tag: trunk … … 91 91 == Changelog == 92 92 93 = 1.4.4 - 18 January 2020 = 94 * Updated - Compatibility with WordPress 5.5 95 * Updated - Dependencies for OAuth code libraries 96 93 97 = 1.4.3 - 18 Aug 2020 = 94 98 * Updated - Compatibility with WordPress 5.5 -
quick-login/trunk/vendor/composer/ClassLoader.php
r2114185 r2458198 61 61 { 62 62 if (!empty($this->prefixesPsr0)) { 63 return call_user_func_array('array_merge', $this->prefixesPsr0);63 return call_user_func_array('array_merge', array_values($this->prefixesPsr0)); 64 64 } 65 65 -
quick-login/trunk/vendor/composer/autoload_classmap.php
r2364279 r2458198 77 77 'Composer\\Installers\\PortoInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PortoInstaller.php', 78 78 'Composer\\Installers\\PrestashopInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PrestashopInstaller.php', 79 'Composer\\Installers\\ProcessWireInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/ProcessWireInstaller.php', 79 80 'Composer\\Installers\\PuppetInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PuppetInstaller.php', 80 81 'Composer\\Installers\\PxcmsInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/PxcmsInstaller.php', … … 88 89 'Composer\\Installers\\SilverStripeInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/SilverStripeInstaller.php', 89 90 'Composer\\Installers\\SiteDirectInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/SiteDirectInstaller.php', 91 'Composer\\Installers\\StarbugInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/StarbugInstaller.php', 90 92 'Composer\\Installers\\SyDESInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/SyDESInstaller.php', 91 93 'Composer\\Installers\\SyliusInstaller' => $vendorDir . '/composer/installers/src/Composer/Installers/SyliusInstaller.php', … … 140 142 'GuzzleHttp\\Promise\\CancellationException' => $vendorDir . '/guzzlehttp/promises/src/CancellationException.php', 141 143 'GuzzleHttp\\Promise\\Coroutine' => $vendorDir . '/guzzlehttp/promises/src/Coroutine.php', 144 'GuzzleHttp\\Promise\\Create' => $vendorDir . '/guzzlehttp/promises/src/Create.php', 145 'GuzzleHttp\\Promise\\Each' => $vendorDir . '/guzzlehttp/promises/src/Each.php', 142 146 'GuzzleHttp\\Promise\\EachPromise' => $vendorDir . '/guzzlehttp/promises/src/EachPromise.php', 143 147 'GuzzleHttp\\Promise\\FulfilledPromise' => $vendorDir . '/guzzlehttp/promises/src/FulfilledPromise.php', 148 'GuzzleHttp\\Promise\\Is' => $vendorDir . '/guzzlehttp/promises/src/Is.php', 144 149 'GuzzleHttp\\Promise\\Promise' => $vendorDir . '/guzzlehttp/promises/src/Promise.php', 145 150 'GuzzleHttp\\Promise\\PromiseInterface' => $vendorDir . '/guzzlehttp/promises/src/PromiseInterface.php', … … 149 154 'GuzzleHttp\\Promise\\TaskQueue' => $vendorDir . '/guzzlehttp/promises/src/TaskQueue.php', 150 155 'GuzzleHttp\\Promise\\TaskQueueInterface' => $vendorDir . '/guzzlehttp/promises/src/TaskQueueInterface.php', 156 'GuzzleHttp\\Promise\\Utils' => $vendorDir . '/guzzlehttp/promises/src/Utils.php', 151 157 'GuzzleHttp\\Psr7\\AppendStream' => $vendorDir . '/guzzlehttp/psr7/src/AppendStream.php', 152 158 'GuzzleHttp\\Psr7\\BufferStream' => $vendorDir . '/guzzlehttp/psr7/src/BufferStream.php', … … 154 160 'GuzzleHttp\\Psr7\\DroppingStream' => $vendorDir . '/guzzlehttp/psr7/src/DroppingStream.php', 155 161 'GuzzleHttp\\Psr7\\FnStream' => $vendorDir . '/guzzlehttp/psr7/src/FnStream.php', 162 'GuzzleHttp\\Psr7\\Header' => $vendorDir . '/guzzlehttp/psr7/src/Header.php', 156 163 'GuzzleHttp\\Psr7\\InflateStream' => $vendorDir . '/guzzlehttp/psr7/src/InflateStream.php', 157 164 'GuzzleHttp\\Psr7\\LazyOpenStream' => $vendorDir . '/guzzlehttp/psr7/src/LazyOpenStream.php', 158 165 'GuzzleHttp\\Psr7\\LimitStream' => $vendorDir . '/guzzlehttp/psr7/src/LimitStream.php', 166 'GuzzleHttp\\Psr7\\Message' => $vendorDir . '/guzzlehttp/psr7/src/Message.php', 159 167 'GuzzleHttp\\Psr7\\MessageTrait' => $vendorDir . '/guzzlehttp/psr7/src/MessageTrait.php', 168 'GuzzleHttp\\Psr7\\MimeType' => $vendorDir . '/guzzlehttp/psr7/src/MimeType.php', 160 169 'GuzzleHttp\\Psr7\\MultipartStream' => $vendorDir . '/guzzlehttp/psr7/src/MultipartStream.php', 161 170 'GuzzleHttp\\Psr7\\NoSeekStream' => $vendorDir . '/guzzlehttp/psr7/src/NoSeekStream.php', 162 171 'GuzzleHttp\\Psr7\\PumpStream' => $vendorDir . '/guzzlehttp/psr7/src/PumpStream.php', 172 'GuzzleHttp\\Psr7\\Query' => $vendorDir . '/guzzlehttp/psr7/src/Query.php', 163 173 'GuzzleHttp\\Psr7\\Request' => $vendorDir . '/guzzlehttp/psr7/src/Request.php', 164 174 'GuzzleHttp\\Psr7\\Response' => $vendorDir . '/guzzlehttp/psr7/src/Response.php', … … 172 182 'GuzzleHttp\\Psr7\\UriNormalizer' => $vendorDir . '/guzzlehttp/psr7/src/UriNormalizer.php', 173 183 'GuzzleHttp\\Psr7\\UriResolver' => $vendorDir . '/guzzlehttp/psr7/src/UriResolver.php', 184 'GuzzleHttp\\Psr7\\Utils' => $vendorDir . '/guzzlehttp/psr7/src/Utils.php', 174 185 'GuzzleHttp\\RedirectMiddleware' => $vendorDir . '/guzzlehttp/guzzle/src/RedirectMiddleware.php', 175 186 'GuzzleHttp\\RequestOptions' => $vendorDir . '/guzzlehttp/guzzle/src/RequestOptions.php', -
quick-login/trunk/vendor/composer/autoload_psr4.php
r2364279 r2458198 12 12 'Symfony\\Polyfill\\Intl\\Idn\\' => array($vendorDir . '/symfony/polyfill-intl-idn'), 13 13 'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src'), 14 'League\\OAuth2\\Client\\' => array($vendorDir . '/league/oauth2- linkedin/src', $vendorDir . '/league/oauth2-client/src', $vendorDir . '/league/oauth2-facebook/src', $vendorDir . '/league/oauth2-google/src'),14 'League\\OAuth2\\Client\\' => array($vendorDir . '/league/oauth2-google/src', $vendorDir . '/league/oauth2-linkedin/src', $vendorDir . '/league/oauth2-client/src', $vendorDir . '/league/oauth2-facebook/src'), 15 15 'League\\OAuth1\\' => array($vendorDir . '/league/oauth1-client/src'), 16 16 'Layered\\QuickLogin\\' => array($baseDir . '/src'), -
quick-login/trunk/vendor/composer/autoload_real.php
r2010460 r2458198 14 14 } 15 15 16 /** 17 * @return \Composer\Autoload\ClassLoader 18 */ 16 19 public static function getLoader() 17 20 { -
quick-login/trunk/vendor/composer/autoload_static.php
r2364279 r2458198 73 73 'League\\OAuth2\\Client\\' => 74 74 array ( 75 0 => __DIR__ . '/..' . '/league/oauth2- linkedin/src',76 1 => __DIR__ . '/..' . '/league/oauth2- client/src',77 2 => __DIR__ . '/..' . '/league/oauth2- facebook/src',78 3 => __DIR__ . '/..' . '/league/oauth2- google/src',75 0 => __DIR__ . '/..' . '/league/oauth2-google/src', 76 1 => __DIR__ . '/..' . '/league/oauth2-linkedin/src', 77 2 => __DIR__ . '/..' . '/league/oauth2-client/src', 78 3 => __DIR__ . '/..' . '/league/oauth2-facebook/src', 79 79 ), 80 80 'League\\OAuth1\\' => … … 179 179 'Composer\\Installers\\PortoInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PortoInstaller.php', 180 180 'Composer\\Installers\\PrestashopInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PrestashopInstaller.php', 181 'Composer\\Installers\\ProcessWireInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/ProcessWireInstaller.php', 181 182 'Composer\\Installers\\PuppetInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PuppetInstaller.php', 182 183 'Composer\\Installers\\PxcmsInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/PxcmsInstaller.php', … … 190 191 'Composer\\Installers\\SilverStripeInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/SilverStripeInstaller.php', 191 192 'Composer\\Installers\\SiteDirectInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/SiteDirectInstaller.php', 193 'Composer\\Installers\\StarbugInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/StarbugInstaller.php', 192 194 'Composer\\Installers\\SyDESInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/SyDESInstaller.php', 193 195 'Composer\\Installers\\SyliusInstaller' => __DIR__ . '/..' . '/composer/installers/src/Composer/Installers/SyliusInstaller.php', … … 242 244 'GuzzleHttp\\Promise\\CancellationException' => __DIR__ . '/..' . '/guzzlehttp/promises/src/CancellationException.php', 243 245 'GuzzleHttp\\Promise\\Coroutine' => __DIR__ . '/..' . '/guzzlehttp/promises/src/Coroutine.php', 246 'GuzzleHttp\\Promise\\Create' => __DIR__ . '/..' . '/guzzlehttp/promises/src/Create.php', 247 'GuzzleHttp\\Promise\\Each' => __DIR__ . '/..' . '/guzzlehttp/promises/src/Each.php', 244 248 'GuzzleHttp\\Promise\\EachPromise' => __DIR__ . '/..' . '/guzzlehttp/promises/src/EachPromise.php', 245 249 'GuzzleHttp\\Promise\\FulfilledPromise' => __DIR__ . '/..' . '/guzzlehttp/promises/src/FulfilledPromise.php', 250 'GuzzleHttp\\Promise\\Is' => __DIR__ . '/..' . '/guzzlehttp/promises/src/Is.php', 246 251 'GuzzleHttp\\Promise\\Promise' => __DIR__ . '/..' . '/guzzlehttp/promises/src/Promise.php', 247 252 'GuzzleHttp\\Promise\\PromiseInterface' => __DIR__ . '/..' . '/guzzlehttp/promises/src/PromiseInterface.php', … … 251 256 'GuzzleHttp\\Promise\\TaskQueue' => __DIR__ . '/..' . '/guzzlehttp/promises/src/TaskQueue.php', 252 257 'GuzzleHttp\\Promise\\TaskQueueInterface' => __DIR__ . '/..' . '/guzzlehttp/promises/src/TaskQueueInterface.php', 258 'GuzzleHttp\\Promise\\Utils' => __DIR__ . '/..' . '/guzzlehttp/promises/src/Utils.php', 253 259 'GuzzleHttp\\Psr7\\AppendStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/AppendStream.php', 254 260 'GuzzleHttp\\Psr7\\BufferStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/BufferStream.php', … … 256 262 'GuzzleHttp\\Psr7\\DroppingStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/DroppingStream.php', 257 263 'GuzzleHttp\\Psr7\\FnStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/FnStream.php', 264 'GuzzleHttp\\Psr7\\Header' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/Header.php', 258 265 'GuzzleHttp\\Psr7\\InflateStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/InflateStream.php', 259 266 'GuzzleHttp\\Psr7\\LazyOpenStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/LazyOpenStream.php', 260 267 'GuzzleHttp\\Psr7\\LimitStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/LimitStream.php', 268 'GuzzleHttp\\Psr7\\Message' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/Message.php', 261 269 'GuzzleHttp\\Psr7\\MessageTrait' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/MessageTrait.php', 270 'GuzzleHttp\\Psr7\\MimeType' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/MimeType.php', 262 271 'GuzzleHttp\\Psr7\\MultipartStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/MultipartStream.php', 263 272 'GuzzleHttp\\Psr7\\NoSeekStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/NoSeekStream.php', 264 273 'GuzzleHttp\\Psr7\\PumpStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/PumpStream.php', 274 'GuzzleHttp\\Psr7\\Query' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/Query.php', 265 275 'GuzzleHttp\\Psr7\\Request' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/Request.php', 266 276 'GuzzleHttp\\Psr7\\Response' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/Response.php', … … 274 284 'GuzzleHttp\\Psr7\\UriNormalizer' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/UriNormalizer.php', 275 285 'GuzzleHttp\\Psr7\\UriResolver' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/UriResolver.php', 286 'GuzzleHttp\\Psr7\\Utils' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/Utils.php', 276 287 'GuzzleHttp\\RedirectMiddleware' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/RedirectMiddleware.php', 277 288 'GuzzleHttp\\RequestOptions' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/RequestOptions.php', -
quick-login/trunk/vendor/composer/installed.json
r2364279 r2458198 2 2 { 3 3 "name": "composer/installers", 4 "version": "v1. 9.0",5 "version_normalized": "1. 9.0.0",4 "version": "v1.10.0", 5 "version_normalized": "1.10.0.0", 6 6 "source": { 7 7 "type": "git", 8 8 "url": "https://github.com/composer/installers.git", 9 "reference": " b93bcf0fa1fccb0b7d176b0967d969691cd74cca"10 }, 11 "dist": { 12 "type": "zip", 13 "url": "https://api.github.com/repos/composer/installers/zipball/ b93bcf0fa1fccb0b7d176b0967d969691cd74cca",14 "reference": " b93bcf0fa1fccb0b7d176b0967d969691cd74cca",9 "reference": "1a0357fccad9d1cc1ea0c9a05b8847fbccccb78d" 10 }, 11 "dist": { 12 "type": "zip", 13 "url": "https://api.github.com/repos/composer/installers/zipball/1a0357fccad9d1cc1ea0c9a05b8847fbccccb78d", 14 "reference": "1a0357fccad9d1cc1ea0c9a05b8847fbccccb78d", 15 15 "shasum": "" 16 16 }, … … 23 23 }, 24 24 "require-dev": { 25 "composer/composer": "1.6.* || 2.0.*@dev", 26 "composer/semver": "1.0.* || 2.0.*@dev", 27 "phpunit/phpunit": "^4.8.36", 28 "sebastian/comparator": "^1.2.4", 25 "composer/composer": "1.6.* || ^2.0", 26 "composer/semver": "^1 || ^3", 27 "phpstan/phpstan": "^0.12.55", 28 "phpstan/phpstan-phpunit": "^0.12.16", 29 "symfony/phpunit-bridge": "^4.2 || ^5", 29 30 "symfony/process": "^2.3" 30 31 }, 31 "time": "202 0-04-07T06:57:05+00:00",32 "time": "2021-01-14T11:07:16+00:00", 32 33 "type": "composer-plugin", 33 34 "extra": { 34 35 "class": "Composer\\Installers\\Plugin", 35 36 "branch-alias": { 36 "dev-ma ster": "1.0-dev"37 "dev-main": "1.x-dev" 37 38 } 38 39 }, … … 73 74 "RadPHP", 74 75 "SMF", 76 "Starbug", 75 77 "Thelia", 76 78 "Whmcs", … … 113 115 "piwik", 114 116 "ppi", 117 "processwire", 115 118 "puppet", 116 119 "pxcms", … … 127 130 "zend", 128 131 "zikula" 132 ], 133 "funding": [ 134 { 135 "url": "https://packagist.com", 136 "type": "custom" 137 }, 138 { 139 "url": "https://github.com/composer", 140 "type": "github" 141 }, 142 { 143 "url": "https://tidelift.com/funding/github/packagist/composer/composer", 144 "type": "tidelift" 145 } 129 146 ] 130 147 }, … … 200 217 { 201 218 "name": "guzzlehttp/promises", 202 "version": " v1.3.1",203 "version_normalized": "1. 3.1.0",219 "version": "1.4.0", 220 "version_normalized": "1.4.0.0", 204 221 "source": { 205 222 "type": "git", 206 223 "url": "https://github.com/guzzle/promises.git", 207 "reference": " a59da6cf61d80060647ff4d3eb2c03a2bc694646"208 }, 209 "dist": { 210 "type": "zip", 211 "url": "https://api.github.com/repos/guzzle/promises/zipball/ a59da6cf61d80060647ff4d3eb2c03a2bc694646",212 "reference": " a59da6cf61d80060647ff4d3eb2c03a2bc694646",213 "shasum": "" 214 }, 215 "require": { 216 "php": ">=5.5 .0"224 "reference": "60d379c243457e073cff02bc323a2a86cb355631" 225 }, 226 "dist": { 227 "type": "zip", 228 "url": "https://api.github.com/repos/guzzle/promises/zipball/60d379c243457e073cff02bc323a2a86cb355631", 229 "reference": "60d379c243457e073cff02bc323a2a86cb355631", 230 "shasum": "" 231 }, 232 "require": { 233 "php": ">=5.5" 217 234 }, 218 235 "require-dev": { 219 " phpunit/phpunit": "^4.0"220 }, 221 "time": "20 16-12-20T10:07:11+00:00",236 "symfony/phpunit-bridge": "^4.4 || ^5.1" 237 }, 238 "time": "2020-09-30T07:37:28+00:00", 222 239 "type": "library", 223 240 "extra": { … … 253 270 { 254 271 "name": "guzzlehttp/psr7", 255 "version": "1. 6.1",256 "version_normalized": "1. 6.1.0",272 "version": "1.7.0", 273 "version_normalized": "1.7.0.0", 257 274 "source": { 258 275 "type": "git", 259 276 "url": "https://github.com/guzzle/psr7.git", 260 "reference": " 239400de7a173fe9901b9ac7c06497751f00727a"261 }, 262 "dist": { 263 "type": "zip", 264 "url": "https://api.github.com/repos/guzzle/psr7/zipball/ 239400de7a173fe9901b9ac7c06497751f00727a",265 "reference": " 239400de7a173fe9901b9ac7c06497751f00727a",277 "reference": "53330f47520498c0ae1f61f7e2c90f55690c06a3" 278 }, 279 "dist": { 280 "type": "zip", 281 "url": "https://api.github.com/repos/guzzle/psr7/zipball/53330f47520498c0ae1f61f7e2c90f55690c06a3", 282 "reference": "53330f47520498c0ae1f61f7e2c90f55690c06a3", 266 283 "shasum": "" 267 284 }, … … 276 293 "require-dev": { 277 294 "ext-zlib": "*", 278 "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5. 8"295 "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.8 || ^9.3.10" 279 296 }, 280 297 "suggest": { 281 " zendframework/zend-httphandlerrunner": "Emit PSR-7 responses"282 }, 283 "time": "20 19-07-01T23:21:34+00:00",298 "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" 299 }, 300 "time": "2020-09-30T07:37:11+00:00", 284 301 "type": "library", 285 302 "extra": { 286 303 "branch-alias": { 287 "dev-master": "1. 6-dev"304 "dev-master": "1.7-dev" 288 305 } 289 306 }, … … 442 459 { 443 460 "name": "league/oauth2-client", 444 "version": "2. 5.0",445 "version_normalized": "2. 5.0.0",461 "version": "2.6.0", 462 "version_normalized": "2.6.0.0", 446 463 "source": { 447 464 "type": "git", 448 465 "url": "https://github.com/thephpleague/oauth2-client.git", 449 "reference": " d9f2a1e000dc14eb3c02e15d15759385ec7ff0fb"450 }, 451 "dist": { 452 "type": "zip", 453 "url": "https://api.github.com/repos/thephpleague/oauth2-client/zipball/ d9f2a1e000dc14eb3c02e15d15759385ec7ff0fb",454 "reference": " d9f2a1e000dc14eb3c02e15d15759385ec7ff0fb",466 "reference": "badb01e62383430706433191b82506b6df24ad98" 467 }, 468 "dist": { 469 "type": "zip", 470 "url": "https://api.github.com/repos/thephpleague/oauth2-client/zipball/badb01e62383430706433191b82506b6df24ad98", 471 "reference": "badb01e62383430706433191b82506b6df24ad98", 455 472 "shasum": "" 456 473 }, 457 474 "require": { 458 475 "guzzlehttp/guzzle": "^6.0 || ^7.0", 459 "paragonie/random_compat": "^1 |^2|^9.99",460 "php": "^5.6 |^7.0"476 "paragonie/random_compat": "^1 || ^2 || ^9.99", 477 "php": "^5.6 || ^7.0 || ^8.0" 461 478 }, 462 479 "require-dev": { 463 "eloquent/liberator": "^2.0", 464 "eloquent/phony-phpunit": "^1.0|^3.0", 465 "jakub-onderka/php-parallel-lint": "^0.9.2", 466 "phpunit/phpunit": "^5.7|^6.0", 467 "squizlabs/php_codesniffer": "^2.3|^3.0" 468 }, 469 "time": "2020-07-18T17:54:32+00:00", 480 "mockery/mockery": "^1.3", 481 "php-parallel-lint/php-parallel-lint": "^1.2", 482 "phpunit/phpunit": "^5.7 || ^6.0 || ^9.3", 483 "squizlabs/php_codesniffer": "^2.3 || ^3.0" 484 }, 485 "time": "2020-10-28T02:03:40+00:00", 470 486 "type": "library", 471 487 "extra": { … … 511 527 { 512 528 "name": "league/oauth2-facebook", 513 "version": "2.0. 2",514 "version_normalized": "2.0. 2.0",529 "version": "2.0.3", 530 "version_normalized": "2.0.3.0", 515 531 "source": { 516 532 "type": "git", 517 533 "url": "https://github.com/thephpleague/oauth2-facebook.git", 518 "reference": " c482a851c93a6cb718270773635d6a0c8384b560"519 }, 520 "dist": { 521 "type": "zip", 522 "url": "https://api.github.com/repos/thephpleague/oauth2-facebook/zipball/ c482a851c93a6cb718270773635d6a0c8384b560",523 "reference": " c482a851c93a6cb718270773635d6a0c8384b560",534 "reference": "093cf588b9d508ee426c71d6bc68f138fe914ddc" 535 }, 536 "dist": { 537 "type": "zip", 538 "url": "https://api.github.com/repos/thephpleague/oauth2-facebook/zipball/093cf588b9d508ee426c71d6bc68f138fe914ddc", 539 "reference": "093cf588b9d508ee426c71d6bc68f138fe914ddc", 524 540 "shasum": "" 525 541 }, … … 534 550 "squizlabs/php_codesniffer": "~3.0" 535 551 }, 536 "time": "2020- 07-25T13:30:06+00:00",552 "time": "2020-10-01T15:22:47+00:00", 537 553 "type": "library", 538 554 "installation-source": "dist", … … 676 692 { 677 693 "name": "paragonie/random_compat", 678 "version": "v2.0.1 8",679 "version_normalized": "2.0.1 8.0",694 "version": "v2.0.19", 695 "version_normalized": "2.0.19.0", 680 696 "source": { 681 697 "type": "git", 682 698 "url": "https://github.com/paragonie/random_compat.git", 683 "reference": " 0a58ef6e3146256cc3dc7cc393927bcc7d1b72db"684 }, 685 "dist": { 686 "type": "zip", 687 "url": "https://api.github.com/repos/paragonie/random_compat/zipball/ 0a58ef6e3146256cc3dc7cc393927bcc7d1b72db",688 "reference": " 0a58ef6e3146256cc3dc7cc393927bcc7d1b72db",699 "reference": "446fc9faa5c2a9ddf65eb7121c0af7e857295241" 700 }, 701 "dist": { 702 "type": "zip", 703 "url": "https://api.github.com/repos/paragonie/random_compat/zipball/446fc9faa5c2a9ddf65eb7121c0af7e857295241", 704 "reference": "446fc9faa5c2a9ddf65eb7121c0af7e857295241", 689 705 "shasum": "" 690 706 }, … … 698 714 "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." 699 715 }, 700 "time": "20 19-01-03T20:59:08+00:00",716 "time": "2020-10-15T10:06:57+00:00", 701 717 "type": "library", 702 718 "installation-source": "dist", … … 821 837 { 822 838 "name": "symfony/polyfill-intl-idn", 823 "version": "v1.1 8.1",824 "version_normalized": "1.1 8.1.0",839 "version": "v1.19.0", 840 "version_normalized": "1.19.0.0", 825 841 "source": { 826 842 "type": "git", 827 843 "url": "https://github.com/symfony/polyfill-intl-idn.git", 828 "reference": " 5dcab1bc7146cf8c1beaa4502a3d9be344334251"829 }, 830 "dist": { 831 "type": "zip", 832 "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/ 5dcab1bc7146cf8c1beaa4502a3d9be344334251",833 "reference": " 5dcab1bc7146cf8c1beaa4502a3d9be344334251",844 "reference": "4ad5115c0f5d5172a9fe8147675ec6de266d8826" 845 }, 846 "dist": { 847 "type": "zip", 848 "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/4ad5115c0f5d5172a9fe8147675ec6de266d8826", 849 "reference": "4ad5115c0f5d5172a9fe8147675ec6de266d8826", 834 850 "shasum": "" 835 851 }, … … 843 859 "ext-intl": "For best performance" 844 860 }, 845 "time": "2020- 08-04T06:02:08+00:00",861 "time": "2020-10-21T09:57:48+00:00", 846 862 "type": "library", 847 863 "extra": { 848 864 "branch-alias": { 849 "dev-ma ster": "1.18-dev"865 "dev-main": "1.19-dev" 850 866 }, 851 867 "thanks": { … … 890 906 "portable", 891 907 "shim" 908 ], 909 "funding": [ 910 { 911 "url": "https://symfony.com/sponsor", 912 "type": "custom" 913 }, 914 { 915 "url": "https://github.com/fabpot", 916 "type": "github" 917 }, 918 { 919 "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 920 "type": "tidelift" 921 } 892 922 ] 893 923 }, 894 924 { 895 925 "name": "symfony/polyfill-intl-normalizer", 896 "version": "v1.1 8.1",897 "version_normalized": "1.1 8.1.0",926 "version": "v1.19.0", 927 "version_normalized": "1.19.0.0", 898 928 "source": { 899 929 "type": "git", 900 930 "url": "https://github.com/symfony/polyfill-intl-normalizer.git", 901 "reference": " 37078a8dd4a2a1e9ab0231af7c6cb671b2ed5a7e"902 }, 903 "dist": { 904 "type": "zip", 905 "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/ 37078a8dd4a2a1e9ab0231af7c6cb671b2ed5a7e",906 "reference": " 37078a8dd4a2a1e9ab0231af7c6cb671b2ed5a7e",931 "reference": "8db0ae7936b42feb370840cf24de1a144fb0ef27" 932 }, 933 "dist": { 934 "type": "zip", 935 "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/8db0ae7936b42feb370840cf24de1a144fb0ef27", 936 "reference": "8db0ae7936b42feb370840cf24de1a144fb0ef27", 907 937 "shasum": "" 908 938 }, … … 913 943 "ext-intl": "For best performance" 914 944 }, 915 "time": "2020- 07-14T12:35:20+00:00",945 "time": "2020-10-23T09:01:57+00:00", 916 946 "type": "library", 917 947 "extra": { 918 948 "branch-alias": { 919 "dev-ma ster": "1.18-dev"949 "dev-main": "1.19-dev" 920 950 }, 921 951 "thanks": { … … 959 989 "portable", 960 990 "shim" 991 ], 992 "funding": [ 993 { 994 "url": "https://symfony.com/sponsor", 995 "type": "custom" 996 }, 997 { 998 "url": "https://github.com/fabpot", 999 "type": "github" 1000 }, 1001 { 1002 "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 1003 "type": "tidelift" 1004 } 961 1005 ] 962 1006 }, 963 1007 { 964 1008 "name": "symfony/polyfill-php70", 965 "version": "v1.1 8.1",966 "version_normalized": "1.1 8.1.0",1009 "version": "v1.19.0", 1010 "version_normalized": "1.19.0.0", 967 1011 "source": { 968 1012 "type": "git", 969 1013 "url": "https://github.com/symfony/polyfill-php70.git", 970 "reference": " 0dd93f2c578bdc9c72697eaa5f1dd25644e618d3"971 }, 972 "dist": { 973 "type": "zip", 974 "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/ 0dd93f2c578bdc9c72697eaa5f1dd25644e618d3",975 "reference": " 0dd93f2c578bdc9c72697eaa5f1dd25644e618d3",1014 "reference": "3fe414077251a81a1b15b1c709faf5c2fbae3d4e" 1015 }, 1016 "dist": { 1017 "type": "zip", 1018 "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/3fe414077251a81a1b15b1c709faf5c2fbae3d4e", 1019 "reference": "3fe414077251a81a1b15b1c709faf5c2fbae3d4e", 976 1020 "shasum": "" 977 1021 }, … … 980 1024 "php": ">=5.3.3" 981 1025 }, 982 "time": "2020- 07-14T12:35:20+00:00",1026 "time": "2020-10-23T09:01:57+00:00", 983 1027 "type": "library", 984 1028 "extra": { 985 1029 "branch-alias": { 986 "dev-ma ster": "1.18-dev"1030 "dev-main": "1.19-dev" 987 1031 }, 988 1032 "thanks": { … … 1024 1068 "portable", 1025 1069 "shim" 1070 ], 1071 "funding": [ 1072 { 1073 "url": "https://symfony.com/sponsor", 1074 "type": "custom" 1075 }, 1076 { 1077 "url": "https://github.com/fabpot", 1078 "type": "github" 1079 }, 1080 { 1081 "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 1082 "type": "tidelift" 1083 } 1026 1084 ] 1027 1085 }, 1028 1086 { 1029 1087 "name": "symfony/polyfill-php72", 1030 "version": "v1.1 8.1",1031 "version_normalized": "1.1 8.1.0",1088 "version": "v1.19.0", 1089 "version_normalized": "1.19.0.0", 1032 1090 "source": { 1033 1091 "type": "git", 1034 1092 "url": "https://github.com/symfony/polyfill-php72.git", 1035 "reference": " 639447d008615574653fb3bc60d1986d7172eaae"1036 }, 1037 "dist": { 1038 "type": "zip", 1039 "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/ 639447d008615574653fb3bc60d1986d7172eaae",1040 "reference": " 639447d008615574653fb3bc60d1986d7172eaae",1093 "reference": "beecef6b463b06954638f02378f52496cb84bacc" 1094 }, 1095 "dist": { 1096 "type": "zip", 1097 "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/beecef6b463b06954638f02378f52496cb84bacc", 1098 "reference": "beecef6b463b06954638f02378f52496cb84bacc", 1041 1099 "shasum": "" 1042 1100 }, … … 1044 1102 "php": ">=5.3.3" 1045 1103 }, 1046 "time": "2020- 07-14T12:35:20+00:00",1104 "time": "2020-10-23T09:01:57+00:00", 1047 1105 "type": "library", 1048 1106 "extra": { 1049 1107 "branch-alias": { 1050 "dev-ma ster": "1.18-dev"1108 "dev-main": "1.19-dev" 1051 1109 }, 1052 1110 "thanks": { … … 1085 1143 "portable", 1086 1144 "shim" 1145 ], 1146 "funding": [ 1147 { 1148 "url": "https://symfony.com/sponsor", 1149 "type": "custom" 1150 }, 1151 { 1152 "url": "https://github.com/fabpot", 1153 "type": "github" 1154 }, 1155 { 1156 "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 1157 "type": "tidelift" 1158 } 1087 1159 ] 1088 1160 } -
quick-login/trunk/vendor/composer/installers/composer.json
r2303737 r2458198 58 58 "Puppet", 59 59 "Porto", 60 "ProcessWire", 60 61 "RadPHP", 61 62 "ReIndex", … … 64 65 "SilverStripe", 65 66 "SMF", 67 "Starbug", 66 68 "SyDES", 67 69 "Sylius", … … 87 89 "psr-4": { "Composer\\Installers\\": "src/Composer/Installers" } 88 90 }, 91 "autoload-dev": { 92 "psr-4": { "Composer\\Installers\\Test\\": "tests/Composer/Installers/Test" } 93 }, 89 94 "extra": { 90 95 "class": "Composer\\Installers\\Plugin", 91 96 "branch-alias": { 92 "dev-ma ster": "1.0-dev"97 "dev-main": "1.x-dev" 93 98 } 94 99 }, … … 101 106 }, 102 107 "require-dev": { 103 "composer/composer": "1.6.* || 2.0.*@dev", 104 "composer/semver": "1.0.* || 2.0.*@dev", 105 "phpunit/phpunit": "^4.8.36", 106 "sebastian/comparator": "^1.2.4", 107 "symfony/process": "^2.3" 108 "composer/composer": "1.6.* || ^2.0", 109 "composer/semver": "^1 || ^3", 110 "symfony/phpunit-bridge": "^4.2 || ^5", 111 "phpstan/phpstan": "^0.12.55", 112 "symfony/process": "^2.3", 113 "phpstan/phpstan-phpunit": "^0.12.16" 108 114 }, 109 115 "scripts": { 110 "test": "phpunit" 116 "test": "SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT=1 vendor/bin/simple-phpunit", 117 "phpstan": "vendor/bin/phpstan analyse" 111 118 } 112 119 } -
quick-login/trunk/vendor/composer/installers/src/Composer/Installers/BaseInstaller.php
r2303737 r2458198 75 75 * For an installer to override to modify the vars per installer. 76 76 * 77 * @param array $vars78 * @return array 77 * @param array<string, string> $vars This will normally receive array{name: string, vendor: string, type: string} 78 * @return array<string, string> 79 79 */ 80 80 public function inflectPackageVars($vars) … … 86 86 * Gets the installer's locations 87 87 * 88 * @return array 88 * @return array<string, string> map of package types => install path 89 89 */ 90 90 public function getLocations() … … 96 96 * Replace vars in a path 97 97 * 98 * @param string $path99 * @param array $vars98 * @param string $path 99 * @param array<string, string> $vars 100 100 * @return string 101 101 */ … … 122 122 * @param string $type 123 123 * @param string $vendor = NULL 124 * @return string 124 * @return string|false 125 125 */ 126 126 protected function mapCustomInstallPaths(array $paths, $name, $type, $vendor = NULL) -
quick-login/trunk/vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php
r2303737 r2458198 3 3 4 4 use Composer\DependencyResolver\Pool; 5 use Composer\Semver\Constraint\Constraint; 5 6 6 7 class CakePHPInstaller extends BaseInstaller … … 50 51 protected function matchesCakeVersion($matcher, $version) 51 52 { 52 if (class_exists('Composer\Semver\Constraint\MultiConstraint')) {53 $multiClass = 'Composer\Semver\Constraint\MultiConstraint';54 $constraintClass = 'Composer\Semver\Constraint\Constraint';55 } else {56 $multiClass = 'Composer\Package\LinkConstraint\MultiConstraint';57 $constraintClass = 'Composer\Package\LinkConstraint\VersionConstraint';58 }59 60 53 $repositoryManager = $this->composer->getRepositoryManager(); 61 54 if (! $repositoryManager) { … … 68 61 } 69 62 70 return $repos->findPackage('cakephp/cakephp', new $constraintClass($matcher, $version)) !== null;63 return $repos->findPackage('cakephp/cakephp', new Constraint($matcher, $version)) !== null; 71 64 } 72 65 } -
quick-login/trunk/vendor/composer/installers/src/Composer/Installers/CockpitInstaller.php
r1860398 r2458198 13 13 * Strip `module-` prefix from package name. 14 14 * 15 * @param array @vars 16 * 17 * @return array 15 * {@inheritDoc} 18 16 */ 19 17 public function inflectPackageVars($vars) -
quick-login/trunk/vendor/composer/installers/src/Composer/Installers/Installer.php
r2303737 r2458198 10 10 use Composer\Repository\InstalledRepositoryInterface; 11 11 use Composer\Util\Filesystem; 12 use React\Promise\PromiseInterface; 12 13 13 14 class Installer extends LibraryInstaller … … 88 89 'phifty' => 'PhiftyInstaller', 89 90 'porto' => 'PortoInstaller', 91 'processwire' => 'ProcessWireInstaller', 90 92 'redaxo' => 'RedaxoInstaller', 91 93 'redaxo5' => 'Redaxo5Installer', … … 96 98 'silverstripe' => 'SilverStripeInstaller', 97 99 'smf' => 'SMFInstaller', 100 'starbug' => 'StarbugInstaller', 98 101 'sydes' => 'SyDESInstaller', 99 102 'sylius' => 'SyliusInstaller', … … 161 164 public function uninstall(InstalledRepositoryInterface $repo, PackageInterface $package) 162 165 { 163 parent::uninstall($repo, $package);164 166 $installPath = $this->getPackageBasePath($package); 165 $this->io->write(sprintf('Deleting %s - %s', $installPath, !file_exists($installPath) ? '<comment>deleted</comment>' : '<error>not deleted</error>')); 167 $io = $this->io; 168 $outputStatus = function () use ($io, $installPath) { 169 $io->write(sprintf('Deleting %s - %s', $installPath, !file_exists($installPath) ? '<comment>deleted</comment>' : '<error>not deleted</error>')); 170 }; 171 172 $promise = parent::uninstall($repo, $package); 173 174 // Composer v2 might return a promise here 175 if ($promise instanceof PromiseInterface) { 176 return $promise->then($outputStatus); 177 } 178 179 // If not, execute the code right away as parent::uninstall executed synchronously (composer v1, or v2 without async) 180 $outputStatus(); 181 182 return null; 166 183 } 167 184 … … 185 202 * Finds a supported framework type if it exists and returns it 186 203 * 187 * @param string $type188 * @return string 204 * @param string $type 205 * @return string|false 189 206 */ 190 207 protected function findFrameworkType($type) 191 208 { 192 $frameworkType = false;193 194 209 krsort($this->supportedTypes); 195 210 196 211 foreach ($this->supportedTypes as $key => $val) { 197 212 if ($key === substr($type, 0, strlen($key))) { 198 $frameworkType = substr($type, 0, strlen($key)); 199 break; 213 return substr($type, 0, strlen($key)); 200 214 } 201 215 } 202 216 203 return $frameworkType;217 return false; 204 218 } 205 219 -
quick-login/trunk/vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php
r2223410 r2458198 19 19 'cachelock' => 'cache/locks/{$name}/', 20 20 'calendartype' => 'calendar/type/{$name}/', 21 'fileconverter' => 'files/converter/{$name}/', 21 22 'format' => 'course/format/{$name}/', 22 23 'coursereport' => 'course/report/{$name}/', -
quick-login/trunk/vendor/composer/installers/src/Composer/Installers/OxidInstaller.php
r1860398 r2458198 19 19 * @param PackageInterface $package 20 20 * @param string $frameworkType 21 * @return void21 * @return string 22 22 */ 23 23 public function getInstallPath(PackageInterface $package, $frameworkType = '') -
quick-login/trunk/vendor/composer/installers/src/Composer/Installers/SyDESInstaller.php
r1860398 r2458198 14 14 * Strip `sydes-` prefix and a trailing '-theme' or '-module' from package name if present. 15 15 * 16 * @param array @vars 17 * 18 * @return array 16 * {@inerhitDoc} 19 17 */ 20 18 public function inflectPackageVars($vars) -
quick-login/trunk/vendor/composer/installers/src/Composer/Installers/TaoInstaller.php
r2223410 r2458198 7 7 class TaoInstaller extends BaseInstaller 8 8 { 9 const EXTRA_TAO_EXTENSION_NAME = 'tao-extension-name'; 10 9 11 protected $locations = array( 10 12 'extension' => '{$name}' 11 13 ); 14 15 public function inflectPackageVars($vars) 16 { 17 $extra = $this->package->getExtra(); 18 19 if (array_key_exists(self::EXTRA_TAO_EXTENSION_NAME, $extra)) { 20 $vars['name'] = $extra[self::EXTRA_TAO_EXTENSION_NAME]; 21 return $vars; 22 } 23 24 $vars['name'] = str_replace('extension-', '', $vars['name']); 25 $vars['name'] = str_replace('-', ' ', $vars['name']); 26 $vars['name'] = lcfirst(str_replace(' ', '', ucwords($vars['name']))); 27 28 return $vars; 29 } 12 30 } -
quick-login/trunk/vendor/guzzlehttp/promises/CHANGELOG.md
r1860398 r2458198 1 1 # CHANGELOG 2 3 4 ## 1.4.0 - 2020-09-30 5 6 ### Added 7 8 - Support for PHP 8 9 - Optional `$recursive` flag to `all` 10 - Replaced functions by static methods 11 12 ### Fixed 13 14 - Fix empty `each` processing 15 - Fix promise handling for Iterators of non-unique keys 16 - Fixed `method_exists` crashes on PHP 8 17 - Memory leak on exceptions 2 18 3 19 -
quick-login/trunk/vendor/guzzlehttp/promises/README.md
r1860398 r2458198 27 27 - Works with any object that has a `then` function. 28 28 - C# style async/await coroutine promises using 29 `GuzzleHttp\Promise\ coroutine()`.29 `GuzzleHttp\Promise\Coroutine::of()`. 30 30 31 31 … … 89 89 90 90 // Resolving the promise triggers the $onFulfilled callbacks and outputs 91 // "Hello, reader ".91 // "Hello, reader." 92 92 $promise->resolve('reader.'); 93 93 ``` … … 151 151 $promise = new Promise(); 152 152 $promise->then(null, function ($reason) { 153 throw new \Exception($reason);153 throw new Exception($reason); 154 154 })->then(null, function ($reason) { 155 155 assert($reason->getMessage() === 'Error!'); … … 183 183 ```php 184 184 use GuzzleHttp\Promise\Promise; 185 use GuzzleHttp\Promise\RejectedPromise;186 185 187 186 $promise = new Promise(); … … 221 220 ```php 222 221 $promise = new Promise(function () use (&$promise) { 223 throw new \Exception('foo');222 throw new Exception('foo'); 224 223 }); 225 224 … … 398 397 399 398 // Create a Guzzle promise that is fulfilled with a React promise. 400 $guzzlePromise = new \GuzzleHttp\Promise\Promise();399 $guzzlePromise = new GuzzleHttp\Promise\Promise(); 401 400 $guzzlePromise->then(function ($value) use ($reactPromise) { 402 401 // Do something something with the value... … … 425 424 ```php 426 425 // Get the global task queue 427 $queue = \GuzzleHttp\Promise\queue();426 $queue = GuzzleHttp\Promise\Utils::queue(); 428 427 $queue->run(); 429 428 ``` … … 503 502 // prints "foo" 504 503 ``` 504 505 506 ## Upgrading from Function API 507 508 A static API was first introduced in 1.4.0, in order to mitigate problems with functions conflicting between global and local copies of the package. The function API will be removed in 2.0.0. A migration table has been provided here for your convenience: 509 510 | Original Function | Replacement Method | 511 |----------------|----------------| 512 | `queue` | `Utils::queue` | 513 | `task` | `Utils::task` | 514 | `promise_for` | `Create::promiseFor` | 515 | `rejection_for` | `Create::rejectionFor` | 516 | `exception_for` | `Create::exceptionFor` | 517 | `iter_for` | `Create::iterFor` | 518 | `inspect` | `Utils::inspect` | 519 | `inspect_all` | `Utils::inspectAll` | 520 | `unwrap` | `Utils::unwrap` | 521 | `all` | `Utils::all` | 522 | `some` | `Utils::some` | 523 | `any` | `Utils::any` | 524 | `settle` | `Utils::settle` | 525 | `each` | `Each::of` | 526 | `each_limit` | `Each::ofLimit` | 527 | `each_limit_all` | `Each::ofLimitAll` | 528 | `!is_fulfilled` | `Is::pending` | 529 | `is_fulfilled` | `Is::fulfilled` | 530 | `is_rejected` | `Is::rejected` | 531 | `is_settled` | `Is::settled` | 532 | `coroutine` | `Coroutine::of` | -
quick-login/trunk/vendor/guzzlehttp/promises/composer.json
r1860398 r2458198 12 12 ], 13 13 "require": { 14 "php": ">=5.5 .0"14 "php": ">=5.5" 15 15 }, 16 16 "require-dev": { 17 " phpunit/phpunit": "^4.0"17 "symfony/phpunit-bridge": "^4.4 || ^5.1" 18 18 }, 19 19 "autoload": { … … 23 23 "files": ["src/functions_include.php"] 24 24 }, 25 "autoload-dev": { 26 "psr-4": { 27 "GuzzleHttp\\Promise\\Tests\\": "tests/" 28 } 29 }, 25 30 "scripts": { 26 "test": "vendor/bin/ phpunit",27 "test-ci": "vendor/bin/ phpunit --coverage-text"31 "test": "vendor/bin/simple-phpunit", 32 "test-ci": "vendor/bin/simple-phpunit --coverage-text" 28 33 }, 29 34 "extra": { -
quick-login/trunk/vendor/guzzlehttp/promises/src/AggregateException.php
r1860398 r2458198 1 1 <?php 2 2 3 namespace GuzzleHttp\Promise; 3 4 -
quick-login/trunk/vendor/guzzlehttp/promises/src/CancellationException.php
r1860398 r2458198 1 1 <?php 2 2 3 namespace GuzzleHttp\Promise; 3 4 -
quick-login/trunk/vendor/guzzlehttp/promises/src/Coroutine.php
r1860398 r2458198 1 1 <?php 2 2 3 namespace GuzzleHttp\Promise; 3 4 … … 10 11 * promises (somewhat similar to C#'s async keyword). 11 12 * 12 * When called, the coroutine functionwill start an instance of the generator13 * When called, the Coroutine::of method will start an instance of the generator 13 14 * and returns a promise that is fulfilled with its final yielded value. 14 15 * … … 23 24 * } 24 25 * 25 * $promise = Promise\ coroutine(function () {26 * $promise = Promise\Coroutine::of(function () { 26 27 * $value = (yield createPromise('a')); 27 28 * try { … … 39 40 * 40 41 * @return Promise 42 * 41 43 * @link https://github.com/petkaantonov/bluebird/blob/master/API.md#generators inspiration 42 44 */ … … 66 68 } 67 69 }); 68 $this->nextCoroutine($this->generator->current()); 70 try { 71 $this->nextCoroutine($this->generator->current()); 72 } catch (\Exception $exception) { 73 $this->result->reject($exception); 74 } catch (Throwable $throwable) { 75 $this->result->reject($throwable); 76 } 77 } 78 79 /** 80 * Create a new coroutine. 81 * 82 * @return self 83 */ 84 public static function of(callable $generatorFn) 85 { 86 return new self($generatorFn); 69 87 } 70 88 … … 109 127 private function nextCoroutine($yielded) 110 128 { 111 $this->currentPromise = promise_for($yielded)129 $this->currentPromise = Create::promiseFor($yielded) 112 130 ->then([$this, '_handleSuccess'], [$this, '_handleFailure']); 113 131 } … … 140 158 unset($this->currentPromise); 141 159 try { 142 $nextYield = $this->generator->throw( exception_for($reason));160 $nextYield = $this->generator->throw(Create::exceptionFor($reason)); 143 161 // The throw was caught, so keep iterating on the coroutine 144 162 $this->nextCoroutine($nextYield); -
quick-login/trunk/vendor/guzzlehttp/promises/src/EachPromise.php
r1860398 r2458198 1 1 <?php 2 2 3 namespace GuzzleHttp\Promise; 3 4 … … 10 11 private $pending = []; 11 12 12 /** @var \Iterator */13 /** @var \Iterator|null */ 13 14 private $iterable; 14 15 15 /** @var callable|int */16 /** @var callable|int|null */ 16 17 private $concurrency; 17 18 18 /** @var callable */19 /** @var callable|null */ 19 20 private $onFulfilled; 20 21 21 /** @var callable */22 /** @var callable|null */ 22 23 private $onRejected; 23 24 24 /** @var Promise */25 /** @var Promise|null */ 25 26 private $aggregate; 26 27 27 /** @var bool */28 /** @var bool|null */ 28 29 private $mutex; 29 30 … … 46 47 * creating a capped pool of promises. There is no limit by default. 47 48 * 48 * @param mixed $iterable Promises or values to iterate.49 * @param array $config Configuration options49 * @param mixed $iterable Promises or values to iterate. 50 * @param array $config Configuration options 50 51 */ 51 52 public function __construct($iterable, array $config = []) 52 53 { 53 $this->iterable = iter_for($iterable);54 $this->iterable = Create::iterFor($iterable); 54 55 55 56 if (isset($config['concurrency'])) { … … 66 67 } 67 68 69 /** @psalm-suppress InvalidNullableReturnType */ 68 70 public function promise() 69 71 { … … 74 76 try { 75 77 $this->createPromise(); 78 /** @psalm-assert Promise $this->aggregate */ 76 79 $this->iterable->rewind(); 77 $this->refillPending(); 80 if (!$this->checkIfFinished()) { 81 $this->refillPending(); 82 } 78 83 } catch (\Throwable $e) { 84 /** 85 * @psalm-suppress NullReference 86 * @phpstan-ignore-next-line 87 */ 79 88 $this->aggregate->reject($e); 80 89 } catch (\Exception $e) { 81 $this->aggregate->reject($e); 82 } 83 90 /** 91 * @psalm-suppress NullReference 92 * @phpstan-ignore-next-line 93 */ 94 $this->aggregate->reject($e); 95 } 96 97 /** 98 * @psalm-suppress NullableReturnStatement 99 * @phpstan-ignore-next-line 100 */ 84 101 return $this->aggregate; 85 102 } … … 90 107 $this->aggregate = new Promise(function () { 91 108 reset($this->pending); 92 if (empty($this->pending) && !$this->iterable->valid()) {93 $this->aggregate->resolve(null);94 return;95 }96 97 109 // Consume a potentially fluctuating list of promises while 98 110 // ensuring that indexes are maintained (precluding array_shift). … … 100 112 next($this->pending); 101 113 $promise->wait(); 102 if ( $this->aggregate->getState() !== PromiseInterface::PENDING) {114 if (Is::settled($this->aggregate)) { 103 115 return; 104 116 } … … 149 161 } 150 162 151 $promise = promise_for($this->iterable->current()); 152 $idx = $this->iterable->key(); 163 $promise = Create::promiseFor($this->iterable->current()); 164 $key = $this->iterable->key(); 165 166 // Iterable keys may not be unique, so we add the promises at the end 167 // of the pending array and retrieve the array index being used 168 $this->pending[] = null; 169 end($this->pending); 170 $idx = key($this->pending); 153 171 154 172 $this->pending[$idx] = $promise->then( 155 function ($value) use ($idx ) {173 function ($value) use ($idx, $key) { 156 174 if ($this->onFulfilled) { 157 175 call_user_func( 158 $this->onFulfilled, $value, $idx, $this->aggregate 176 $this->onFulfilled, 177 $value, 178 $key, 179 $this->aggregate 159 180 ); 160 181 } 161 182 $this->step($idx); 162 183 }, 163 function ($reason) use ($idx ) {184 function ($reason) use ($idx, $key) { 164 185 if ($this->onRejected) { 165 186 call_user_func( 166 $this->onRejected, $reason, $idx, $this->aggregate 187 $this->onRejected, 188 $reason, 189 $key, 190 $this->aggregate 167 191 ); 168 192 } … … 202 226 { 203 227 // If the promise was already resolved, then ignore this step. 204 if ( $this->aggregate->getState() !== PromiseInterface::PENDING) {228 if (Is::settled($this->aggregate)) { 205 229 return; 206 230 } -
quick-login/trunk/vendor/guzzlehttp/promises/src/FulfilledPromise.php
r1860398 r2458198 1 1 <?php 2 2 3 namespace GuzzleHttp\Promise; 3 4 … … 14 15 public function __construct($value) 15 16 { 16 if ( method_exists($value, 'then')) {17 if (is_object($value) && method_exists($value, 'then')) { 17 18 throw new \InvalidArgumentException( 18 'You cannot create a FulfilledPromise with a promise.'); 19 'You cannot create a FulfilledPromise with a promise.' 20 ); 19 21 } 20 22 … … 31 33 } 32 34 33 $queue = queue();35 $queue = Utils::queue(); 34 36 $p = new Promise([$queue, 'run']); 35 37 $value = $this->value; 36 38 $queue->add(static function () use ($p, $value, $onFulfilled) { 37 if ( $p->getState() === self::PENDING) {39 if (Is::pending($p)) { 38 40 try { 39 41 $p->resolve($onFulfilled($value)); -
quick-login/trunk/vendor/guzzlehttp/promises/src/Promise.php
r1860398 r2458198 1 1 <?php 2 2 3 namespace GuzzleHttp\Promise; 3 4 … … 42 43 // Return a fulfilled promise and immediately invoke any callbacks. 43 44 if ($this->state === self::FULFILLED) { 44 return $onFulfilled 45 ? promise_for($this->result)->then($onFulfilled) 46 : promise_for($this->result); 45 $promise = Create::promiseFor($this->result); 46 return $onFulfilled ? $promise->then($onFulfilled) : $promise; 47 47 } 48 48 49 49 // It's either cancelled or rejected, so return a rejected promise 50 50 // and immediately invoke any callbacks. 51 $rejection = rejection_for($this->result);51 $rejection = Create::rejectionFor($this->result); 52 52 return $onRejected ? $rejection->then(null, $onRejected) : $rejection; 53 53 } … … 62 62 $this->waitIfPending(); 63 63 64 $inner = $this->result instanceof PromiseInterface 65 ? $this->result->wait($unwrap) 66 : $this->result; 67 64 if ($this->result instanceof PromiseInterface) { 65 return $this->result->wait($unwrap); 66 } 68 67 if ($unwrap) { 69 if ($this->result instanceof PromiseInterface 70 || $this->state === self::FULFILLED 71 ) { 72 return $inner; 73 } else { 74 // It's rejected so "unwrap" and throw an exception. 75 throw exception_for($inner); 76 } 68 if ($this->state === self::FULFILLED) { 69 return $this->result; 70 } 71 // It's rejected so "unwrap" and throw an exception. 72 throw Create::exceptionFor($this->result); 77 73 } 78 74 } … … 104 100 105 101 // Reject the promise only if it wasn't rejected in a then callback. 102 /** @psalm-suppress RedundantCondition */ 106 103 if ($this->state === self::PENDING) { 107 104 $this->reject(new CancellationException('Promise has been cancelled')); … … 149 146 // If the value was not a settled promise or a thenable, then resolve 150 147 // it in the task queue using the correct ID. 151 if (! method_exists($value, 'then')) {148 if (!is_object($value) || !method_exists($value, 'then')) { 152 149 $id = $state === self::FULFILLED ? 1 : 2; 153 150 // It's a success, so resolve the handlers in the queue. 154 queue()->add(static function () use ($id, $value, $handlers) {151 Utils::queue()->add(static function () use ($id, $value, $handlers) { 155 152 foreach ($handlers as $handler) { 156 153 self::callHandler($id, $value, $handler); 157 154 } 158 155 }); 159 } elseif ($value instanceof Promise 160 && $value->getState() === self::PENDING 161 ) { 156 } elseif ($value instanceof Promise && Is::pending($value)) { 162 157 // We can just merge our handlers onto the next promise. 163 158 $value->handlers = array_merge($value->handlers, $handlers); … … 185 180 * @param mixed $value Value to pass to the callback. 186 181 * @param array $handler Array of handler data (promise and callbacks). 187 *188 * @return array Returns the next group to resolve.189 182 */ 190 183 private static function callHandler($index, $value, array $handler) … … 195 188 // The promise may have been cancelled or resolved before placing 196 189 // this thunk in the queue. 197 if ( $promise->getState() !== self::PENDING) {190 if (Is::settled($promise)) { 198 191 return; 199 192 } … … 201 194 try { 202 195 if (isset($handler[$index])) { 203 $promise->resolve($handler[$index]($value)); 196 /* 197 * If $f throws an exception, then $handler will be in the exception 198 * stack trace. Since $handler contains a reference to the callable 199 * itself we get a circular reference. We clear the $handler 200 * here to avoid that memory leak. 201 */ 202 $f = $handler[$index]; 203 unset($handler); 204 $promise->resolve($f($value)); 204 205 } elseif ($index === 1) { 205 206 // Forward resolution values as-is. … … 225 226 $this->invokeWaitList(); 226 227 } else { 227 // If there's no twait function, then reject the promise.228 // If there's no wait function, then reject the promise. 228 229 $this->reject('Cannot wait on a promise that has ' 229 230 . 'no internal wait function. You must provide a wait ' … … 232 233 } 233 234 234 queue()->run(); 235 235 Utils::queue()->run(); 236 237 /** @psalm-suppress RedundantCondition */ 236 238 if ($this->state === self::PENDING) { 237 239 $this->reject('Invoking the wait callback did not resolve the promise'); … … 264 266 265 267 foreach ($waitList as $result) { 266 while (true){268 do { 267 269 $result->waitIfPending(); 268 269 if ($result->result instanceof Promise) { 270 $result = $result->result; 271 } else { 272 if ($result->result instanceof PromiseInterface) { 273 $result->result->wait(false); 274 } 275 break; 276 } 270 $result = $result->result; 271 } while ($result instanceof Promise); 272 273 if ($result instanceof PromiseInterface) { 274 $result->wait(false); 277 275 } 278 276 } -
quick-login/trunk/vendor/guzzlehttp/promises/src/PromiseInterface.php
r1860398 r2458198 1 1 <?php 2 2 3 namespace GuzzleHttp\Promise; 3 4 … … 57 58 * 58 59 * @param mixed $value 60 * 59 61 * @throws \RuntimeException if the promise is already resolved. 60 62 */ … … 65 67 * 66 68 * @param mixed $reason 69 * 67 70 * @throws \RuntimeException if the promise is already resolved. 68 71 */ … … 87 90 * 88 91 * @return mixed 92 * 89 93 * @throws \LogicException if the promise has no wait function or if the 90 94 * promise does not settle after waiting. -
quick-login/trunk/vendor/guzzlehttp/promises/src/PromisorInterface.php
r1860398 r2458198 1 1 <?php 2 2 3 namespace GuzzleHttp\Promise; 3 4 -
quick-login/trunk/vendor/guzzlehttp/promises/src/RejectedPromise.php
r1860398 r2458198 1 1 <?php 2 2 3 namespace GuzzleHttp\Promise; 3 4 … … 14 15 public function __construct($reason) 15 16 { 16 if ( method_exists($reason, 'then')) {17 if (is_object($reason) && method_exists($reason, 'then')) { 17 18 throw new \InvalidArgumentException( 18 'You cannot create a RejectedPromise with a promise.'); 19 'You cannot create a RejectedPromise with a promise.' 20 ); 19 21 } 20 22 … … 31 33 } 32 34 33 $queue = queue();35 $queue = Utils::queue(); 34 36 $reason = $this->reason; 35 37 $p = new Promise([$queue, 'run']); 36 38 $queue->add(static function () use ($p, $reason, $onRejected) { 37 if ( $p->getState() === self::PENDING) {39 if (Is::pending($p)) { 38 40 try { 39 41 // Return a resolved promise if onRejected does not throw. … … 60 62 { 61 63 if ($unwrap) { 62 throw exception_for($this->reason);64 throw Create::exceptionFor($this->reason); 63 65 } 66 67 return null; 64 68 } 65 69 -
quick-login/trunk/vendor/guzzlehttp/promises/src/RejectionException.php
r1860398 r2458198 1 1 <?php 2 2 3 namespace GuzzleHttp\Promise; 3 4 … … 13 14 14 15 /** 15 * @param mixed $reasonRejection reason.16 * @param mixed $reason Rejection reason. 16 17 * @param string $description Optional description 17 18 */ -
quick-login/trunk/vendor/guzzlehttp/promises/src/TaskQueue.php
r1860398 r2458198 1 1 <?php 2 2 3 namespace GuzzleHttp\Promise; 3 4 … … 9 10 * by calling the `run()` function of the global task queue in an event loop. 10 11 * 11 * GuzzleHttp\Promise\ queue()->run();12 * GuzzleHttp\Promise\Utils::queue()->run(); 12 13 */ 13 14 class TaskQueue implements TaskQueueInterface … … 43 44 public function run() 44 45 { 45 /** @var callable $task */46 46 while ($task = array_shift($this->queue)) { 47 /** @var callable $task */ 47 48 $task(); 48 49 } -
quick-login/trunk/vendor/guzzlehttp/promises/src/TaskQueueInterface.php
r1860398 r2458198 1 1 <?php 2 2 3 namespace GuzzleHttp\Promise; 3 4 … … 14 15 * Adds a task to the queue that will be executed the next time run is 15 16 * called. 16 *17 * @param callable $task18 17 */ 19 18 public function add(callable $task); -
quick-login/trunk/vendor/guzzlehttp/promises/src/functions.php
r1860398 r2458198 1 1 <?php 2 2 3 namespace GuzzleHttp\Promise; 3 4 … … 18 19 * 19 20 * @return TaskQueueInterface 21 * 22 * @deprecated queue will be removed in guzzlehttp/promises:2.0. Use Utils::queue instead. 20 23 */ 21 24 function queue(TaskQueueInterface $assign = null) 22 25 { 23 static $queue; 24 25 if ($assign) { 26 $queue = $assign; 27 } elseif (!$queue) { 28 $queue = new TaskQueue(); 29 } 30 31 return $queue; 26 return Utils::queue($assign); 32 27 } 33 28 … … 39 34 * 40 35 * @return PromiseInterface 36 * 37 * @deprecated task will be removed in guzzlehttp/promises:2.0. Use Utils::task instead. 41 38 */ 42 39 function task(callable $task) 43 40 { 44 $queue = queue(); 45 $promise = new Promise([$queue, 'run']); 46 $queue->add(function () use ($task, $promise) { 47 try { 48 $promise->resolve($task()); 49 } catch (\Throwable $e) { 50 $promise->reject($e); 51 } catch (\Exception $e) { 52 $promise->reject($e); 53 } 54 }); 55 56 return $promise; 41 return Utils::task($task); 57 42 } 58 43 … … 63 48 * 64 49 * @return PromiseInterface 50 * 51 * @deprecated promise_for will be removed in guzzlehttp/promises:2.0. Use Create::promiseFor instead. 65 52 */ 66 53 function promise_for($value) 67 54 { 68 if ($value instanceof PromiseInterface) { 69 return $value; 70 } 71 72 // Return a Guzzle promise that shadows the given promise. 73 if (method_exists($value, 'then')) { 74 $wfn = method_exists($value, 'wait') ? [$value, 'wait'] : null; 75 $cfn = method_exists($value, 'cancel') ? [$value, 'cancel'] : null; 76 $promise = new Promise($wfn, $cfn); 77 $value->then([$promise, 'resolve'], [$promise, 'reject']); 78 return $promise; 79 } 80 81 return new FulfilledPromise($value); 55 return Create::promiseFor($value); 82 56 } 83 57 … … 89 63 * 90 64 * @return PromiseInterface 65 * 66 * @deprecated rejection_for will be removed in guzzlehttp/promises:2.0. Use Create::rejectionFor instead. 91 67 */ 92 68 function rejection_for($reason) 93 69 { 94 if ($reason instanceof PromiseInterface) { 95 return $reason; 96 } 97 98 return new RejectedPromise($reason); 70 return Create::rejectionFor($reason); 99 71 } 100 72 … … 105 77 * 106 78 * @return \Exception|\Throwable 79 * 80 * @deprecated exception_for will be removed in guzzlehttp/promises:2.0. Use Create::exceptionFor instead. 107 81 */ 108 82 function exception_for($reason) 109 83 { 110 return $reason instanceof \Exception || $reason instanceof \Throwable 111 ? $reason 112 : new RejectionException($reason); 84 return Create::exceptionFor($reason); 113 85 } 114 86 … … 119 91 * 120 92 * @return \Iterator 93 * 94 * @deprecated iter_for will be removed in guzzlehttp/promises:2.0. Use Create::iterFor instead. 121 95 */ 122 96 function iter_for($value) 123 97 { 124 if ($value instanceof \Iterator) { 125 return $value; 126 } elseif (is_array($value)) { 127 return new \ArrayIterator($value); 128 } else { 129 return new \ArrayIterator([$value]); 130 } 98 return Create::iterFor($value); 131 99 } 132 100 … … 144 112 * 145 113 * @return array 114 * 115 * @deprecated inspect will be removed in guzzlehttp/promises:2.0. Use Utils::inspect instead. 146 116 */ 147 117 function inspect(PromiseInterface $promise) 148 118 { 149 try { 150 return [ 151 'state' => PromiseInterface::FULFILLED, 152 'value' => $promise->wait() 153 ]; 154 } catch (RejectionException $e) { 155 return ['state' => PromiseInterface::REJECTED, 'reason' => $e->getReason()]; 156 } catch (\Throwable $e) { 157 return ['state' => PromiseInterface::REJECTED, 'reason' => $e]; 158 } catch (\Exception $e) { 159 return ['state' => PromiseInterface::REJECTED, 'reason' => $e]; 160 } 119 return Utils::inspect($promise); 161 120 } 162 121 … … 167 126 * Returns an array of inspection state arrays. 168 127 * 128 * @see inspect for the inspection state array format. 129 * 169 130 * @param PromiseInterface[] $promises Traversable of promises to wait upon. 170 131 * 171 132 * @return array 172 * @see GuzzleHttp\Promise\inspect for the inspection state array format. 133 * 134 * @deprecated inspect will be removed in guzzlehttp/promises:2.0. Use Utils::inspectAll instead. 173 135 */ 174 136 function inspect_all($promises) 175 137 { 176 $results = []; 177 foreach ($promises as $key => $promise) { 178 $results[$key] = inspect($promise); 179 } 180 181 return $results; 138 return Utils::inspectAll($promises); 182 139 } 183 140 … … 189 146 * are rejected. 190 147 * 191 * @param mixed$promises Iterable of PromiseInterface objects to wait on.148 * @param iterable<PromiseInterface> $promises Iterable of PromiseInterface objects to wait on. 192 149 * 193 150 * @return array 151 * 194 152 * @throws \Exception on error 195 153 * @throws \Throwable on error in PHP >=7 154 * 155 * @deprecated unwrap will be removed in guzzlehttp/promises:2.0. Use Utils::unwrap instead. 196 156 */ 197 157 function unwrap($promises) 198 158 { 199 $results = []; 200 foreach ($promises as $key => $promise) { 201 $results[$key] = $promise->wait(); 202 } 203 204 return $results; 159 return Utils::unwrap($promises); 205 160 } 206 161 … … 213 168 * rejects, the returned promise is rejected with the rejection reason. 214 169 * 215 * @param mixed $promises Promises or values. 216 * 217 * @return PromiseInterface 218 */ 219 function all($promises) 220 { 221 $results = []; 222 return each( 223 $promises, 224 function ($value, $idx) use (&$results) { 225 $results[$idx] = $value; 226 }, 227 function ($reason, $idx, Promise $aggregate) { 228 $aggregate->reject($reason); 229 } 230 )->then(function () use (&$results) { 231 ksort($results); 232 return $results; 233 }); 170 * @param mixed $promises Promises or values. 171 * @param bool $recursive If true, resolves new promises that might have been added to the stack during its own resolution. 172 * 173 * @return PromiseInterface 174 * 175 * @deprecated all will be removed in guzzlehttp/promises:2.0. Use Utils::all instead. 176 */ 177 function all($promises, $recursive = false) 178 { 179 return Utils::all($promises, $recursive); 234 180 } 235 181 … … 242 188 * in order of resolution. 243 189 * 244 * This prom mise is rejected with a {@see GuzzleHttp\Promise\AggregateException}245 * if the number offulfilled promises is less than the desired $count.190 * This promise is rejected with a {@see AggregateException} if the number of 191 * fulfilled promises is less than the desired $count. 246 192 * 247 193 * @param int $count Total number of promises. … … 249 195 * 250 196 * @return PromiseInterface 197 * 198 * @deprecated some will be removed in guzzlehttp/promises:2.0. Use Utils::some instead. 251 199 */ 252 200 function some($count, $promises) 253 201 { 254 $results = []; 255 $rejections = []; 256 257 return each( 258 $promises, 259 function ($value, $idx, PromiseInterface $p) use (&$results, $count) { 260 if ($p->getState() !== PromiseInterface::PENDING) { 261 return; 262 } 263 $results[$idx] = $value; 264 if (count($results) >= $count) { 265 $p->resolve(null); 266 } 267 }, 268 function ($reason) use (&$rejections) { 269 $rejections[] = $reason; 270 } 271 )->then( 272 function () use (&$results, &$rejections, $count) { 273 if (count($results) !== $count) { 274 throw new AggregateException( 275 'Not enough promises to fulfill count', 276 $rejections 277 ); 278 } 279 ksort($results); 280 return array_values($results); 281 } 282 ); 202 return Utils::some($count, $promises); 283 203 } 284 204 … … 290 210 * 291 211 * @return PromiseInterface 212 * 213 * @deprecated any will be removed in guzzlehttp/promises:2.0. Use Utils::any instead. 292 214 */ 293 215 function any($promises) 294 216 { 295 return some(1, $promises)->then(function ($values) { return $values[0]; });217 return Utils::any($promises); 296 218 } 297 219 … … 302 224 * The returned promise is fulfilled with an array of inspection state arrays. 303 225 * 226 * @see inspect for the inspection state array format. 227 * 304 228 * @param mixed $promises Promises or values. 305 229 * 306 230 * @return PromiseInterface 307 * @see GuzzleHttp\Promise\inspect for the inspection state array format. 231 * 232 * @deprecated settle will be removed in guzzlehttp/promises:2.0. Use Utils::settle instead. 308 233 */ 309 234 function settle($promises) 310 235 { 311 $results = []; 312 313 return each( 314 $promises, 315 function ($value, $idx) use (&$results) { 316 $results[$idx] = ['state' => PromiseInterface::FULFILLED, 'value' => $value]; 317 }, 318 function ($reason, $idx) use (&$results) { 319 $results[$idx] = ['state' => PromiseInterface::REJECTED, 'reason' => $reason]; 320 } 321 )->then(function () use (&$results) { 322 ksort($results); 323 return $results; 324 }); 236 return Utils::settle($promises); 325 237 } 326 238 … … 330 242 * aggregate promise has been fulfilled or rejected. 331 243 * 332 * $onFulfilled is a function that accepts the fulfilled value, iterator 333 * index,and the aggregate promise. The callback can invoke any necessary side334 * effects and choose to resolve or reject the aggregate promiseif needed.335 * 336 * $onRejected is a function that accepts the rejection reason, iterator 337 * index,and the aggregate promise. The callback can invoke any necessary side338 * effects and choose to resolve or reject the aggregate promiseif needed.244 * $onFulfilled is a function that accepts the fulfilled value, iterator index, 245 * and the aggregate promise. The callback can invoke any necessary side 246 * effects and choose to resolve or reject the aggregate if needed. 247 * 248 * $onRejected is a function that accepts the rejection reason, iterator index, 249 * and the aggregate promise. The callback can invoke any necessary side 250 * effects and choose to resolve or reject the aggregate if needed. 339 251 * 340 252 * @param mixed $iterable Iterator or array to iterate over. … … 343 255 * 344 256 * @return PromiseInterface 257 * 258 * @deprecated each will be removed in guzzlehttp/promises:2.0. Use Each::of instead. 345 259 */ 346 260 function each( … … 349 263 callable $onRejected = null 350 264 ) { 351 return (new EachPromise($iterable, [ 352 'fulfilled' => $onFulfilled, 353 'rejected' => $onRejected 354 ]))->promise(); 265 return Each::of($iterable, $onFulfilled, $onRejected); 355 266 } 356 267 … … 369 280 * 370 281 * @return PromiseInterface 282 * 283 * @deprecated each_limit will be removed in guzzlehttp/promises:2.0. Use Each::ofLimit instead. 371 284 */ 372 285 function each_limit( … … 376 289 callable $onRejected = null 377 290 ) { 378 return (new EachPromise($iterable, [ 379 'fulfilled' => $onFulfilled, 380 'rejected' => $onRejected, 381 'concurrency' => $concurrency 382 ]))->promise(); 291 return Each::ofLimit($iterable, $concurrency, $onFulfilled, $onRejected); 383 292 } 384 293 … … 393 302 * 394 303 * @return PromiseInterface 304 * 305 * @deprecated each_limit_all will be removed in guzzlehttp/promises:2.0. Use Each::ofLimitAll instead. 395 306 */ 396 307 function each_limit_all( … … 399 310 callable $onFulfilled = null 400 311 ) { 401 return each_limit( 402 $iterable, 403 $concurrency, 404 $onFulfilled, 405 function ($reason, $idx, PromiseInterface $aggregate) { 406 $aggregate->reject($reason); 407 } 408 ); 312 return Each::ofLimitAll($iterable, $concurrency, $onFulfilled); 409 313 } 410 314 … … 412 316 * Returns true if a promise is fulfilled. 413 317 * 414 * @param PromiseInterface $promise415 *416 318 * @return bool 319 * 320 * @deprecated is_fulfilled will be removed in guzzlehttp/promises:2.0. Use Is::fulfilled instead. 417 321 */ 418 322 function is_fulfilled(PromiseInterface $promise) 419 323 { 420 return $promise->getState() === PromiseInterface::FULFILLED;324 return Is::fulfilled($promise); 421 325 } 422 326 … … 424 328 * Returns true if a promise is rejected. 425 329 * 426 * @param PromiseInterface $promise427 *428 330 * @return bool 331 * 332 * @deprecated is_rejected will be removed in guzzlehttp/promises:2.0. Use Is::rejected instead. 429 333 */ 430 334 function is_rejected(PromiseInterface $promise) 431 335 { 432 return $promise->getState() === PromiseInterface::REJECTED;336 return Is::rejected($promise); 433 337 } 434 338 … … 436 340 * Returns true if a promise is fulfilled or rejected. 437 341 * 438 * @param PromiseInterface $promise439 *440 342 * @return bool 343 * 344 * @deprecated is_settled will be removed in guzzlehttp/promises:2.0. Use Is::settled instead. 441 345 */ 442 346 function is_settled(PromiseInterface $promise) 443 347 { 444 return $promise->getState() !== PromiseInterface::PENDING; 445 } 446 447 /** 348 return Is::settled($promise); 349 } 350 351 /** 352 * Create a new coroutine. 353 * 448 354 * @see Coroutine 449 355 * 450 * @ param callable $generatorFn451 * 452 * @ return PromiseInterface356 * @return PromiseInterface 357 * 358 * @deprecated coroutine will be removed in guzzlehttp/promises:2.0. Use Coroutine::of instead. 453 359 */ 454 360 function coroutine(callable $generatorFn) 455 361 { 456 return new Coroutine($generatorFn);457 } 362 return Coroutine::of($generatorFn); 363 } -
quick-login/trunk/vendor/guzzlehttp/psr7/CHANGELOG.md
r2223410 r2458198 10 10 ## [Unreleased] 11 11 12 13 ## [1.6.0] 12 ## [1.7.0] - 2020-09-30 13 14 ### Added 15 16 - Replaced functions by static methods 17 18 ### Fixed 19 20 - Converting a non-seekable stream to a string 21 - Handle multiple Set-Cookie correctly 22 - Ignore array keys in header values when merging 23 - Allow multibyte characters to be parsed in `Message:bodySummary()` 24 25 ### Changed 26 27 - Restored partial HHVM 3 support 28 29 30 ## [1.6.1] - 2019-07-02 31 32 ### Fixed 33 34 - Accept null and bool header values again 35 36 37 ## [1.6.0] - 2019-06-30 14 38 15 39 ### Added -
quick-login/trunk/vendor/guzzlehttp/psr7/README.md
r2010460 r2458198 24 24 use GuzzleHttp\Psr7; 25 25 26 $a = Psr7\ stream_for('abc, ');27 $b = Psr7\ stream_for('123.');26 $a = Psr7\Utils::streamFor('abc, '); 27 $b = Psr7\Utils::streamFor('123.'); 28 28 $composed = new Psr7\AppendStream([$a, $b]); 29 29 30 $composed->addStream(Psr7\ stream_for(' Above all listen to me'));30 $composed->addStream(Psr7\Utils::streamFor(' Above all listen to me')); 31 31 32 32 echo $composed; // abc, 123. Above all listen to me. … … 66 66 use GuzzleHttp\Psr7; 67 67 68 $original = Psr7\ stream_for(fopen('http://www.google.com', 'r'));68 $original = Psr7\Utils::streamFor(fopen('http://www.google.com', 'r')); 69 69 $stream = new Psr7\CachingStream($original); 70 70 … … 90 90 91 91 // Create an empty stream 92 $stream = Psr7\ stream_for();92 $stream = Psr7\Utils::streamFor(); 93 93 94 94 // Start dropping data when the stream has more than 10 bytes … … 113 113 use GuzzleHttp\Psr7; 114 114 115 $stream = Psr7\ stream_for('hi');115 $stream = Psr7\Utils::streamFor('hi'); 116 116 $fnStream = Psr7\FnStream::decorate($stream, [ 117 117 'rewind' => function () use ($stream) { … … 168 168 use GuzzleHttp\Psr7; 169 169 170 $original = Psr7\ stream_for(fopen('/tmp/test.txt', 'r+'));170 $original = Psr7\Utils::streamFor(fopen('/tmp/test.txt', 'r+')); 171 171 echo $original->getSize(); 172 172 // >>> 1048576 … … 198 198 use GuzzleHttp\Psr7; 199 199 200 $original = Psr7\ stream_for('foo');200 $original = Psr7\Utils::streamFor('foo'); 201 201 $noSeek = new Psr7\NoSeekStream($original); 202 202 … … 272 272 use GuzzleHttp\Psr7; 273 273 274 $original = Psr7\ stream_for('foo');274 $original = Psr7\Utils::streamFor('foo'); 275 275 276 276 $eofStream = new EofCallbackStream($original, function () { … … 298 298 use GuzzleHttp\Psr7\StreamWrapper; 299 299 300 $stream = GuzzleHttp\Psr7\ stream_for('hello!');300 $stream = GuzzleHttp\Psr7\Utils::streamFor('hello!'); 301 301 $resource = StreamWrapper::getResource($stream); 302 302 echo fread($resource, 6); // outputs hello! … … 304 304 305 305 306 # FunctionAPI307 308 There are various functions available under the `GuzzleHttp\Psr7` namespace.309 310 311 ## ` function str`312 313 ` function str(MessageInterface $message)`306 # Static API 307 308 There are various static methods available under the `GuzzleHttp\Psr7` namespace. 309 310 311 ## `GuzzleHttp\Psr7\Message::toString` 312 313 `public static function toString(MessageInterface $message): string` 314 314 315 315 Returns the string representation of an HTTP message. … … 317 317 ```php 318 318 $request = new GuzzleHttp\Psr7\Request('GET', 'http://example.com'); 319 echo GuzzleHttp\Psr7\str($request); 320 ``` 321 322 323 ## `function uri_for` 324 325 `function uri_for($uri)` 326 327 This function accepts a string or `Psr\Http\Message\UriInterface` and returns a 328 UriInterface for the given value. If the value is already a `UriInterface`, it 329 is returned as-is. 330 331 ```php 332 $uri = GuzzleHttp\Psr7\uri_for('http://example.com'); 333 assert($uri === GuzzleHttp\Psr7\uri_for($uri)); 334 ``` 335 336 337 ## `function stream_for` 338 339 `function stream_for($resource = '', array $options = [])` 319 echo GuzzleHttp\Psr7\Message::toString($request); 320 ``` 321 322 323 ## `GuzzleHttp\Psr7\Message::bodySummary` 324 325 `public static function bodySummary(MessageInterface $message, int $truncateAt = 120): string|null` 326 327 Get a short summary of the message body. 328 329 Will return `null` if the response is not printable. 330 331 332 ## `GuzzleHttp\Psr7\Message::rewindBody` 333 334 `public static function rewindBody(MessageInterface $message): void` 335 336 Attempts to rewind a message body and throws an exception on failure. 337 338 The body of the message will only be rewound if a call to `tell()` 339 returns a value other than `0`. 340 341 342 ## `GuzzleHttp\Psr7\Message::parseMessage` 343 344 `public static function parseMessage(string $message): array` 345 346 Parses an HTTP message into an associative array. 347 348 The array contains the "start-line" key containing the start line of 349 the message, "headers" key containing an associative array of header 350 array values, and a "body" key containing the body of the message. 351 352 353 ## `GuzzleHttp\Psr7\Message::parseRequestUri` 354 355 `public static function parseRequestUri(string $path, array $headers): string` 356 357 Constructs a URI for an HTTP request message. 358 359 360 ## `GuzzleHttp\Psr7\Message::parseRequest` 361 362 `public static function parseRequest(string $message): Request` 363 364 Parses a request message string into a request object. 365 366 367 ## `GuzzleHttp\Psr7\Message::parseResponse` 368 369 `public static function parseResponse(string $message): Response` 370 371 Parses a response message string into a response object. 372 373 374 ## `GuzzleHttp\Psr7\Header::parse` 375 376 `public static function parse(string|array $header): array` 377 378 Parse an array of header values containing ";" separated data into an 379 array of associative arrays representing the header key value pair data 380 of the header. When a parameter does not contain a value, but just 381 contains a key, this function will inject a key with a '' string value. 382 383 384 ## `GuzzleHttp\Psr7\Header::normalize` 385 386 `public static function normalize(string|array $header): array` 387 388 Converts an array of header values that may contain comma separated 389 headers into an array of headers with no comma separated values. 390 391 392 ## `GuzzleHttp\Psr7\Query::parse` 393 394 `public static function parse(string $str, int|bool $urlEncoding = true): array` 395 396 Parse a query string into an associative array. 397 398 If multiple values are found for the same key, the value of that key 399 value pair will become an array. This function does not parse nested 400 PHP style arrays into an associative array (e.g., `foo[a]=1&foo[b]=2` 401 will be parsed into `['foo[a]' => '1', 'foo[b]' => '2'])`. 402 403 404 ## `GuzzleHttp\Psr7\Query::build` 405 406 `public static function build(array $params, int|false $encoding = PHP_QUERY_RFC3986): string` 407 408 Build a query string from an array of key value pairs. 409 410 This function can use the return value of `parse()` to build a query 411 string. This function does not modify the provided keys when an array is 412 encountered (like `http_build_query()` would). 413 414 415 ## `GuzzleHttp\Psr7\Utils::caselessRemove` 416 417 `public static function caselessRemove(iterable<string> $keys, $keys, array $data): array` 418 419 Remove the items given by the keys, case insensitively from the data. 420 421 422 ## `GuzzleHttp\Psr7\Utils::copyToStream` 423 424 `public static function copyToStream(StreamInterface $source, StreamInterface $dest, int $maxLen = -1): void` 425 426 Copy the contents of a stream into another stream until the given number 427 of bytes have been read. 428 429 430 ## `GuzzleHttp\Psr7\Utils::copyToString` 431 432 `public static function copyToString(StreamInterface $stream, int $maxLen = -1): string` 433 434 Copy the contents of a stream into a string until the given number of 435 bytes have been read. 436 437 438 ## `GuzzleHttp\Psr7\Utils::hash` 439 440 `public static function hash(StreamInterface $stream, string $algo, bool $rawOutput = false): string` 441 442 Calculate a hash of a stream. 443 444 This method reads the entire stream to calculate a rolling hash, based on 445 PHP's `hash_init` functions. 446 447 448 ## `GuzzleHttp\Psr7\Utils::modifyRequest` 449 450 `public static function modifyRequest(RequestInterface $request, array $changes): RequestInterface` 451 452 Clone and modify a request with the given changes. 453 454 This method is useful for reducing the number of clones needed to mutate 455 a message. 456 457 - method: (string) Changes the HTTP method. 458 - set_headers: (array) Sets the given headers. 459 - remove_headers: (array) Remove the given headers. 460 - body: (mixed) Sets the given body. 461 - uri: (UriInterface) Set the URI. 462 - query: (string) Set the query string value of the URI. 463 - version: (string) Set the protocol version. 464 465 466 ## `GuzzleHttp\Psr7\Utils::readLine` 467 468 `public static function readLine(StreamInterface $stream, int $maxLength = null): string` 469 470 Read a line from the stream up to the maximum allowed buffer length. 471 472 473 ## `GuzzleHttp\Psr7\Utils::streamFor` 474 475 `public static function streamFor(resource|string|null|int|float|bool|StreamInterface|callable|\Iterator $resource = '', array $options = []): StreamInterface` 340 476 341 477 Create a new stream based on the input type. … … 343 479 Options is an associative array that can contain the following keys: 344 480 345 *- metadata: Array of custom metadata.346 *- size: Size of the stream.481 - metadata: Array of custom metadata. 482 - size: Size of the stream. 347 483 348 484 This method accepts the following `$resource` types: … … 370 506 371 507 ```php 372 $stream = GuzzleHttp\Psr7\ stream_for('foo');373 $stream = GuzzleHttp\Psr7\ stream_for(fopen('/path/to/file', 'r'));508 $stream = GuzzleHttp\Psr7\Utils::streamFor('foo'); 509 $stream = GuzzleHttp\Psr7\Utils::streamFor(fopen('/path/to/file', 'r')); 374 510 375 511 $generator = function ($bytes) { … … 379 515 } 380 516 381 $stream = GuzzleHttp\Psr7\stream_for($generator(100)); 382 ``` 383 384 385 ## `function parse_header` 386 387 `function parse_header($header)` 388 389 Parse an array of header values containing ";" separated data into an array of 390 associative arrays representing the header key value pair data of the header. 391 When a parameter does not contain a value, but just contains a key, this 392 function will inject a key with a '' string value. 393 394 395 ## `function normalize_header` 396 397 `function normalize_header($header)` 398 399 Converts an array of header values that may contain comma separated headers 400 into an array of headers with no comma separated values. 401 402 403 ## `function modify_request` 404 405 `function modify_request(RequestInterface $request, array $changes)` 406 407 Clone and modify a request with the given changes. This method is useful for 408 reducing the number of clones needed to mutate a message. 409 410 The changes can be one of: 411 412 - method: (string) Changes the HTTP method. 413 - set_headers: (array) Sets the given headers. 414 - remove_headers: (array) Remove the given headers. 415 - body: (mixed) Sets the given body. 416 - uri: (UriInterface) Set the URI. 417 - query: (string) Set the query string value of the URI. 418 - version: (string) Set the protocol version. 419 420 421 ## `function rewind_body` 422 423 `function rewind_body(MessageInterface $message)` 424 425 Attempts to rewind a message body and throws an exception on failure. The body 426 of the message will only be rewound if a call to `tell()` returns a value other 427 than `0`. 428 429 430 ## `function try_fopen` 431 432 `function try_fopen($filename, $mode)` 517 $stream = GuzzleHttp\Psr7\Utils::streamFor($generator(100)); 518 ``` 519 520 521 ## `GuzzleHttp\Psr7\Utils::tryFopen` 522 523 `public static function tryFopen(string $filename, string $mode): resource` 433 524 434 525 Safely opens a PHP stream resource using a filename. 435 526 436 When fopen fails, PHP normally raises a warning. This function adds an error 437 handler that checks for errors and throws an exception instead. 438 439 440 ## `function copy_to_string` 441 442 `function copy_to_string(StreamInterface $stream, $maxLen = -1)` 443 444 Copy the contents of a stream into a string until the given number of bytes 445 have been read. 446 447 448 ## `function copy_to_stream` 449 450 `function copy_to_stream(StreamInterface $source, StreamInterface $dest, $maxLen = -1)` 451 452 Copy the contents of a stream into another stream until the given number of 453 bytes have been read. 454 455 456 ## `function hash` 457 458 `function hash(StreamInterface $stream, $algo, $rawOutput = false)` 459 460 Calculate a hash of a Stream. This method reads the entire stream to calculate 461 a rolling hash (based on PHP's hash_init functions). 462 463 464 ## `function readline` 465 466 `function readline(StreamInterface $stream, $maxLength = null)` 467 468 Read a line from the stream up to the maximum allowed buffer length. 469 470 471 ## `function parse_request` 472 473 `function parse_request($message)` 474 475 Parses a request message string into a request object. 476 477 478 ## `function parse_response` 479 480 `function parse_response($message)` 481 482 Parses a response message string into a response object. 483 484 485 ## `function parse_query` 486 487 `function parse_query($str, $urlEncoding = true)` 488 489 Parse a query string into an associative array. 490 491 If multiple values are found for the same key, the value of that key value pair 492 will become an array. This function does not parse nested PHP style arrays into 493 an associative array (e.g., `foo[a]=1&foo[b]=2` will be parsed into 494 `['foo[a]' => '1', 'foo[b]' => '2']`). 495 496 497 ## `function build_query` 498 499 `function build_query(array $params, $encoding = PHP_QUERY_RFC3986)` 500 501 Build a query string from an array of key value pairs. 502 503 This function can use the return value of parse_query() to build a query string. 504 This function does not modify the provided keys when an array is encountered 505 (like http_build_query would). 506 507 508 ## `function mimetype_from_filename` 509 510 `function mimetype_from_filename($filename)` 527 When fopen fails, PHP normally raises a warning. This function adds an 528 error handler that checks for errors and throws an exception instead. 529 530 531 ## `GuzzleHttp\Psr7\Utils::uriFor` 532 533 `public static function uriFor(string|UriInterface $uri): UriInterface` 534 535 Returns a UriInterface for the given value. 536 537 This function accepts a string or UriInterface and returns a 538 UriInterface for the given value. If the value is already a 539 UriInterface, it is returned as-is. 540 541 542 ## `GuzzleHttp\Psr7\MimeType::fromFilename` 543 544 `public static function fromFilename(string $filename): string|null` 511 545 512 546 Determines the mimetype of a file by looking at its extension. 513 547 514 548 515 ## ` function mimetype_from_extension`516 517 ` function mimetype_from_extension($extension)`549 ## `GuzzleHttp\Psr7\MimeType::fromExtension` 550 551 `public static function fromExtension(string $extension): string|null` 518 552 519 553 Maps a file extensions to a mimetype. 554 555 556 ## Upgrading from Function API 557 558 The static API was first introduced in 1.7.0, in order to mitigate problems with functions conflicting between global and local copies of the package. The function API will be removed in 2.0.0. A migration table has been provided here for your convenience: 559 560 | Original Function | Replacement Method | 561 |----------------|----------------| 562 | `str` | `Message::toString` | 563 | `uri_for` | `Utils::uriFor` | 564 | `stream_for` | `Utils::streamFor` | 565 | `parse_header` | `Header::parse` | 566 | `normalize_header` | `Header::normalize` | 567 | `modify_request` | `Utils::modifyRequest` | 568 | `rewind_body` | `Message::rewindBody` | 569 | `try_fopen` | `Utils::tryFopen` | 570 | `copy_to_string` | `Utils::copyToString` | 571 | `copy_to_stream` | `Utils::copyToStream` | 572 | `hash` | `Utils::hash` | 573 | `readline` | `Utils::readLine` | 574 | `parse_request` | `Message::parseRequest` | 575 | `parse_response` | `Message::parseResponse` | 576 | `parse_query` | `Query::parse` | 577 | `build_query` | `Query::build` | 578 | `mimetype_from_filename` | `MimeType::fromFilename` | 579 | `mimetype_from_extension` | `MimeType::fromExtension` | 580 | `_parse_message` | `Message::parseMessage` | 581 | `_parse_request_uri` | `Message::parseRequestUri` | 582 | `get_message_body_summary` | `Message::bodySummary` | 583 | `_caseless_remove` | `Utils::caselessRemove` | 520 584 521 585 -
quick-login/trunk/vendor/guzzlehttp/psr7/composer.json
r2223410 r2458198 22 22 }, 23 23 "require-dev": { 24 "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5. 8",24 "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.8 || ^9.3.10", 25 25 "ext-zlib": "*" 26 26 }, … … 29 29 }, 30 30 "suggest": { 31 " zendframework/zend-httphandlerrunner": "Emit PSR-7 responses"31 "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" 32 32 }, 33 33 "autoload": { … … 44 44 "extra": { 45 45 "branch-alias": { 46 "dev-master": "1. 6-dev"46 "dev-master": "1.7-dev" 47 47 } 48 48 } -
quick-login/trunk/vendor/guzzlehttp/psr7/src/AppendStream.php
r2010460 r2458198 1 1 <?php 2 2 3 namespace GuzzleHttp\Psr7; 3 4 … … 62 63 public function getContents() 63 64 { 64 return copy_to_string($this);65 return Utils::copyToString($this); 65 66 } 66 67 … … 99 100 100 101 $this->streams = []; 102 103 return null; 101 104 } 102 105 -
quick-login/trunk/vendor/guzzlehttp/psr7/src/BufferStream.php
r1860398 r2458198 1 1 <?php 2 2 3 namespace GuzzleHttp\Psr7; 3 4 … … 50 51 { 51 52 $this->close(); 53 54 return null; 52 55 } 53 56 -
quick-login/trunk/vendor/guzzlehttp/psr7/src/CachingStream.php
r1860398 r2458198 1 1 <?php 2 2 3 namespace GuzzleHttp\Psr7; 3 4 … … 132 133 { 133 134 $target = new FnStream(['write' => 'strlen']); 134 copy_to_stream($this, $target);135 Utils::copyToStream($this, $target); 135 136 136 137 return $this->tell(); -
quick-login/trunk/vendor/guzzlehttp/psr7/src/DroppingStream.php
r1860398 r2458198 1 1 <?php 2 2 3 namespace GuzzleHttp\Psr7; 3 4 -
quick-login/trunk/vendor/guzzlehttp/psr7/src/FnStream.php
r2010460 r2458198 1 1 <?php 2 2 3 namespace GuzzleHttp\Psr7; 3 4 … … 35 36 /** 36 37 * Lazily determine which methods are not implemented. 38 * 37 39 * @throws \BadMethodCallException 38 40 */ -
quick-login/trunk/vendor/guzzlehttp/psr7/src/InflateStream.php
r2010460 r2458198 1 1 <?php 2 2 3 namespace GuzzleHttp\Psr7; 3 4 -
quick-login/trunk/vendor/guzzlehttp/psr7/src/LazyOpenStream.php
r1860398 r2458198 1 1 <?php 2 2 3 namespace GuzzleHttp\Psr7; 3 4 … … 35 36 protected function createStream() 36 37 { 37 return stream_for(try_fopen($this->filename, $this->mode));38 return Utils::streamFor(Utils::tryFopen($this->filename, $this->mode)); 38 39 } 39 40 } -
quick-login/trunk/vendor/guzzlehttp/psr7/src/LimitStream.php
r2223410 r2458198 1 1 <?php 2 2 3 namespace GuzzleHttp\Psr7; 3 4 -
quick-login/trunk/vendor/guzzlehttp/psr7/src/MessageTrait.php
r2223410 r2458198 1 1 <?php 2 2 3 namespace GuzzleHttp\Psr7; 3 4 … … 18 19 private $protocol = '1.1'; 19 20 20 /** @var StreamInterface */21 /** @var StreamInterface|null */ 21 22 private $stream; 22 23 … … 118 119 { 119 120 if (!$this->stream) { 120 $this->stream = stream_for('');121 $this->stream = Utils::streamFor(''); 121 122 } 122 123 … … 195 196 196 197 return trim((string) $value, " \t"); 197 }, $values);198 }, array_values($values)); 198 199 } 199 200 -
quick-login/trunk/vendor/guzzlehttp/psr7/src/MultipartStream.php
r1860398 r2458198 1 1 <?php 2 2 3 namespace GuzzleHttp\Psr7; 3 4 … … 72 73 73 74 // Add the trailing boundary with CRLF 74 $stream->addStream( stream_for("--{$this->boundary}--\r\n"));75 $stream->addStream(Utils::streamFor("--{$this->boundary}--\r\n")); 75 76 76 77 return $stream; … … 85 86 } 86 87 87 $element['contents'] = stream_for($element['contents']);88 $element['contents'] = Utils::streamFor($element['contents']); 88 89 89 90 if (empty($element['filename'])) { … … 101 102 ); 102 103 103 $stream->addStream( stream_for($this->getHeaders($headers)));104 $stream->addStream(Utils::streamFor($this->getHeaders($headers))); 104 105 $stream->addStream($body); 105 $stream->addStream( stream_for("\r\n"));106 $stream->addStream(Utils::streamFor("\r\n")); 106 107 } 107 108 … … 132 133 $type = $this->getHeader($headers, 'content-type'); 133 134 if (!$type && ($filename === '0' || $filename)) { 134 if ($type = mimetype_from_filename($filename)) {135 if ($type = MimeType::fromFilename($filename)) { 135 136 $headers['Content-Type'] = $type; 136 137 } -
quick-login/trunk/vendor/guzzlehttp/psr7/src/NoSeekStream.php
r1860398 r2458198 1 1 <?php 2 2 3 namespace GuzzleHttp\Psr7; 3 4 -
quick-login/trunk/vendor/guzzlehttp/psr7/src/PumpStream.php
r1860398 r2458198 1 1 <?php 2 2 3 namespace GuzzleHttp\Psr7; 3 4 … … 52 53 { 53 54 try { 54 return copy_to_string($this);55 return Utils::copyToString($this); 55 56 } catch (\Exception $e) { 56 57 return ''; … … 67 68 $this->tellPos = false; 68 69 $this->source = null; 70 71 return null; 69 72 } 70 73 -
quick-login/trunk/vendor/guzzlehttp/psr7/src/Request.php
r2223410 r2458198 1 1 <?php 2 2 3 namespace GuzzleHttp\Psr7; 3 4 … … 52 53 53 54 if ($body !== '' && $body !== null) { 54 $this->stream = stream_for($body);55 $this->stream = Utils::streamFor($body); 55 56 } 56 57 } -
quick-login/trunk/vendor/guzzlehttp/psr7/src/Response.php
r2223410 r2458198 1 1 <?php 2 2 3 namespace GuzzleHttp\Psr7; 3 4 … … 101 102 102 103 if ($body !== '' && $body !== null) { 103 $this->stream = stream_for($body);104 $this->stream = Utils::streamFor($body); 104 105 } 105 106 … … 135 136 $reasonPhrase = self::$phrases[$new->statusCode]; 136 137 } 137 $new->reasonPhrase = $reasonPhrase;138 $new->reasonPhrase = (string) $reasonPhrase; 138 139 return $new; 139 140 } -
quick-login/trunk/vendor/guzzlehttp/psr7/src/ServerRequest.php
r2223410 r2458198 80 80 * 81 81 * @param array $files A array which respect $_FILES structure 82 * 83 * @return array 84 * 82 85 * @throws InvalidArgumentException for unrecognized values 83 * @return array84 86 */ 85 87 public static function normalizeFiles(array $files) -
quick-login/trunk/vendor/guzzlehttp/psr7/src/Stream.php
r2223410 r2458198 1 1 <?php 2 2 3 namespace GuzzleHttp\Psr7; 3 4 … … 77 78 { 78 79 try { 79 $this->seek(0); 80 return (string) stream_get_contents($this->stream); 80 if ($this->isSeekable()) { 81 $this->seek(0); 82 } 83 return $this->getContents(); 81 84 } catch (\Exception $e) { 82 85 return ''; … … 194 197 { 195 198 $whence = (int) $whence; 196 199 197 200 if (!isset($this->stream)) { 198 201 throw new \RuntimeException('Stream is detached'); -
quick-login/trunk/vendor/guzzlehttp/psr7/src/StreamDecoratorTrait.php
r1860398 r2458198 1 1 <?php 2 2 3 namespace GuzzleHttp\Psr7; 3 4 … … 53 54 public function getContents() 54 55 { 55 return copy_to_string($this);56 return Utils::copyToString($this); 56 57 } 57 58 … … 141 142 * 142 143 * @return StreamInterface 144 * 143 145 * @throws \BadMethodCallException 144 146 */ -
quick-login/trunk/vendor/guzzlehttp/psr7/src/StreamWrapper.php
r2010460 r2458198 1 1 <?php 2 2 3 namespace GuzzleHttp\Psr7; 3 4 … … 24 25 * 25 26 * @return resource 27 * 26 28 * @throws \InvalidArgumentException if stream is not readable or writable 27 29 */ -
quick-login/trunk/vendor/guzzlehttp/psr7/src/UploadedFile.php
r1860398 r2458198 1 1 <?php 2 2 3 namespace GuzzleHttp\Psr7; 3 4 … … 86 87 * 87 88 * @param mixed $streamOrFile 89 * 88 90 * @throws InvalidArgumentException 89 91 */ … … 105 107 /** 106 108 * @param int $error 109 * 107 110 * @throws InvalidArgumentException 108 111 */ … … 126 129 /** 127 130 * @param int $size 131 * 128 132 * @throws InvalidArgumentException 129 133 */ … … 159 163 /** 160 164 * @param string|null $clientFilename 165 * 161 166 * @throws InvalidArgumentException 162 167 */ … … 174 179 /** 175 180 * @param string|null $clientMediaType 181 * 176 182 * @throws InvalidArgumentException 177 183 */ … … 221 227 /** 222 228 * {@inheritdoc} 229 * 223 230 * @throws RuntimeException if the upload was not successful. 224 231 */ … … 239 246 * @see http://php.net/is_uploaded_file 240 247 * @see http://php.net/move_uploaded_file 248 * 241 249 * @param string $targetPath Path to which to move the uploaded file. 250 * 242 251 * @throws RuntimeException if the upload was not successful. 243 252 * @throws InvalidArgumentException if the $path specified is invalid. … … 260 269 : move_uploaded_file($this->file, $targetPath); 261 270 } else { 262 copy_to_stream(271 Utils::copyToStream( 263 272 $this->getStream(), 264 273 new LazyOpenStream($targetPath, 'w') -
quick-login/trunk/vendor/guzzlehttp/psr7/src/Uri.php
r2223410 r2458198 1 1 <?php 2 2 3 namespace GuzzleHttp\Psr7; 3 4 -
quick-login/trunk/vendor/guzzlehttp/psr7/src/UriNormalizer.php
r1860398 r2458198 1 1 <?php 2 2 3 namespace GuzzleHttp\Psr7; 3 4 -
quick-login/trunk/vendor/guzzlehttp/psr7/src/UriResolver.php
r1860398 r2458198 1 1 <?php 2 2 3 namespace GuzzleHttp\Psr7; 3 4 -
quick-login/trunk/vendor/guzzlehttp/psr7/src/functions.php
r2223410 r2458198 1 1 <?php 2 2 3 namespace GuzzleHttp\Psr7; 3 4 4 5 use Psr\Http\Message\MessageInterface; 5 6 use Psr\Http\Message\RequestInterface; 6 use Psr\Http\Message\ResponseInterface;7 use Psr\Http\Message\ServerRequestInterface;8 7 use Psr\Http\Message\StreamInterface; 9 8 use Psr\Http\Message\UriInterface; … … 15 14 * 16 15 * @return string 16 * 17 * @deprecated str will be removed in guzzlehttp/psr7:2.0. Use Message::toString instead. 17 18 */ 18 19 function str(MessageInterface $message) 19 20 { 20 if ($message instanceof RequestInterface) { 21 $msg = trim($message->getMethod() . ' ' 22 . $message->getRequestTarget()) 23 . ' HTTP/' . $message->getProtocolVersion(); 24 if (!$message->hasHeader('host')) { 25 $msg .= "\r\nHost: " . $message->getUri()->getHost(); 26 } 27 } elseif ($message instanceof ResponseInterface) { 28 $msg = 'HTTP/' . $message->getProtocolVersion() . ' ' 29 . $message->getStatusCode() . ' ' 30 . $message->getReasonPhrase(); 31 } else { 32 throw new \InvalidArgumentException('Unknown message type'); 33 } 34 35 foreach ($message->getHeaders() as $name => $values) { 36 $msg .= "\r\n{$name}: " . implode(', ', $values); 37 } 38 39 return "{$msg}\r\n\r\n" . $message->getBody(); 21 return Message::toString($message); 40 22 } 41 23 … … 43 25 * Returns a UriInterface for the given value. 44 26 * 45 * This function accepts a string or {@see Psr\Http\Message\UriInterface} and46 * returns aUriInterface for the given value. If the value is already a47 * `UriInterface`, it is returned as-is.27 * This function accepts a string or UriInterface and returns a 28 * UriInterface for the given value. If the value is already a 29 * UriInterface, it is returned as-is. 48 30 * 49 31 * @param string|UriInterface $uri 50 32 * 51 33 * @return UriInterface 34 * 52 35 * @throws \InvalidArgumentException 36 * 37 * @deprecated uri_for will be removed in guzzlehttp/psr7:2.0. Use Utils::uriFor instead. 53 38 */ 54 39 function uri_for($uri) 55 40 { 56 if ($uri instanceof UriInterface) { 57 return $uri; 58 } elseif (is_string($uri)) { 59 return new Uri($uri); 60 } 61 62 throw new \InvalidArgumentException('URI must be a string or UriInterface'); 41 return Utils::uriFor($uri); 63 42 } 64 43 … … 70 49 * - size: Size of the stream. 71 50 * 51 * This method accepts the following `$resource` types: 52 * - `Psr\Http\Message\StreamInterface`: Returns the value as-is. 53 * - `string`: Creates a stream object that uses the given string as the contents. 54 * - `resource`: Creates a stream object that wraps the given PHP stream resource. 55 * - `Iterator`: If the provided value implements `Iterator`, then a read-only 56 * stream object will be created that wraps the given iterable. Each time the 57 * stream is read from, data from the iterator will fill a buffer and will be 58 * continuously called until the buffer is equal to the requested read size. 59 * Subsequent read calls will first read from the buffer and then call `next` 60 * on the underlying iterator until it is exhausted. 61 * - `object` with `__toString()`: If the object has the `__toString()` method, 62 * the object will be cast to a string and then a stream will be returned that 63 * uses the string value. 64 * - `NULL`: When `null` is passed, an empty stream object is returned. 65 * - `callable` When a callable is passed, a read-only stream object will be 66 * created that invokes the given callable. The callable is invoked with the 67 * number of suggested bytes to read. The callable can return any number of 68 * bytes, but MUST return `false` when there is no more data to return. The 69 * stream object that wraps the callable will invoke the callable until the 70 * number of requested bytes are available. Any additional bytes will be 71 * buffered and used in subsequent reads. 72 * 72 73 * @param resource|string|null|int|float|bool|StreamInterface|callable|\Iterator $resource Entity body data 73 74 * @param array $options Additional options 74 75 * 75 76 * @return StreamInterface 77 * 76 78 * @throws \InvalidArgumentException if the $resource arg is not valid. 79 * 80 * @deprecated stream_for will be removed in guzzlehttp/psr7:2.0. Use Utils::streamFor instead. 77 81 */ 78 82 function stream_for($resource = '', array $options = []) 79 83 { 80 if (is_scalar($resource)) { 81 $stream = fopen('php://temp', 'r+'); 82 if ($resource !== '') { 83 fwrite($stream, $resource); 84 fseek($stream, 0); 85 } 86 return new Stream($stream, $options); 87 } 88 89 switch (gettype($resource)) { 90 case 'resource': 91 return new Stream($resource, $options); 92 case 'object': 93 if ($resource instanceof StreamInterface) { 94 return $resource; 95 } elseif ($resource instanceof \Iterator) { 96 return new PumpStream(function () use ($resource) { 97 if (!$resource->valid()) { 98 return false; 99 } 100 $result = $resource->current(); 101 $resource->next(); 102 return $result; 103 }, $options); 104 } elseif (method_exists($resource, '__toString')) { 105 return stream_for((string) $resource, $options); 106 } 107 break; 108 case 'NULL': 109 return new Stream(fopen('php://temp', 'r+'), $options); 110 } 111 112 if (is_callable($resource)) { 113 return new PumpStream($resource, $options); 114 } 115 116 throw new \InvalidArgumentException('Invalid resource type: ' . gettype($resource)); 84 return Utils::streamFor($resource, $options); 117 85 } 118 86 119 87 /** 120 88 * Parse an array of header values containing ";" separated data into an 121 * array of associative arrays representing the header key value pair 122 * dataof the header. When a parameter does not contain a value, but just89 * array of associative arrays representing the header key value pair data 90 * of the header. When a parameter does not contain a value, but just 123 91 * contains a key, this function will inject a key with a '' string value. 124 92 * … … 126 94 * 127 95 * @return array Returns the parsed header values. 96 * 97 * @deprecated parse_header will be removed in guzzlehttp/psr7:2.0. Use Header::parse instead. 128 98 */ 129 99 function parse_header($header) 130 100 { 131 static $trimmed = "\"' \n\t\r"; 132 $params = $matches = []; 133 134 foreach (normalize_header($header) as $val) { 135 $part = []; 136 foreach (preg_split('/;(?=([^"]*"[^"]*")*[^"]*$)/', $val) as $kvp) { 137 if (preg_match_all('/<[^>]+>|[^=]+/', $kvp, $matches)) { 138 $m = $matches[0]; 139 if (isset($m[1])) { 140 $part[trim($m[0], $trimmed)] = trim($m[1], $trimmed); 141 } else { 142 $part[] = trim($m[0], $trimmed); 143 } 144 } 145 } 146 if ($part) { 147 $params[] = $part; 148 } 149 } 150 151 return $params; 101 return Header::parse($header); 152 102 } 153 103 … … 159 109 * 160 110 * @return array Returns the normalized header field values. 111 * 112 * @deprecated normalize_header will be removed in guzzlehttp/psr7:2.0. Use Header::normalize instead. 161 113 */ 162 114 function normalize_header($header) 163 115 { 164 if (!is_array($header)) { 165 return array_map('trim', explode(',', $header)); 166 } 167 168 $result = []; 169 foreach ($header as $value) { 170 foreach ((array) $value as $v) { 171 if (strpos($v, ',') === false) { 172 $result[] = $v; 173 continue; 174 } 175 foreach (preg_split('/,(?=([^"]*"[^"]*")*[^"]*$)/', $v) as $vv) { 176 $result[] = trim($vv); 177 } 178 } 179 } 180 181 return $result; 116 return Header::normalize($header); 182 117 } 183 118 184 119 /** 185 120 * Clone and modify a request with the given changes. 121 * 122 * This method is useful for reducing the number of clones needed to mutate a 123 * message. 186 124 * 187 125 * The changes can be one of: … … 198 136 * 199 137 * @return RequestInterface 138 * 139 * @deprecated modify_request will be removed in guzzlehttp/psr7:2.0. Use Utils::modifyRequest instead. 200 140 */ 201 141 function modify_request(RequestInterface $request, array $changes) 202 142 { 203 if (!$changes) { 204 return $request; 205 } 206 207 $headers = $request->getHeaders(); 208 209 if (!isset($changes['uri'])) { 210 $uri = $request->getUri(); 211 } else { 212 // Remove the host header if one is on the URI 213 if ($host = $changes['uri']->getHost()) { 214 $changes['set_headers']['Host'] = $host; 215 216 if ($port = $changes['uri']->getPort()) { 217 $standardPorts = ['http' => 80, 'https' => 443]; 218 $scheme = $changes['uri']->getScheme(); 219 if (isset($standardPorts[$scheme]) && $port != $standardPorts[$scheme]) { 220 $changes['set_headers']['Host'] .= ':'.$port; 221 } 222 } 223 } 224 $uri = $changes['uri']; 225 } 226 227 if (!empty($changes['remove_headers'])) { 228 $headers = _caseless_remove($changes['remove_headers'], $headers); 229 } 230 231 if (!empty($changes['set_headers'])) { 232 $headers = _caseless_remove(array_keys($changes['set_headers']), $headers); 233 $headers = $changes['set_headers'] + $headers; 234 } 235 236 if (isset($changes['query'])) { 237 $uri = $uri->withQuery($changes['query']); 238 } 239 240 if ($request instanceof ServerRequestInterface) { 241 return (new ServerRequest( 242 isset($changes['method']) ? $changes['method'] : $request->getMethod(), 243 $uri, 244 $headers, 245 isset($changes['body']) ? $changes['body'] : $request->getBody(), 246 isset($changes['version']) 247 ? $changes['version'] 248 : $request->getProtocolVersion(), 249 $request->getServerParams() 250 )) 251 ->withParsedBody($request->getParsedBody()) 252 ->withQueryParams($request->getQueryParams()) 253 ->withCookieParams($request->getCookieParams()) 254 ->withUploadedFiles($request->getUploadedFiles()); 255 } 256 257 return new Request( 258 isset($changes['method']) ? $changes['method'] : $request->getMethod(), 259 $uri, 260 $headers, 261 isset($changes['body']) ? $changes['body'] : $request->getBody(), 262 isset($changes['version']) 263 ? $changes['version'] 264 : $request->getProtocolVersion() 265 ); 143 return Utils::modifyRequest($request, $changes); 266 144 } 267 145 … … 275 153 * 276 154 * @throws \RuntimeException 155 * 156 * @deprecated rewind_body will be removed in guzzlehttp/psr7:2.0. Use Message::rewindBody instead. 277 157 */ 278 158 function rewind_body(MessageInterface $message) 279 159 { 280 $body = $message->getBody(); 281 282 if ($body->tell()) { 283 $body->rewind(); 284 } 160 Message::rewindBody($message); 285 161 } 286 162 … … 295 171 * 296 172 * @return resource 173 * 297 174 * @throws \RuntimeException if the file cannot be opened 175 * 176 * @deprecated try_fopen will be removed in guzzlehttp/psr7:2.0. Use Utils::tryFopen instead. 298 177 */ 299 178 function try_fopen($filename, $mode) 300 179 { 301 $ex = null; 302 set_error_handler(function () use ($filename, $mode, &$ex) { 303 $ex = new \RuntimeException(sprintf( 304 'Unable to open %s using mode %s: %s', 305 $filename, 306 $mode, 307 func_get_args()[1] 308 )); 309 }); 310 311 $handle = fopen($filename, $mode); 312 restore_error_handler(); 313 314 if ($ex) { 315 /** @var $ex \RuntimeException */ 316 throw $ex; 317 } 318 319 return $handle; 180 return Utils::tryFopen($filename, $mode); 320 181 } 321 182 … … 328 189 * to read the entire stream. 329 190 * @return string 191 * 330 192 * @throws \RuntimeException on error. 193 * 194 * @deprecated copy_to_string will be removed in guzzlehttp/psr7:2.0. Use Utils::copyToString instead. 331 195 */ 332 196 function copy_to_string(StreamInterface $stream, $maxLen = -1) 333 197 { 334 $buffer = ''; 335 336 if ($maxLen === -1) { 337 while (!$stream->eof()) { 338 $buf = $stream->read(1048576); 339 // Using a loose equality here to match on '' and false. 340 if ($buf == null) { 341 break; 342 } 343 $buffer .= $buf; 344 } 345 return $buffer; 346 } 347 348 $len = 0; 349 while (!$stream->eof() && $len < $maxLen) { 350 $buf = $stream->read($maxLen - $len); 351 // Using a loose equality here to match on '' and false. 352 if ($buf == null) { 353 break; 354 } 355 $buffer .= $buf; 356 $len = strlen($buffer); 357 } 358 359 return $buffer; 198 return Utils::copyToString($stream, $maxLen); 360 199 } 361 200 … … 370 209 * 371 210 * @throws \RuntimeException on error. 372 */ 373 function copy_to_stream( 374 StreamInterface $source, 375 StreamInterface $dest, 376 $maxLen = -1 377 ) { 378 $bufferSize = 8192; 379 380 if ($maxLen === -1) { 381 while (!$source->eof()) { 382 if (!$dest->write($source->read($bufferSize))) { 383 break; 384 } 385 } 386 } else { 387 $remaining = $maxLen; 388 while ($remaining > 0 && !$source->eof()) { 389 $buf = $source->read(min($bufferSize, $remaining)); 390 $len = strlen($buf); 391 if (!$len) { 392 break; 393 } 394 $remaining -= $len; 395 $dest->write($buf); 396 } 397 } 398 } 399 400 /** 401 * Calculate a hash of a Stream 211 * 212 * @deprecated copy_to_stream will be removed in guzzlehttp/psr7:2.0. Use Utils::copyToStream instead. 213 */ 214 function copy_to_stream(StreamInterface $source, StreamInterface $dest, $maxLen = -1) 215 { 216 return Utils::copyToStream($source, $dest, $maxLen); 217 } 218 219 /** 220 * Calculate a hash of a stream. 221 * 222 * This method reads the entire stream to calculate a rolling hash, based on 223 * PHP's `hash_init` functions. 402 224 * 403 225 * @param StreamInterface $stream Stream to calculate the hash for … … 406 228 * 407 229 * @return string Returns the hash of the stream 230 * 408 231 * @throws \RuntimeException on error. 409 */ 410 function hash( 411 StreamInterface $stream, 412 $algo, 413 $rawOutput = false 414 ) { 415 $pos = $stream->tell(); 416 417 if ($pos > 0) { 418 $stream->rewind(); 419 } 420 421 $ctx = hash_init($algo); 422 while (!$stream->eof()) { 423 hash_update($ctx, $stream->read(1048576)); 424 } 425 426 $out = hash_final($ctx, (bool) $rawOutput); 427 $stream->seek($pos); 428 429 return $out; 430 } 431 432 /** 433 * Read a line from the stream up to the maximum allowed buffer length 232 * 233 * @deprecated hash will be removed in guzzlehttp/psr7:2.0. Use Utils::hash instead. 234 */ 235 function hash(StreamInterface $stream, $algo, $rawOutput = false) 236 { 237 return Utils::hash($stream, $algo, $rawOutput); 238 } 239 240 /** 241 * Read a line from the stream up to the maximum allowed buffer length. 434 242 * 435 243 * @param StreamInterface $stream Stream to read from 436 * @param int $maxLength Maximum buffer length244 * @param int|null $maxLength Maximum buffer length 437 245 * 438 246 * @return string 247 * 248 * @deprecated readline will be removed in guzzlehttp/psr7:2.0. Use Utils::readLine instead. 439 249 */ 440 250 function readline(StreamInterface $stream, $maxLength = null) 441 251 { 442 $buffer = ''; 443 $size = 0; 444 445 while (!$stream->eof()) { 446 // Using a loose equality here to match on '' and false. 447 if (null == ($byte = $stream->read(1))) { 448 return $buffer; 449 } 450 $buffer .= $byte; 451 // Break when a new line is found or the max length - 1 is reached 452 if ($byte === "\n" || ++$size === $maxLength - 1) { 453 break; 454 } 455 } 456 457 return $buffer; 252 return Utils::readLine($stream, $maxLength); 458 253 } 459 254 … … 464 259 * 465 260 * @return Request 261 * 262 * @deprecated parse_request will be removed in guzzlehttp/psr7:2.0. Use Message::parseRequest instead. 466 263 */ 467 264 function parse_request($message) 468 265 { 469 $data = _parse_message($message); 470 $matches = []; 471 if (!preg_match('/^[\S]+\s+([a-zA-Z]+:\/\/|\/).*/', $data['start-line'], $matches)) { 472 throw new \InvalidArgumentException('Invalid request string'); 473 } 474 $parts = explode(' ', $data['start-line'], 3); 475 $version = isset($parts[2]) ? explode('/', $parts[2])[1] : '1.1'; 476 477 $request = new Request( 478 $parts[0], 479 $matches[1] === '/' ? _parse_request_uri($parts[1], $data['headers']) : $parts[1], 480 $data['headers'], 481 $data['body'], 482 $version 483 ); 484 485 return $matches[1] === '/' ? $request : $request->withRequestTarget($parts[1]); 266 return Message::parseRequest($message); 486 267 } 487 268 … … 492 273 * 493 274 * @return Response 275 * 276 * @deprecated parse_response will be removed in guzzlehttp/psr7:2.0. Use Message::parseResponse instead. 494 277 */ 495 278 function parse_response($message) 496 279 { 497 $data = _parse_message($message); 498 // According to https://tools.ietf.org/html/rfc7230#section-3.1.2 the space 499 // between status-code and reason-phrase is required. But browsers accept 500 // responses without space and reason as well. 501 if (!preg_match('/^HTTP\/.* [0-9]{3}( .*|$)/', $data['start-line'])) { 502 throw new \InvalidArgumentException('Invalid response string: ' . $data['start-line']); 503 } 504 $parts = explode(' ', $data['start-line'], 3); 505 506 return new Response( 507 $parts[1], 508 $data['headers'], 509 $data['body'], 510 explode('/', $parts[0])[1], 511 isset($parts[2]) ? $parts[2] : null 512 ); 280 return Message::parseResponse($message); 513 281 } 514 282 … … 516 284 * Parse a query string into an associative array. 517 285 * 518 * If multiple values are found for the same key, the value of that key 519 * value pair will become an array. This function does not parse nested520 * PHP style arrays into an associative array (e.g., foo[a]=1&foo[b]=2 will521 * be parsed into ['foo[a]' => '1', 'foo[b]' => '2']).286 * If multiple values are found for the same key, the value of that key value 287 * pair will become an array. This function does not parse nested PHP style 288 * arrays into an associative array (e.g., `foo[a]=1&foo[b]=2` will be parsed 289 * into `['foo[a]' => '1', 'foo[b]' => '2'])`. 522 290 * 523 291 * @param string $str Query string to parse … … 525 293 * 526 294 * @return array 295 * 296 * @deprecated parse_query will be removed in guzzlehttp/psr7:2.0. Use Query::parse instead. 527 297 */ 528 298 function parse_query($str, $urlEncoding = true) 529 299 { 530 $result = []; 531 532 if ($str === '') { 533 return $result; 534 } 535 536 if ($urlEncoding === true) { 537 $decoder = function ($value) { 538 return rawurldecode(str_replace('+', ' ', $value)); 539 }; 540 } elseif ($urlEncoding === PHP_QUERY_RFC3986) { 541 $decoder = 'rawurldecode'; 542 } elseif ($urlEncoding === PHP_QUERY_RFC1738) { 543 $decoder = 'urldecode'; 544 } else { 545 $decoder = function ($str) { return $str; }; 546 } 547 548 foreach (explode('&', $str) as $kvp) { 549 $parts = explode('=', $kvp, 2); 550 $key = $decoder($parts[0]); 551 $value = isset($parts[1]) ? $decoder($parts[1]) : null; 552 if (!isset($result[$key])) { 553 $result[$key] = $value; 554 } else { 555 if (!is_array($result[$key])) { 556 $result[$key] = [$result[$key]]; 557 } 558 $result[$key][] = $value; 559 } 560 } 561 562 return $result; 300 return Query::parse($str, $urlEncoding); 563 301 } 564 302 … … 566 304 * Build a query string from an array of key value pairs. 567 305 * 568 * This function can use the return value of parse_query()to build a query306 * This function can use the return value of `parse_query()` to build a query 569 307 * string. This function does not modify the provided keys when an array is 570 * encountered (like http_build_querywould).308 * encountered (like `http_build_query()` would). 571 309 * 572 310 * @param array $params Query string parameters. … … 575 313 * to encode using RFC1738. 576 314 * @return string 315 * 316 * @deprecated build_query will be removed in guzzlehttp/psr7:2.0. Use Query::build instead. 577 317 */ 578 318 function build_query(array $params, $encoding = PHP_QUERY_RFC3986) 579 319 { 580 if (!$params) { 581 return ''; 582 } 583 584 if ($encoding === false) { 585 $encoder = function ($str) { return $str; }; 586 } elseif ($encoding === PHP_QUERY_RFC3986) { 587 $encoder = 'rawurlencode'; 588 } elseif ($encoding === PHP_QUERY_RFC1738) { 589 $encoder = 'urlencode'; 590 } else { 591 throw new \InvalidArgumentException('Invalid type'); 592 } 593 594 $qs = ''; 595 foreach ($params as $k => $v) { 596 $k = $encoder($k); 597 if (!is_array($v)) { 598 $qs .= $k; 599 if ($v !== null) { 600 $qs .= '=' . $encoder($v); 601 } 602 $qs .= '&'; 603 } else { 604 foreach ($v as $vv) { 605 $qs .= $k; 606 if ($vv !== null) { 607 $qs .= '=' . $encoder($vv); 608 } 609 $qs .= '&'; 610 } 611 } 612 } 613 614 return $qs ? (string) substr($qs, 0, -1) : ''; 320 return Query::build($params, $encoding); 615 321 } 616 322 … … 618 324 * Determines the mimetype of a file by looking at its extension. 619 325 * 620 * @param $filename 621 * 622 * @return null|string 326 * @param string $filename 327 * 328 * @return string|null 329 * 330 * @deprecated mimetype_from_filename will be removed in guzzlehttp/psr7:2.0. Use MimeType::fromFilename instead. 623 331 */ 624 332 function mimetype_from_filename($filename) 625 333 { 626 return mimetype_from_extension(pathinfo($filename, PATHINFO_EXTENSION));334 return MimeType::fromFilename($filename); 627 335 } 628 336 … … 633 341 * 634 342 * @return string|null 343 * 635 344 * @link http://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x/conf/mime.types 345 * @deprecated mimetype_from_extension will be removed in guzzlehttp/psr7:2.0. Use MimeType::fromExtension instead. 636 346 */ 637 347 function mimetype_from_extension($extension) 638 348 { 639 static $mimetypes = [ 640 '3gp' => 'video/3gpp', 641 '7z' => 'application/x-7z-compressed', 642 'aac' => 'audio/x-aac', 643 'ai' => 'application/postscript', 644 'aif' => 'audio/x-aiff', 645 'asc' => 'text/plain', 646 'asf' => 'video/x-ms-asf', 647 'atom' => 'application/atom+xml', 648 'avi' => 'video/x-msvideo', 649 'bmp' => 'image/bmp', 650 'bz2' => 'application/x-bzip2', 651 'cer' => 'application/pkix-cert', 652 'crl' => 'application/pkix-crl', 653 'crt' => 'application/x-x509-ca-cert', 654 'css' => 'text/css', 655 'csv' => 'text/csv', 656 'cu' => 'application/cu-seeme', 657 'deb' => 'application/x-debian-package', 658 'doc' => 'application/msword', 659 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 660 'dvi' => 'application/x-dvi', 661 'eot' => 'application/vnd.ms-fontobject', 662 'eps' => 'application/postscript', 663 'epub' => 'application/epub+zip', 664 'etx' => 'text/x-setext', 665 'flac' => 'audio/flac', 666 'flv' => 'video/x-flv', 667 'gif' => 'image/gif', 668 'gz' => 'application/gzip', 669 'htm' => 'text/html', 670 'html' => 'text/html', 671 'ico' => 'image/x-icon', 672 'ics' => 'text/calendar', 673 'ini' => 'text/plain', 674 'iso' => 'application/x-iso9660-image', 675 'jar' => 'application/java-archive', 676 'jpe' => 'image/jpeg', 677 'jpeg' => 'image/jpeg', 678 'jpg' => 'image/jpeg', 679 'js' => 'text/javascript', 680 'json' => 'application/json', 681 'latex' => 'application/x-latex', 682 'log' => 'text/plain', 683 'm4a' => 'audio/mp4', 684 'm4v' => 'video/mp4', 685 'mid' => 'audio/midi', 686 'midi' => 'audio/midi', 687 'mov' => 'video/quicktime', 688 'mkv' => 'video/x-matroska', 689 'mp3' => 'audio/mpeg', 690 'mp4' => 'video/mp4', 691 'mp4a' => 'audio/mp4', 692 'mp4v' => 'video/mp4', 693 'mpe' => 'video/mpeg', 694 'mpeg' => 'video/mpeg', 695 'mpg' => 'video/mpeg', 696 'mpg4' => 'video/mp4', 697 'oga' => 'audio/ogg', 698 'ogg' => 'audio/ogg', 699 'ogv' => 'video/ogg', 700 'ogx' => 'application/ogg', 701 'pbm' => 'image/x-portable-bitmap', 702 'pdf' => 'application/pdf', 703 'pgm' => 'image/x-portable-graymap', 704 'png' => 'image/png', 705 'pnm' => 'image/x-portable-anymap', 706 'ppm' => 'image/x-portable-pixmap', 707 'ppt' => 'application/vnd.ms-powerpoint', 708 'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 709 'ps' => 'application/postscript', 710 'qt' => 'video/quicktime', 711 'rar' => 'application/x-rar-compressed', 712 'ras' => 'image/x-cmu-raster', 713 'rss' => 'application/rss+xml', 714 'rtf' => 'application/rtf', 715 'sgm' => 'text/sgml', 716 'sgml' => 'text/sgml', 717 'svg' => 'image/svg+xml', 718 'swf' => 'application/x-shockwave-flash', 719 'tar' => 'application/x-tar', 720 'tif' => 'image/tiff', 721 'tiff' => 'image/tiff', 722 'torrent' => 'application/x-bittorrent', 723 'ttf' => 'application/x-font-ttf', 724 'txt' => 'text/plain', 725 'wav' => 'audio/x-wav', 726 'webm' => 'video/webm', 727 'webp' => 'image/webp', 728 'wma' => 'audio/x-ms-wma', 729 'wmv' => 'video/x-ms-wmv', 730 'woff' => 'application/x-font-woff', 731 'wsdl' => 'application/wsdl+xml', 732 'xbm' => 'image/x-xbitmap', 733 'xls' => 'application/vnd.ms-excel', 734 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 735 'xml' => 'application/xml', 736 'xpm' => 'image/x-xpixmap', 737 'xwd' => 'image/x-xwindowdump', 738 'yaml' => 'text/yaml', 739 'yml' => 'text/yaml', 740 'zip' => 'application/zip', 741 ]; 742 743 $extension = strtolower($extension); 744 745 return isset($mimetypes[$extension]) 746 ? $mimetypes[$extension] 747 : null; 349 return MimeType::fromExtension($extension); 748 350 } 749 351 … … 758 360 * 759 361 * @return array 362 * 760 363 * @internal 364 * @deprecated _parse_message will be removed in guzzlehttp/psr7:2.0. Use Message::parseMessage instead. 761 365 */ 762 366 function _parse_message($message) 763 367 { 764 if (!$message) { 765 throw new \InvalidArgumentException('Invalid message'); 766 } 767 768 $message = ltrim($message, "\r\n"); 769 770 $messageParts = preg_split("/\r?\n\r?\n/", $message, 2); 771 772 if ($messageParts === false || count($messageParts) !== 2) { 773 throw new \InvalidArgumentException('Invalid message: Missing header delimiter'); 774 } 775 776 list($rawHeaders, $body) = $messageParts; 777 $rawHeaders .= "\r\n"; // Put back the delimiter we split previously 778 $headerParts = preg_split("/\r?\n/", $rawHeaders, 2); 779 780 if ($headerParts === false || count($headerParts) !== 2) { 781 throw new \InvalidArgumentException('Invalid message: Missing status line'); 782 } 783 784 list($startLine, $rawHeaders) = $headerParts; 785 786 if (preg_match("/(?:^HTTP\/|^[A-Z]+ \S+ HTTP\/)(\d+(?:\.\d+)?)/i", $startLine, $matches) && $matches[1] === '1.0') { 787 // Header folding is deprecated for HTTP/1.1, but allowed in HTTP/1.0 788 $rawHeaders = preg_replace(Rfc7230::HEADER_FOLD_REGEX, ' ', $rawHeaders); 789 } 790 791 /** @var array[] $headerLines */ 792 $count = preg_match_all(Rfc7230::HEADER_REGEX, $rawHeaders, $headerLines, PREG_SET_ORDER); 793 794 // If these aren't the same, then one line didn't match and there's an invalid header. 795 if ($count !== substr_count($rawHeaders, "\n")) { 796 // Folding is deprecated, see https://tools.ietf.org/html/rfc7230#section-3.2.4 797 if (preg_match(Rfc7230::HEADER_FOLD_REGEX, $rawHeaders)) { 798 throw new \InvalidArgumentException('Invalid header syntax: Obsolete line folding'); 799 } 800 801 throw new \InvalidArgumentException('Invalid header syntax'); 802 } 803 804 $headers = []; 805 806 foreach ($headerLines as $headerLine) { 807 $headers[$headerLine[1]][] = $headerLine[2]; 808 } 809 810 return [ 811 'start-line' => $startLine, 812 'headers' => $headers, 813 'body' => $body, 814 ]; 368 return Message::parseMessage($message); 815 369 } 816 370 … … 822 376 * 823 377 * @return string 378 * 824 379 * @internal 380 * @deprecated _parse_request_uri will be removed in guzzlehttp/psr7:2.0. Use Message::parseRequestUri instead. 825 381 */ 826 382 function _parse_request_uri($path, array $headers) 827 383 { 828 $hostKey = array_filter(array_keys($headers), function ($k) { 829 return strtolower($k) === 'host'; 830 }); 831 832 // If no host is found, then a full URI cannot be constructed. 833 if (!$hostKey) { 834 return $path; 835 } 836 837 $host = $headers[reset($hostKey)][0]; 838 $scheme = substr($host, -4) === ':443' ? 'https' : 'http'; 839 840 return $scheme . '://' . $host . '/' . ltrim($path, '/'); 841 } 842 843 /** 844 * Get a short summary of the message body 384 return Message::parseRequestUri($path, $headers); 385 } 386 387 /** 388 * Get a short summary of the message body. 845 389 * 846 390 * Will return `null` if the response is not printable. … … 849 393 * @param int $truncateAt The maximum allowed size of the summary 850 394 * 851 * @return null|string 395 * @return string|null 396 * 397 * @deprecated get_message_body_summary will be removed in guzzlehttp/psr7:2.0. Use Message::bodySummary instead. 852 398 */ 853 399 function get_message_body_summary(MessageInterface $message, $truncateAt = 120) 854 400 { 855 $body = $message->getBody(); 856 857 if (!$body->isSeekable() || !$body->isReadable()) { 858 return null; 859 } 860 861 $size = $body->getSize(); 862 863 if ($size === 0) { 864 return null; 865 } 866 867 $summary = $body->read($truncateAt); 868 $body->rewind(); 869 870 if ($size > $truncateAt) { 871 $summary .= ' (truncated...)'; 872 } 873 874 // Matches any printable character, including unicode characters: 875 // letters, marks, numbers, punctuation, spacing, and separators. 876 if (preg_match('/[^\pL\pM\pN\pP\pS\pZ\n\r\t]/', $summary)) { 877 return null; 878 } 879 880 return $summary; 881 } 882 883 /** @internal */ 401 return Message::bodySummary($message, $truncateAt); 402 } 403 404 /** 405 * Remove the items given by the keys, case insensitively from the data. 406 * 407 * @param iterable<string> $keys 408 * 409 * @return array 410 * 411 * @internal 412 * @deprecated _caseless_remove will be removed in guzzlehttp/psr7:2.0. Use Utils::caselessRemove instead. 413 */ 884 414 function _caseless_remove($keys, array $data) 885 415 { 886 $result = []; 887 888 foreach ($keys as &$key) { 889 $key = strtolower($key); 890 } 891 892 foreach ($data as $k => $v) { 893 if (!in_array(strtolower($k), $keys)) { 894 $result[$k] = $v; 895 } 896 } 897 898 return $result; 899 } 416 return Utils::caselessRemove($keys, $data); 417 } -
quick-login/trunk/vendor/league/oauth2-client/LICENSE
r1860398 r2458198 1 1 The MIT License (MIT) 2 2 3 Copyright (c) 2013-20 18Alex Bilbie <hello@alexbilbie.com>3 Copyright (c) 2013-2020 Alex Bilbie <hello@alexbilbie.com> 4 4 5 5 Permission is hereby granted, free of charge, to any person obtaining a copy -
quick-login/trunk/vendor/league/oauth2-client/README.md
r2010460 r2458198 4 4 5 5 [](https://gitter.im/thephpleague/oauth2-client) 6 [](https://github.com/thephpleague/oauth2-client)6 [](https://github.com/thephpleague/oauth2-client) 7 7 [](https://github.com/thephpleague/oauth2-client/releases) 8 8 [](https://github.com/thephpleague/oauth2-client/blob/master/LICENSE) 9 [](https://travis-ci.org/thephpleague/oauth2-client) 10 [](https://scrutinizer-ci.com/g/thephpleague/oauth2-client/) 11 [](https://coveralls.io/r/thephpleague/oauth2-client?branch=master) 9 [](https://github.com/thephpleague/oauth2-client/actions?query=workflow%3ACI) 10 [](https://codecov.io/gh/thephpleague/oauth2-client) 12 11 [](https://packagist.org/packages/league/oauth2-client) 13 12 … … 31 30 * PHP 7.2 32 31 * PHP 7.3 32 * PHP 7.4 33 * PHP 8.0 33 34 34 35 ## Providers -
quick-login/trunk/vendor/league/oauth2-client/composer.json
r2364279 r2458198 7 7 }, 8 8 "require": { 9 "php": "^5.6 |^7.0",9 "php": "^5.6 || ^7.0 || ^8.0", 10 10 "guzzlehttp/guzzle": "^6.0 || ^7.0", 11 "paragonie/random_compat": "^1 |^2|^9.99"11 "paragonie/random_compat": "^1 || ^2 || ^9.99" 12 12 }, 13 13 "require-dev": { 14 "eloquent/liberator": "^2.0", 15 "eloquent/phony-phpunit": "^1.0|^3.0", 16 "jakub-onderka/php-parallel-lint": "^0.9.2", 17 "phpunit/phpunit": "^5.7|^6.0", 18 "squizlabs/php_codesniffer": "^2.3|^3.0" 14 "mockery/mockery": "^1.3", 15 "php-parallel-lint/php-parallel-lint": "^1.2", 16 "phpunit/phpunit": "^5.7 || ^6.0 || ^9.3", 17 "squizlabs/php_codesniffer": "^2.3 || ^3.0" 19 18 }, 20 19 "keywords": [ -
quick-login/trunk/vendor/league/oauth2-client/src/Token/AccessToken.php
r2010460 r2458198 51 51 52 52 /** 53 * @var int 54 */ 55 private static $timeNow; 56 57 /** 58 * Set the time now. This should only be used for testing purposes. 59 * 60 * @param int $timeNow the time in seconds since epoch 61 * @return void 62 */ 63 public static function setTimeNow($timeNow) 64 { 65 self::$timeNow = $timeNow; 66 } 67 68 /** 69 * Reset the time now if it was set for test purposes. 70 * 71 * @return void 72 */ 73 public static function resetTimeNow() 74 { 75 self::$timeNow = null; 76 } 77 78 /** 79 * @return int 80 */ 81 public function getTimeNow() 82 { 83 return self::$timeNow ? self::$timeNow : time(); 84 } 85 86 /** 53 87 * Constructs an access token. 54 88 * … … 81 115 } 82 116 83 $this->expires = $options['expires_in'] != 0 ? time() + $options['expires_in'] : 0;117 $this->expires = $options['expires_in'] != 0 ? $this->getTimeNow() + $options['expires_in'] : 0; 84 118 } elseif (!empty($options['expires'])) { 85 119 // Some providers supply the seconds until expiration rather than … … 88 122 89 123 if (!$this->isExpirationTimestamp($expires)) { 90 $expires += time();124 $expires += $this->getTimeNow(); 91 125 } 92 126 -
quick-login/trunk/vendor/league/oauth2-client/src/Token/AccessTokenInterface.php
r2010460 r2458198 35 35 36 36 /** 37 * Returns the expiration timestamp , if defined.37 * Returns the expiration timestamp in seconds, if defined. 38 38 * 39 39 * @return integer|null -
quick-login/trunk/vendor/league/oauth2-facebook/src/Provider/Facebook.php
r2364279 r2458198 8 8 use Psr\Http\Message\ResponseInterface; 9 9 10 /** 11 * @method FacebookUser getResourceOwner(AccessToken $token) 12 */ 10 13 class Facebook extends AbstractProvider 11 14 { … … 104 107 'id', 'name', 'first_name', 'last_name', 105 108 'email', 'hometown', 'picture.type(large){url,is_silhouette}', 106 'gender', ' link', 'age_range'109 'gender', 'age_range' 107 110 ]; 108 111 -
quick-login/trunk/vendor/symfony/polyfill-intl-idn/Idn.php
r2364279 r2458198 43 43 const INTL_IDNA_VARIANT_UTS46 = 1; 44 44 45 const IDNA_DEFAULT = 0; 46 const IDNA_ALLOW_UNASSIGNED = 1; 47 const IDNA_USE_STD3_RULES = 2; 48 const IDNA_CHECK_BIDI = 4; 49 const IDNA_CHECK_CONTEXTJ = 8; 50 const IDNA_NONTRANSITIONAL_TO_ASCII = 16; 51 const IDNA_NONTRANSITIONAL_TO_UNICODE = 32; 52 45 53 const MAX_DOMAIN_SIZE = 253; 46 54 const MAX_LABEL_SIZE = 63; … … 138 146 * @return string|false 139 147 */ 140 public static function idn_to_ascii($domainName, $options = IDNA_DEFAULT, $variant = self::INTL_IDNA_VARIANT_UTS46, &$idna_info = array())148 public static function idn_to_ascii($domainName, $options = self::IDNA_DEFAULT, $variant = self::INTL_IDNA_VARIANT_UTS46, &$idna_info = array()) 141 149 { 142 150 if (\PHP_VERSION_ID >= 70200 && self::INTL_IDNA_VARIANT_2003 === $variant) { … … 146 154 $options = array( 147 155 'CheckHyphens' => true, 148 'CheckBidi' => self::INTL_IDNA_VARIANT_2003 === $variant || 0 !== ($options & \IDNA_CHECK_BIDI),149 'CheckJoiners' => self::INTL_IDNA_VARIANT_UTS46 === $variant && 0 !== ($options & \IDNA_CHECK_CONTEXTJ),150 'UseSTD3ASCIIRules' => 0 !== ($options & \IDNA_USE_STD3_RULES),151 'Transitional_Processing' => self::INTL_IDNA_VARIANT_2003 === $variant || 0 === ($options & \IDNA_NONTRANSITIONAL_TO_ASCII),156 'CheckBidi' => self::INTL_IDNA_VARIANT_2003 === $variant || 0 !== ($options & self::IDNA_CHECK_BIDI), 157 'CheckJoiners' => self::INTL_IDNA_VARIANT_UTS46 === $variant && 0 !== ($options & self::IDNA_CHECK_CONTEXTJ), 158 'UseSTD3ASCIIRules' => 0 !== ($options & self::IDNA_USE_STD3_RULES), 159 'Transitional_Processing' => self::INTL_IDNA_VARIANT_2003 === $variant || 0 === ($options & self::IDNA_NONTRANSITIONAL_TO_ASCII), 152 160 'VerifyDnsLength' => true, 153 161 ); … … 191 199 * @return string|false 192 200 */ 193 public static function idn_to_utf8($domainName, $options = IDNA_DEFAULT, $variant = self::INTL_IDNA_VARIANT_UTS46, &$idna_info = array())201 public static function idn_to_utf8($domainName, $options = self::IDNA_DEFAULT, $variant = self::INTL_IDNA_VARIANT_UTS46, &$idna_info = array()) 194 202 { 195 203 if (\PHP_VERSION_ID >= 70200 && self::INTL_IDNA_VARIANT_2003 === $variant) { … … 200 208 $labels = self::process((string) $domainName, array( 201 209 'CheckHyphens' => true, 202 'CheckBidi' => self::INTL_IDNA_VARIANT_2003 === $variant || 0 !== ($options & \IDNA_CHECK_BIDI),203 'CheckJoiners' => self::INTL_IDNA_VARIANT_UTS46 === $variant && 0 !== ($options & \IDNA_CHECK_CONTEXTJ),204 'UseSTD3ASCIIRules' => 0 !== ($options & \IDNA_USE_STD3_RULES),205 'Transitional_Processing' => self::INTL_IDNA_VARIANT_2003 === $variant || 0 === ($options & \IDNA_NONTRANSITIONAL_TO_UNICODE),210 'CheckBidi' => self::INTL_IDNA_VARIANT_2003 === $variant || 0 !== ($options & self::IDNA_CHECK_BIDI), 211 'CheckJoiners' => self::INTL_IDNA_VARIANT_UTS46 === $variant && 0 !== ($options & self::IDNA_CHECK_CONTEXTJ), 212 'UseSTD3ASCIIRules' => 0 !== ($options & self::IDNA_USE_STD3_RULES), 213 'Transitional_Processing' => self::INTL_IDNA_VARIANT_2003 === $variant || 0 === ($options & self::IDNA_NONTRANSITIONAL_TO_UNICODE), 206 214 ), $info); 207 215 $idna_info = array( -
quick-login/trunk/vendor/symfony/polyfill-intl-idn/composer.json
r2364279 r2458198 36 36 "extra": { 37 37 "branch-alias": { 38 "dev-ma ster": "1.18-dev"38 "dev-main": "1.19-dev" 39 39 }, 40 40 "thanks": { -
quick-login/trunk/vendor/symfony/polyfill-intl-normalizer/bootstrap.php
r2364279 r2458198 13 13 14 14 if (!function_exists('normalizer_is_normalized')) { 15 function normalizer_is_normalized($ s, $form = p\Normalizer::NFC) { return p\Normalizer::isNormalized($s, $form); }15 function normalizer_is_normalized($input, $form = p\Normalizer::NFC) { return p\Normalizer::isNormalized($input, $form); } 16 16 } 17 17 if (!function_exists('normalizer_normalize')) { 18 function normalizer_normalize($ s, $form = p\Normalizer::NFC) { return p\Normalizer::normalize($s, $form); }18 function normalizer_normalize($input, $form = p\Normalizer::NFC) { return p\Normalizer::normalize($input, $form); } 19 19 } -
quick-login/trunk/vendor/symfony/polyfill-intl-normalizer/composer.json
r2364279 r2458198 30 30 "extra": { 31 31 "branch-alias": { 32 "dev-ma ster": "1.18-dev"32 "dev-main": "1.19-dev" 33 33 }, 34 34 "thanks": { -
quick-login/trunk/vendor/symfony/polyfill-php70/Php70.php
r2364279 r2458198 25 25 26 26 if (0 === $divisor) { 27 throw new \ Error('Division by zero');27 throw new \DivisionByZeroError('Division by zero'); 28 28 } 29 29 if (-1 === $divisor && ~PHP_INT_MAX === $dividend) { 30 throw new \ Error('Division of PHP_INT_MIN by -1 is not an integer');30 throw new \ArithmeticError('Division of PHP_INT_MIN by -1 is not an integer'); 31 31 } 32 32 … … 67 67 } 68 68 if (!\is_numeric($value) || PHP_INT_MAX <= ($value += 0) || ~PHP_INT_MAX >= $value) { 69 throw new \ Error(sprintf('%s() expects parameter %d to be integer, %s given', $caller, $pos, \gettype($value)));69 throw new \TypeError(sprintf('%s() expects parameter %d to be integer, %s given', $caller, $pos, \gettype($value))); 70 70 } 71 71 -
quick-login/trunk/vendor/symfony/polyfill-php70/Resources/stubs/ArithmeticError.php
r2364279 r2458198 1 1 <?php 2 3 class ArithmeticError extends Error 4 { 5 } -
quick-login/trunk/vendor/symfony/polyfill-php70/Resources/stubs/AssertionError.php
r2364279 r2458198 1 1 <?php 2 3 class AssertionError extends Error 4 { 5 } -
quick-login/trunk/vendor/symfony/polyfill-php70/Resources/stubs/DivisionByZeroError.php
r2364279 r2458198 1 1 <?php 2 3 class DivisionByZeroError extends Error 4 { 5 } -
quick-login/trunk/vendor/symfony/polyfill-php70/Resources/stubs/ParseError.php
r2364279 r2458198 1 1 <?php 2 3 class ParseError extends Error 4 { 5 } -
quick-login/trunk/vendor/symfony/polyfill-php70/Resources/stubs/TypeError.php
r2364279 r2458198 1 1 <?php 2 3 class TypeError extends Error 4 { 5 } -
quick-login/trunk/vendor/symfony/polyfill-php70/bootstrap.php
r2364279 r2458198 21 21 22 22 if (!function_exists('intdiv')) { 23 function intdiv($ dividend, $divisor) { return p\Php70::intdiv($dividend, $divisor); }23 function intdiv($num1, $num2) { return p\Php70::intdiv($num1, $num2); } 24 24 } 25 25 if (!function_exists('preg_replace_callback_array')) { 26 function preg_replace_callback_array(array $pattern s, $subject, $limit = -1, &$count = 0) { return p\Php70::preg_replace_callback_array($patterns, $subject, $limit, $count); }26 function preg_replace_callback_array(array $pattern, $subject, $limit = -1, &$count = 0, $flags = null) { return p\Php70::preg_replace_callback_array($pattern, $subject, $limit, $count); } 27 27 } 28 28 if (!function_exists('error_clear_last')) { -
quick-login/trunk/vendor/symfony/polyfill-php70/composer.json
r2364279 r2458198 28 28 "extra": { 29 29 "branch-alias": { 30 "dev-ma ster": "1.18-dev"30 "dev-main": "1.19-dev" 31 31 }, 32 32 "thanks": { -
quick-login/trunk/vendor/symfony/polyfill-php72/Php72.php
r2303737 r2458198 192 192 public static function mb_ord($s, $encoding = null) 193 193 { 194 if (null == $encoding) {194 if (null === $encoding) { 195 195 $s = mb_convert_encoding($s, 'UTF-8'); 196 196 } elseif ('UTF-8' !== $encoding) { -
quick-login/trunk/vendor/symfony/polyfill-php72/bootstrap.php
r2303737 r2458198 39 39 } 40 40 if (!function_exists('utf8_encode')) { 41 function utf8_encode($s ) { return p\Php72::utf8_encode($s); }41 function utf8_encode($string) { return p\Php72::utf8_encode($string); } 42 42 } 43 43 if (!function_exists('utf8_decode')) { 44 function utf8_decode($s ) { return p\Php72::utf8_decode($s); }44 function utf8_decode($string) { return p\Php72::utf8_decode($string); } 45 45 } 46 46 if (!function_exists('spl_object_id')) { 47 function spl_object_id($ s) { return p\Php72::spl_object_id($s); }47 function spl_object_id($object) { return p\Php72::spl_object_id($object); } 48 48 } 49 49 if (!function_exists('mb_ord')) { 50 function mb_ord($s , $enc = null) { return p\Php72::mb_ord($s, $enc); }50 function mb_ord($string, $encoding = null) { return p\Php72::mb_ord($string, $encoding); } 51 51 } 52 52 if (!function_exists('mb_chr')) { 53 function mb_chr($code , $enc = null) { return p\Php72::mb_chr($code, $enc); }53 function mb_chr($codepoint, $encoding = null) { return p\Php72::mb_chr($codepoint, $encoding); } 54 54 } 55 55 if (!function_exists('mb_scrub')) { 56 function mb_scrub($s , $enc = null) { $enc = null === $enc ? mb_internal_encoding() : $enc; return mb_convert_encoding($s, $enc, $enc); }56 function mb_scrub($string, $encoding = null) { $encoding = null === $encoding ? mb_internal_encoding() : $encoding; return mb_convert_encoding($string, $encoding, $encoding); } 57 57 } -
quick-login/trunk/vendor/symfony/polyfill-php72/composer.json
r2364279 r2458198 26 26 "extra": { 27 27 "branch-alias": { 28 "dev-ma ster": "1.18-dev"28 "dev-main": "1.19-dev" 29 29 }, 30 30 "thanks": {
Note: See TracChangeset
for help on using the changeset viewer.