Version Description
Download this release
Release Info
Developer | themeisle |
Plugin | Orbit Fox by ThemeIsle |
Version | 2.10.2 |
Comparing to | |
See all releases |
Code changes from version 2.10.1 to 2.10.2
- CHANGELOG.md +4 -0
- core/includes/class-orbit-fox.php +1 -1
- readme.md +7 -0
- readme.txt +7 -0
- themeisle-companion.php +1 -1
- vendor/autoload.php +1 -1
- vendor/composer/InstalledVersions.php +19 -15
- vendor/composer/autoload_classmap.php +0 -1
- vendor/composer/autoload_real.php +7 -7
- vendor/composer/autoload_static.php +4 -5
- vendor/composer/installed.json +123 -36
- vendor/composer/installed.php +19 -15
- vendor/composer/platform_check.php +2 -2
- vendor/php-http/discovery/CHANGELOG.md +6 -77
- vendor/php-http/discovery/src/ClassDiscovery.php +1 -11
- vendor/php-http/discovery/src/Exception/NoCandidateFoundException.php +1 -0
- vendor/php-http/discovery/src/HttpAsyncClientDiscovery.php +5 -1
- vendor/php-http/discovery/src/HttpClientDiscovery.php +5 -1
- vendor/php-http/discovery/src/MessageFactoryDiscovery.php +5 -1
- vendor/php-http/discovery/src/Psr17FactoryDiscovery.php +1 -13
- vendor/php-http/discovery/src/Psr18ClientDiscovery.php +5 -1
- vendor/php-http/discovery/src/Strategy/CommonClassesStrategy.php +10 -70
- vendor/php-http/discovery/src/Strategy/CommonPsr17ClassesStrategy.php +0 -24
- vendor/php-http/discovery/src/Strategy/MockClientStrategy.php +7 -5
- vendor/php-http/discovery/src/StreamFactoryDiscovery.php +5 -1
- vendor/php-http/discovery/src/UriFactoryDiscovery.php +5 -1
- vendor/php-http/message/CHANGELOG.md +2 -32
- vendor/php-http/message/README.md +12 -1
- vendor/php-http/message/src/Authentication.php +4 -7
- vendor/php-http/message/src/Authentication/Header.php +0 -33
- vendor/php-http/message/src/Authentication/Matching.php +6 -1
- vendor/php-http/message/src/Authentication/QueryParam.php +3 -0
- vendor/php-http/message/src/Authentication/RequestConditional.php +4 -0
- vendor/php-http/message/src/Builder/ResponseBuilder.php +11 -9
- vendor/php-http/message/src/Cookie.php +6 -4
- vendor/php-http/message/src/CookieJar.php +10 -0
- vendor/php-http/message/src/CookieUtil.php +1 -1
- vendor/php-http/message/src/Decorator/RequestDecorator.php +2 -0
- vendor/php-http/message/src/Decorator/ResponseDecorator.php +2 -0
- vendor/php-http/message/src/Encoding/CompressStream.php +2 -1
- vendor/php-http/message/src/Encoding/DecompressStream.php +2 -1
- vendor/php-http/message/src/Encoding/DeflateStream.php +2 -1
- vendor/php-http/message/src/Encoding/FilteredStream.php +3 -2
- vendor/php-http/message/src/Encoding/GzipDecodeStream.php +2 -1
- vendor/php-http/message/src/Encoding/GzipEncodeStream.php +2 -1
- vendor/php-http/message/src/Encoding/InflateStream.php +2 -1
- vendor/php-http/message/src/Formatter.php +4 -0
- vendor/php-http/message/src/Formatter/CurlCommandFormatter.php +4 -6
- vendor/php-http/message/src/Formatter/FullHttpMessageFormatter.php +9 -18
- vendor/php-http/message/src/MessageFactory/DiactorosMessageFactory.php +1 -3
- vendor/php-http/message/src/MessageFactory/GuzzleMessageFactory.php +0 -2
- vendor/php-http/message/src/MessageFactory/SlimMessageFactory.php +2 -4
- vendor/php-http/message/src/RequestMatcher/CallbackRequestMatcher.php +3 -0
- vendor/php-http/message/src/StreamFactory/DiactorosStreamFactory.php +0 -2
- vendor/php-http/message/src/StreamFactory/GuzzleStreamFactory.php +0 -2
- vendor/php-http/message/src/StreamFactory/SlimStreamFactory.php +0 -2
- vendor/php-http/message/src/UriFactory/DiactorosUriFactory.php +0 -2
- vendor/php-http/message/src/UriFactory/GuzzleUriFactory.php +0 -2
- vendor/php-http/message/src/UriFactory/SlimUriFactory.php +0 -2
- vendor/php-http/promise/CHANGELOG.md +0 -13
- vendor/php-http/promise/README.md +3 -2
- vendor/php-http/promise/src/Promise.php +4 -4
CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
|
|
1 |
##### [Version 2.10.1](https://github.com/Codeinwp/themeisle-companion/compare/v2.10.0...v2.10.1) (2020-12-07)
|
2 |
|
3 |
- [Feat] New ascending/descending order option for Post Type Grid Elementor widget
|
1 |
+
##### [Version 2.10.2](https://github.com/Codeinwp/themeisle-companion/compare/v2.10.1...v2.10.2) (2020-12-09)
|
2 |
+
|
3 |
+
- [Fix] Fatal error on older versions of PHP
|
4 |
+
|
5 |
##### [Version 2.10.1](https://github.com/Codeinwp/themeisle-companion/compare/v2.10.0...v2.10.1) (2020-12-07)
|
6 |
|
7 |
- [Feat] New ascending/descending order option for Post Type Grid Elementor widget
|
core/includes/class-orbit-fox.php
CHANGED
@@ -69,7 +69,7 @@ class Orbit_Fox {
|
|
69 |
|
70 |
$this->plugin_name = 'orbit-fox';
|
71 |
|
72 |
-
$this->version = '2.10.
|
73 |
|
74 |
$this->load_dependencies();
|
75 |
$this->set_locale();
|
69 |
|
70 |
$this->plugin_name = 'orbit-fox';
|
71 |
|
72 |
+
$this->version = '2.10.2';
|
73 |
|
74 |
$this->load_dependencies();
|
75 |
$this->set_locale();
|
readme.md
CHANGED
@@ -109,6 +109,13 @@ Activating the Orbit Fox plugin is just like any other plugin. If you've uploade
|
|
109 |
|
110 |
## Changelog ##
|
111 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
##### [Version 2.10.1](https://github.com/Codeinwp/themeisle-companion/compare/v2.10.0...v2.10.1) (2020-12-07)
|
113 |
|
114 |
- [Feat] New ascending/descending order option for Post Type Grid Elementor widget
|
109 |
|
110 |
## Changelog ##
|
111 |
|
112 |
+
##### [Version 2.10.2](https://github.com/Codeinwp/themeisle-companion/compare/v2.10.1...v2.10.2) (2020-12-09)
|
113 |
+
|
114 |
+
- [Fix] Fatal error on older versions of PHP
|
115 |
+
|
116 |
+
|
117 |
+
|
118 |
+
|
119 |
##### [Version 2.10.1](https://github.com/Codeinwp/themeisle-companion/compare/v2.10.0...v2.10.1) (2020-12-07)
|
120 |
|
121 |
- [Feat] New ascending/descending order option for Post Type Grid Elementor widget
|
readme.txt
CHANGED
@@ -109,6 +109,13 @@ Activating the Orbit Fox plugin is just like any other plugin. If you've uploade
|
|
109 |
|
110 |
== Changelog ==
|
111 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
##### [Version 2.10.1](https://github.com/Codeinwp/themeisle-companion/compare/v2.10.0...v2.10.1) (2020-12-07)
|
113 |
|
114 |
- [Feat] New ascending/descending order option for Post Type Grid Elementor widget
|
109 |
|
110 |
== Changelog ==
|
111 |
|
112 |
+
##### [Version 2.10.2](https://github.com/Codeinwp/themeisle-companion/compare/v2.10.1...v2.10.2) (2020-12-09)
|
113 |
+
|
114 |
+
- [Fix] Fatal error on older versions of PHP
|
115 |
+
|
116 |
+
|
117 |
+
|
118 |
+
|
119 |
##### [Version 2.10.1](https://github.com/Codeinwp/themeisle-companion/compare/v2.10.0...v2.10.1) (2020-12-07)
|
120 |
|
121 |
- [Feat] New ascending/descending order option for Post Type Grid Elementor widget
|
themeisle-companion.php
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
* Plugin Name: Orbit Fox Companion
|
16 |
* Plugin URI: https://orbitfox.com/
|
17 |
* Description: This swiss-knife plugin comes with a quality template library, menu/sharing icons modules, Gutenberg blocks, and newly added Elementor/BeaverBuilder page builder widgets on each release.
|
18 |
-
* Version: 2.10.
|
19 |
* Author: Themeisle
|
20 |
* Author URI: https://orbitfox.com/
|
21 |
* License: GPL-2.0+
|
15 |
* Plugin Name: Orbit Fox Companion
|
16 |
* Plugin URI: https://orbitfox.com/
|
17 |
* Description: This swiss-knife plugin comes with a quality template library, menu/sharing icons modules, Gutenberg blocks, and newly added Elementor/BeaverBuilder page builder widgets on each release.
|
18 |
+
* Version: 2.10.2
|
19 |
* Author: Themeisle
|
20 |
* Author URI: https://orbitfox.com/
|
21 |
* License: GPL-2.0+
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit6110d7e9e9ed0ec7a5cf3981e5d2d9e6::getLoader();
|
vendor/composer/InstalledVersions.php
CHANGED
@@ -14,12 +14,12 @@ class InstalledVersions
|
|
14 |
private static $installed = array (
|
15 |
'root' =>
|
16 |
array (
|
17 |
-
'pretty_version' => 'v2.10.
|
18 |
-
'version' => '2.10.
|
19 |
'aliases' =>
|
20 |
array (
|
21 |
),
|
22 |
-
'reference' => '
|
23 |
'name' => 'codeinwp/themeisle-companion',
|
24 |
),
|
25 |
'versions' =>
|
@@ -39,6 +39,7 @@ private static $installed = array (
|
|
39 |
'version' => 'dev-master',
|
40 |
'aliases' =>
|
41 |
array (
|
|
|
42 |
),
|
43 |
'reference' => 'a76b4de7df500baff306113b415b076f3120e00c',
|
44 |
),
|
@@ -48,6 +49,7 @@ private static $installed = array (
|
|
48 |
'version' => 'dev-master',
|
49 |
'aliases' =>
|
50 |
array (
|
|
|
51 |
),
|
52 |
'reference' => 'ac15bbb1295d39baf28978c7d9c04fed21ea3429',
|
53 |
),
|
@@ -66,17 +68,18 @@ private static $installed = array (
|
|
66 |
'version' => 'dev-master',
|
67 |
'aliases' =>
|
68 |
array (
|
|
|
69 |
),
|
70 |
'reference' => '18e8b64784457e3851bc79203e1306b6057d4d69',
|
71 |
),
|
72 |
'codeinwp/themeisle-companion' =>
|
73 |
array (
|
74 |
-
'pretty_version' => 'v2.10.
|
75 |
-
'version' => '2.10.
|
76 |
'aliases' =>
|
77 |
array (
|
78 |
),
|
79 |
-
'reference' => '
|
80 |
),
|
81 |
'codeinwp/themeisle-content-forms' =>
|
82 |
array (
|
@@ -84,6 +87,7 @@ private static $installed = array (
|
|
84 |
'version' => 'dev-master',
|
85 |
'aliases' =>
|
86 |
array (
|
|
|
87 |
),
|
88 |
'reference' => 'ded68c965396999459cce58139fd299a979700e1',
|
89 |
),
|
@@ -148,12 +152,12 @@ private static $installed = array (
|
|
148 |
),
|
149 |
'php-http/discovery' =>
|
150 |
array (
|
151 |
-
'pretty_version' => '1.
|
152 |
-
'version' => '1.
|
153 |
'aliases' =>
|
154 |
array (
|
155 |
),
|
156 |
-
'reference' => '
|
157 |
),
|
158 |
'php-http/httplug' =>
|
159 |
array (
|
@@ -166,12 +170,12 @@ private static $installed = array (
|
|
166 |
),
|
167 |
'php-http/message' =>
|
168 |
array (
|
169 |
-
'pretty_version' => '1.
|
170 |
-
'version' => '1.
|
171 |
'aliases' =>
|
172 |
array (
|
173 |
),
|
174 |
-
'reference' => '
|
175 |
),
|
176 |
'php-http/message-factory' =>
|
177 |
array (
|
@@ -191,12 +195,12 @@ private static $installed = array (
|
|
191 |
),
|
192 |
'php-http/promise' =>
|
193 |
array (
|
194 |
-
'pretty_version' => '
|
195 |
-
'version' => '1.
|
196 |
'aliases' =>
|
197 |
array (
|
198 |
),
|
199 |
-
'reference' => '
|
200 |
),
|
201 |
'psr/http-message' =>
|
202 |
array (
|
14 |
private static $installed = array (
|
15 |
'root' =>
|
16 |
array (
|
17 |
+
'pretty_version' => 'v2.10.2',
|
18 |
+
'version' => '2.10.2.0',
|
19 |
'aliases' =>
|
20 |
array (
|
21 |
),
|
22 |
+
'reference' => '66f05a6ffb0703b0630b1430a081bf5acfc3532e',
|
23 |
'name' => 'codeinwp/themeisle-companion',
|
24 |
),
|
25 |
'versions' =>
|
39 |
'version' => 'dev-master',
|
40 |
'aliases' =>
|
41 |
array (
|
42 |
+
0 => '9999999-dev',
|
43 |
),
|
44 |
'reference' => 'a76b4de7df500baff306113b415b076f3120e00c',
|
45 |
),
|
49 |
'version' => 'dev-master',
|
50 |
'aliases' =>
|
51 |
array (
|
52 |
+
0 => '9999999-dev',
|
53 |
),
|
54 |
'reference' => 'ac15bbb1295d39baf28978c7d9c04fed21ea3429',
|
55 |
),
|
68 |
'version' => 'dev-master',
|
69 |
'aliases' =>
|
70 |
array (
|
71 |
+
0 => '9999999-dev',
|
72 |
),
|
73 |
'reference' => '18e8b64784457e3851bc79203e1306b6057d4d69',
|
74 |
),
|
75 |
'codeinwp/themeisle-companion' =>
|
76 |
array (
|
77 |
+
'pretty_version' => 'v2.10.2',
|
78 |
+
'version' => '2.10.2.0',
|
79 |
'aliases' =>
|
80 |
array (
|
81 |
),
|
82 |
+
'reference' => '66f05a6ffb0703b0630b1430a081bf5acfc3532e',
|
83 |
),
|
84 |
'codeinwp/themeisle-content-forms' =>
|
85 |
array (
|
87 |
'version' => 'dev-master',
|
88 |
'aliases' =>
|
89 |
array (
|
90 |
+
0 => '9999999-dev',
|
91 |
),
|
92 |
'reference' => 'ded68c965396999459cce58139fd299a979700e1',
|
93 |
),
|
152 |
),
|
153 |
'php-http/discovery' =>
|
154 |
array (
|
155 |
+
'pretty_version' => '1.6.1',
|
156 |
+
'version' => '1.6.1.0',
|
157 |
'aliases' =>
|
158 |
array (
|
159 |
),
|
160 |
+
'reference' => '684855f2c2e9d0a61868b8f8d6bd0295c8a4b651',
|
161 |
),
|
162 |
'php-http/httplug' =>
|
163 |
array (
|
170 |
),
|
171 |
'php-http/message' =>
|
172 |
array (
|
173 |
+
'pretty_version' => '1.7.2',
|
174 |
+
'version' => '1.7.2.0',
|
175 |
'aliases' =>
|
176 |
array (
|
177 |
),
|
178 |
+
'reference' => 'b159ffe570dffd335e22ef0b91a946eacb182fa1',
|
179 |
),
|
180 |
'php-http/message-factory' =>
|
181 |
array (
|
195 |
),
|
196 |
'php-http/promise' =>
|
197 |
array (
|
198 |
+
'pretty_version' => 'v1.0.0',
|
199 |
+
'version' => '1.0.0.0',
|
200 |
'aliases' =>
|
201 |
array (
|
202 |
),
|
203 |
+
'reference' => 'dc494cdc9d7160b9a09bd5573272195242ce7980',
|
204 |
),
|
205 |
'psr/http-message' =>
|
206 |
array (
|
vendor/composer/autoload_classmap.php
CHANGED
@@ -76,7 +76,6 @@ return array(
|
|
76 |
'Http\\Message\\Authentication\\BasicAuth' => $vendorDir . '/php-http/message/src/Authentication/BasicAuth.php',
|
77 |
'Http\\Message\\Authentication\\Bearer' => $vendorDir . '/php-http/message/src/Authentication/Bearer.php',
|
78 |
'Http\\Message\\Authentication\\Chain' => $vendorDir . '/php-http/message/src/Authentication/Chain.php',
|
79 |
-
'Http\\Message\\Authentication\\Header' => $vendorDir . '/php-http/message/src/Authentication/Header.php',
|
80 |
'Http\\Message\\Authentication\\Matching' => $vendorDir . '/php-http/message/src/Authentication/Matching.php',
|
81 |
'Http\\Message\\Authentication\\QueryParam' => $vendorDir . '/php-http/message/src/Authentication/QueryParam.php',
|
82 |
'Http\\Message\\Authentication\\RequestConditional' => $vendorDir . '/php-http/message/src/Authentication/RequestConditional.php',
|
76 |
'Http\\Message\\Authentication\\BasicAuth' => $vendorDir . '/php-http/message/src/Authentication/BasicAuth.php',
|
77 |
'Http\\Message\\Authentication\\Bearer' => $vendorDir . '/php-http/message/src/Authentication/Bearer.php',
|
78 |
'Http\\Message\\Authentication\\Chain' => $vendorDir . '/php-http/message/src/Authentication/Chain.php',
|
|
|
79 |
'Http\\Message\\Authentication\\Matching' => $vendorDir . '/php-http/message/src/Authentication/Matching.php',
|
80 |
'Http\\Message\\Authentication\\QueryParam' => $vendorDir . '/php-http/message/src/Authentication/QueryParam.php',
|
81 |
'Http\\Message\\Authentication\\RequestConditional' => $vendorDir . '/php-http/message/src/Authentication/RequestConditional.php',
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -24,15 +24,15 @@ class ComposerAutoloaderInit71b299a60dde06c47c68e3b1c10e2280
|
|
24 |
|
25 |
require __DIR__ . '/platform_check.php';
|
26 |
|
27 |
-
spl_autoload_register(array('
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
29 |
-
spl_autoload_unregister(array('
|
30 |
|
31 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
32 |
if ($useStaticLoader) {
|
33 |
require __DIR__ . '/autoload_static.php';
|
34 |
|
35 |
-
call_user_func(\Composer\Autoload\
|
36 |
} else {
|
37 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
38 |
foreach ($map as $namespace => $path) {
|
@@ -53,19 +53,19 @@ class ComposerAutoloaderInit71b299a60dde06c47c68e3b1c10e2280
|
|
53 |
$loader->register(true);
|
54 |
|
55 |
if ($useStaticLoader) {
|
56 |
-
$includeFiles = Composer\Autoload\
|
57 |
} else {
|
58 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
59 |
}
|
60 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
61 |
-
|
62 |
}
|
63 |
|
64 |
return $loader;
|
65 |
}
|
66 |
}
|
67 |
|
68 |
-
function
|
69 |
{
|
70 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
71 |
require $file;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit6110d7e9e9ed0ec7a5cf3981e5d2d9e6
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
24 |
|
25 |
require __DIR__ . '/platform_check.php';
|
26 |
|
27 |
+
spl_autoload_register(array('ComposerAutoloaderInit6110d7e9e9ed0ec7a5cf3981e5d2d9e6', 'loadClassLoader'), true, true);
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
29 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit6110d7e9e9ed0ec7a5cf3981e5d2d9e6', 'loadClassLoader'));
|
30 |
|
31 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
32 |
if ($useStaticLoader) {
|
33 |
require __DIR__ . '/autoload_static.php';
|
34 |
|
35 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit6110d7e9e9ed0ec7a5cf3981e5d2d9e6::getInitializer($loader));
|
36 |
} else {
|
37 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
38 |
foreach ($map as $namespace => $path) {
|
53 |
$loader->register(true);
|
54 |
|
55 |
if ($useStaticLoader) {
|
56 |
+
$includeFiles = Composer\Autoload\ComposerStaticInit6110d7e9e9ed0ec7a5cf3981e5d2d9e6::$files;
|
57 |
} else {
|
58 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
59 |
}
|
60 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
61 |
+
composerRequire6110d7e9e9ed0ec7a5cf3981e5d2d9e6($fileIdentifier, $file);
|
62 |
}
|
63 |
|
64 |
return $loader;
|
65 |
}
|
66 |
}
|
67 |
|
68 |
+
function composerRequire6110d7e9e9ed0ec7a5cf3981e5d2d9e6($fileIdentifier, $file)
|
69 |
{
|
70 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
71 |
require $file;
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php',
|
@@ -170,7 +170,6 @@ class ComposerStaticInit71b299a60dde06c47c68e3b1c10e2280
|
|
170 |
'Http\\Message\\Authentication\\BasicAuth' => __DIR__ . '/..' . '/php-http/message/src/Authentication/BasicAuth.php',
|
171 |
'Http\\Message\\Authentication\\Bearer' => __DIR__ . '/..' . '/php-http/message/src/Authentication/Bearer.php',
|
172 |
'Http\\Message\\Authentication\\Chain' => __DIR__ . '/..' . '/php-http/message/src/Authentication/Chain.php',
|
173 |
-
'Http\\Message\\Authentication\\Header' => __DIR__ . '/..' . '/php-http/message/src/Authentication/Header.php',
|
174 |
'Http\\Message\\Authentication\\Matching' => __DIR__ . '/..' . '/php-http/message/src/Authentication/Matching.php',
|
175 |
'Http\\Message\\Authentication\\QueryParam' => __DIR__ . '/..' . '/php-http/message/src/Authentication/QueryParam.php',
|
176 |
'Http\\Message\\Authentication\\RequestConditional' => __DIR__ . '/..' . '/php-http/message/src/Authentication/RequestConditional.php',
|
@@ -270,9 +269,9 @@ class ComposerStaticInit71b299a60dde06c47c68e3b1c10e2280
|
|
270 |
public static function getInitializer(ClassLoader $loader)
|
271 |
{
|
272 |
return \Closure::bind(function () use ($loader) {
|
273 |
-
$loader->prefixLengthsPsr4 =
|
274 |
-
$loader->prefixDirsPsr4 =
|
275 |
-
$loader->classMap =
|
276 |
|
277 |
}, null, ClassLoader::class);
|
278 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit6110d7e9e9ed0ec7a5cf3981e5d2d9e6
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php',
|
170 |
'Http\\Message\\Authentication\\BasicAuth' => __DIR__ . '/..' . '/php-http/message/src/Authentication/BasicAuth.php',
|
171 |
'Http\\Message\\Authentication\\Bearer' => __DIR__ . '/..' . '/php-http/message/src/Authentication/Bearer.php',
|
172 |
'Http\\Message\\Authentication\\Chain' => __DIR__ . '/..' . '/php-http/message/src/Authentication/Chain.php',
|
|
|
173 |
'Http\\Message\\Authentication\\Matching' => __DIR__ . '/..' . '/php-http/message/src/Authentication/Matching.php',
|
174 |
'Http\\Message\\Authentication\\QueryParam' => __DIR__ . '/..' . '/php-http/message/src/Authentication/QueryParam.php',
|
175 |
'Http\\Message\\Authentication\\RequestConditional' => __DIR__ . '/..' . '/php-http/message/src/Authentication/RequestConditional.php',
|
269 |
public static function getInitializer(ClassLoader $loader)
|
270 |
{
|
271 |
return \Closure::bind(function () use ($loader) {
|
272 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit6110d7e9e9ed0ec7a5cf3981e5d2d9e6::$prefixLengthsPsr4;
|
273 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit6110d7e9e9ed0ec7a5cf3981e5d2d9e6::$prefixDirsPsr4;
|
274 |
+
$loader->classMap = ComposerStaticInit6110d7e9e9ed0ec7a5cf3981e5d2d9e6::$classMap;
|
275 |
|
276 |
}, null, ClassLoader::class);
|
277 |
}
|
vendor/composer/installed.json
CHANGED
@@ -53,6 +53,20 @@
|
|
53 |
"stream_filter_append",
|
54 |
"stream_filter_register"
|
55 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
"install-path": "../clue/stream-filter"
|
57 |
},
|
58 |
{
|
@@ -71,6 +85,7 @@
|
|
71 |
"shasum": ""
|
72 |
},
|
73 |
"time": "2020-11-04T14:08:22+00:00",
|
|
|
74 |
"type": "library",
|
75 |
"installation-source": "dist",
|
76 |
"autoload": {
|
@@ -90,6 +105,10 @@
|
|
90 |
}
|
91 |
],
|
92 |
"homepage": "https://github.com/Codeinwp/elementor-extra-widgets",
|
|
|
|
|
|
|
|
|
93 |
"install-path": "../codeinwp/elementor-extra-widgets"
|
94 |
},
|
95 |
{
|
@@ -108,6 +127,7 @@
|
|
108 |
"shasum": ""
|
109 |
},
|
110 |
"time": "2019-04-02T11:34:00+00:00",
|
|
|
111 |
"type": "library",
|
112 |
"installation-source": "dist",
|
113 |
"autoload": {
|
@@ -128,6 +148,10 @@
|
|
128 |
],
|
129 |
"description": "A WordPress library to create full width page templates.",
|
130 |
"homepage": "https://github.com/Codeinwp/full-width-page-templates",
|
|
|
|
|
|
|
|
|
131 |
"install-path": "../codeinwp/full-width-page-templates"
|
132 |
},
|
133 |
{
|
@@ -175,6 +199,10 @@
|
|
175 |
],
|
176 |
"description": "A set of awesome Gutenberg Blocks!",
|
177 |
"homepage": "https://github.com/Codeinwp/gutenberg-blocks",
|
|
|
|
|
|
|
|
|
178 |
"install-path": "../codeinwp/gutenberg-blocks"
|
179 |
},
|
180 |
{
|
@@ -196,6 +224,7 @@
|
|
196 |
"codeinwp/full-width-page-templates": "master"
|
197 |
},
|
198 |
"time": "2018-12-12T21:50:20+00:00",
|
|
|
199 |
"type": "library",
|
200 |
"installation-source": "dist",
|
201 |
"autoload": {
|
@@ -216,6 +245,10 @@
|
|
216 |
],
|
217 |
"description": "A WordPress library to manage page templates.",
|
218 |
"homepage": "https://github.com/Codeinwp/templates-directory",
|
|
|
|
|
|
|
|
|
219 |
"install-path": "../codeinwp/templates-directory"
|
220 |
},
|
221 |
{
|
@@ -241,6 +274,7 @@
|
|
241 |
"wptrt/wpthemereview": "*"
|
242 |
},
|
243 |
"time": "2020-09-02T08:24:53+00:00",
|
|
|
244 |
"type": "library",
|
245 |
"installation-source": "dist",
|
246 |
"autoload": {
|
@@ -261,6 +295,10 @@
|
|
261 |
],
|
262 |
"description": "ThemeIsle Content Forms.",
|
263 |
"homepage": "https://github.com/Codeinwp/themeisle-content-forms",
|
|
|
|
|
|
|
|
|
264 |
"install-path": "../codeinwp/themeisle-content-forms"
|
265 |
},
|
266 |
{
|
@@ -304,6 +342,10 @@
|
|
304 |
"keywords": [
|
305 |
"wordpress"
|
306 |
],
|
|
|
|
|
|
|
|
|
307 |
"install-path": "../codeinwp/themeisle-sdk"
|
308 |
},
|
309 |
{
|
@@ -378,6 +420,10 @@
|
|
378 |
"uri",
|
379 |
"url"
|
380 |
],
|
|
|
|
|
|
|
|
|
381 |
"install-path": "../guzzlehttp/psr7"
|
382 |
},
|
383 |
{
|
@@ -427,6 +473,10 @@
|
|
427 |
"marketing",
|
428 |
"sdk"
|
429 |
],
|
|
|
|
|
|
|
|
|
430 |
"install-path": "../mailerlite/mailerlite-api-v2-php-sdk"
|
431 |
},
|
432 |
{
|
@@ -495,6 +545,10 @@
|
|
495 |
"serializer",
|
496 |
"xml"
|
497 |
],
|
|
|
|
|
|
|
|
|
498 |
"install-path": "../masterminds/html5"
|
499 |
},
|
500 |
{
|
@@ -554,45 +608,48 @@
|
|
554 |
"curl",
|
555 |
"http"
|
556 |
],
|
|
|
|
|
|
|
|
|
557 |
"install-path": "../php-http/curl-client"
|
558 |
},
|
559 |
{
|
560 |
"name": "php-http/discovery",
|
561 |
-
"version": "1.
|
562 |
-
"version_normalized": "1.
|
563 |
"source": {
|
564 |
"type": "git",
|
565 |
"url": "https://github.com/php-http/discovery.git",
|
566 |
-
"reference": "
|
567 |
},
|
568 |
"dist": {
|
569 |
"type": "zip",
|
570 |
-
"url": "https://api.github.com/repos/php-http/discovery/zipball/
|
571 |
-
"reference": "
|
572 |
"shasum": ""
|
573 |
},
|
574 |
"require": {
|
575 |
-
"php": "^
|
576 |
},
|
577 |
"conflict": {
|
578 |
"nyholm/psr7": "<1.0"
|
579 |
},
|
580 |
"require-dev": {
|
581 |
-
"graham-campbell/phpspec-skip-example-extension": "^5.0",
|
582 |
"php-http/httplug": "^1.0 || ^2.0",
|
583 |
"php-http/message-factory": "^1.0",
|
584 |
-
"phpspec/phpspec": "^
|
585 |
"puli/composer-plugin": "1.0.0-beta10"
|
586 |
},
|
587 |
"suggest": {
|
588 |
"php-http/message": "Allow to use Guzzle, Diactoros or Slim Framework factories",
|
589 |
"puli/composer-plugin": "Sets up Puli which is recommended for Discovery to work. Check http://docs.php-http.org/en/latest/discovery.html for more details."
|
590 |
},
|
591 |
-
"time": "
|
592 |
"type": "library",
|
593 |
"extra": {
|
594 |
"branch-alias": {
|
595 |
-
"dev-master": "1.
|
596 |
}
|
597 |
},
|
598 |
"installation-source": "dist",
|
@@ -622,6 +679,10 @@
|
|
622 |
"message",
|
623 |
"psr7"
|
624 |
],
|
|
|
|
|
|
|
|
|
625 |
"install-path": "../php-http/discovery"
|
626 |
},
|
627 |
{
|
@@ -681,26 +742,30 @@
|
|
681 |
"client",
|
682 |
"http"
|
683 |
],
|
|
|
|
|
|
|
|
|
684 |
"install-path": "../php-http/httplug"
|
685 |
},
|
686 |
{
|
687 |
"name": "php-http/message",
|
688 |
-
"version": "1.
|
689 |
-
"version_normalized": "1.
|
690 |
"source": {
|
691 |
"type": "git",
|
692 |
"url": "https://github.com/php-http/message.git",
|
693 |
-
"reference": "
|
694 |
},
|
695 |
"dist": {
|
696 |
"type": "zip",
|
697 |
-
"url": "https://api.github.com/repos/php-http/message/zipball/
|
698 |
-
"reference": "
|
699 |
"shasum": ""
|
700 |
},
|
701 |
"require": {
|
702 |
-
"clue/stream-filter": "^1.
|
703 |
-
"php": "^
|
704 |
"php-http/message-factory": "^1.0.2",
|
705 |
"psr/http-message": "^1.0"
|
706 |
},
|
@@ -708,10 +773,12 @@
|
|
708 |
"php-http/message-factory-implementation": "1.0"
|
709 |
},
|
710 |
"require-dev": {
|
711 |
-
"
|
|
|
712 |
"ext-zlib": "*",
|
713 |
"guzzlehttp/psr7": "^1.0",
|
714 |
-
"
|
|
|
715 |
"slim/slim": "^3.0",
|
716 |
"zendframework/zend-diactoros": "^1.0"
|
717 |
},
|
@@ -721,11 +788,11 @@
|
|
721 |
"slim/slim": "Used with Slim Framework PSR-7 implementation",
|
722 |
"zendframework/zend-diactoros": "Used with Diactoros Factories"
|
723 |
},
|
724 |
-
"time": "
|
725 |
"type": "library",
|
726 |
"extra": {
|
727 |
"branch-alias": {
|
728 |
-
"dev-master": "1.
|
729 |
}
|
730 |
},
|
731 |
"installation-source": "dist",
|
@@ -754,6 +821,10 @@
|
|
754 |
"message",
|
755 |
"psr-7"
|
756 |
],
|
|
|
|
|
|
|
|
|
757 |
"install-path": "../php-http/message"
|
758 |
},
|
759 |
{
|
@@ -807,31 +878,32 @@
|
|
807 |
"stream",
|
808 |
"uri"
|
809 |
],
|
|
|
|
|
|
|
|
|
810 |
"install-path": "../php-http/message-factory"
|
811 |
},
|
812 |
{
|
813 |
"name": "php-http/promise",
|
814 |
-
"version": "
|
815 |
-
"version_normalized": "1.
|
816 |
"source": {
|
817 |
"type": "git",
|
818 |
"url": "https://github.com/php-http/promise.git",
|
819 |
-
"reference": "
|
820 |
},
|
821 |
"dist": {
|
822 |
"type": "zip",
|
823 |
-
"url": "https://api.github.com/repos/php-http/promise/zipball/
|
824 |
-
"reference": "
|
825 |
"shasum": ""
|
826 |
},
|
827 |
-
"require": {
|
828 |
-
"php": "^7.1 || ^8.0"
|
829 |
-
},
|
830 |
"require-dev": {
|
831 |
-
"
|
832 |
-
"phpspec/phpspec": "^
|
833 |
},
|
834 |
-
"time": "
|
835 |
"type": "library",
|
836 |
"extra": {
|
837 |
"branch-alias": {
|
@@ -849,13 +921,13 @@
|
|
849 |
"MIT"
|
850 |
],
|
851 |
"authors": [
|
852 |
-
{
|
853 |
-
"name": "Joel Wurtz",
|
854 |
-
"email": "joel.wurtz@gmail.com"
|
855 |
-
},
|
856 |
{
|
857 |
"name": "Márk Sági-Kazár",
|
858 |
"email": "mark.sagikazar@gmail.com"
|
|
|
|
|
|
|
|
|
859 |
}
|
860 |
],
|
861 |
"description": "Promise used for asynchronous HTTP requests",
|
@@ -863,6 +935,10 @@
|
|
863 |
"keywords": [
|
864 |
"promise"
|
865 |
],
|
|
|
|
|
|
|
|
|
866 |
"install-path": "../php-http/promise"
|
867 |
},
|
868 |
{
|
@@ -916,6 +992,9 @@
|
|
916 |
"request",
|
917 |
"response"
|
918 |
],
|
|
|
|
|
|
|
919 |
"install-path": "../psr/http-message"
|
920 |
},
|
921 |
{
|
@@ -959,6 +1038,10 @@
|
|
959 |
}
|
960 |
],
|
961 |
"description": "A polyfill for getallheaders.",
|
|
|
|
|
|
|
|
|
962 |
"install-path": "../ralouphie/getallheaders"
|
963 |
},
|
964 |
{
|
@@ -1015,6 +1098,10 @@
|
|
1015 |
"minify",
|
1016 |
"yui"
|
1017 |
],
|
|
|
|
|
|
|
|
|
1018 |
"install-path": "../tubalmartin/cssmin"
|
1019 |
}
|
1020 |
],
|
53 |
"stream_filter_append",
|
54 |
"stream_filter_register"
|
55 |
],
|
56 |
+
"support": {
|
57 |
+
"issues": "https://github.com/clue/php-stream-filter/issues",
|
58 |
+
"source": "https://github.com/clue/php-stream-filter/tree/v1.5.0"
|
59 |
+
},
|
60 |
+
"funding": [
|
61 |
+
{
|
62 |
+
"url": "https://clue.engineering/support",
|
63 |
+
"type": "custom"
|
64 |
+
},
|
65 |
+
{
|
66 |
+
"url": "https://github.com/clue",
|
67 |
+
"type": "github"
|
68 |
+
}
|
69 |
+
],
|
70 |
"install-path": "../clue/stream-filter"
|
71 |
},
|
72 |
{
|
85 |
"shasum": ""
|
86 |
},
|
87 |
"time": "2020-11-04T14:08:22+00:00",
|
88 |
+
"default-branch": true,
|
89 |
"type": "library",
|
90 |
"installation-source": "dist",
|
91 |
"autoload": {
|
105 |
}
|
106 |
],
|
107 |
"homepage": "https://github.com/Codeinwp/elementor-extra-widgets",
|
108 |
+
"support": {
|
109 |
+
"issues": "https://github.com/Codeinwp/elementor-extra-widgets/issues",
|
110 |
+
"source": "https://github.com/Codeinwp/elementor-extra-widgets/tree/master"
|
111 |
+
},
|
112 |
"install-path": "../codeinwp/elementor-extra-widgets"
|
113 |
},
|
114 |
{
|
127 |
"shasum": ""
|
128 |
},
|
129 |
"time": "2019-04-02T11:34:00+00:00",
|
130 |
+
"default-branch": true,
|
131 |
"type": "library",
|
132 |
"installation-source": "dist",
|
133 |
"autoload": {
|
148 |
],
|
149 |
"description": "A WordPress library to create full width page templates.",
|
150 |
"homepage": "https://github.com/Codeinwp/full-width-page-templates",
|
151 |
+
"support": {
|
152 |
+
"issues": "https://github.com/Codeinwp/full-width-page-templates/issues",
|
153 |
+
"source": "https://github.com/Codeinwp/full-width-page-templates/tree/master"
|
154 |
+
},
|
155 |
"install-path": "../codeinwp/full-width-page-templates"
|
156 |
},
|
157 |
{
|
199 |
],
|
200 |
"description": "A set of awesome Gutenberg Blocks!",
|
201 |
"homepage": "https://github.com/Codeinwp/gutenberg-blocks",
|
202 |
+
"support": {
|
203 |
+
"issues": "https://github.com/Codeinwp/gutenberg-blocks/issues",
|
204 |
+
"source": "https://github.com/Codeinwp/gutenberg-blocks/tree/v1.5.10"
|
205 |
+
},
|
206 |
"install-path": "../codeinwp/gutenberg-blocks"
|
207 |
},
|
208 |
{
|
224 |
"codeinwp/full-width-page-templates": "master"
|
225 |
},
|
226 |
"time": "2018-12-12T21:50:20+00:00",
|
227 |
+
"default-branch": true,
|
228 |
"type": "library",
|
229 |
"installation-source": "dist",
|
230 |
"autoload": {
|
245 |
],
|
246 |
"description": "A WordPress library to manage page templates.",
|
247 |
"homepage": "https://github.com/Codeinwp/templates-directory",
|
248 |
+
"support": {
|
249 |
+
"issues": "https://github.com/Codeinwp/templates-directory/issues",
|
250 |
+
"source": "https://github.com/Codeinwp/templates-directory/tree/master"
|
251 |
+
},
|
252 |
"install-path": "../codeinwp/templates-directory"
|
253 |
},
|
254 |
{
|
274 |
"wptrt/wpthemereview": "*"
|
275 |
},
|
276 |
"time": "2020-09-02T08:24:53+00:00",
|
277 |
+
"default-branch": true,
|
278 |
"type": "library",
|
279 |
"installation-source": "dist",
|
280 |
"autoload": {
|
295 |
],
|
296 |
"description": "ThemeIsle Content Forms.",
|
297 |
"homepage": "https://github.com/Codeinwp/themeisle-content-forms",
|
298 |
+
"support": {
|
299 |
+
"issues": "https://github.com/Codeinwp/themeisle-content-forms/issues",
|
300 |
+
"source": "https://github.com/Codeinwp/themeisle-content-forms/tree/master"
|
301 |
+
},
|
302 |
"install-path": "../codeinwp/themeisle-content-forms"
|
303 |
},
|
304 |
{
|
342 |
"keywords": [
|
343 |
"wordpress"
|
344 |
],
|
345 |
+
"support": {
|
346 |
+
"issues": "https://github.com/Codeinwp/themeisle-sdk/issues",
|
347 |
+
"source": "https://github.com/Codeinwp/themeisle-sdk/tree/v3.2.16"
|
348 |
+
},
|
349 |
"install-path": "../codeinwp/themeisle-sdk"
|
350 |
},
|
351 |
{
|
420 |
"uri",
|
421 |
"url"
|
422 |
],
|
423 |
+
"support": {
|
424 |
+
"issues": "https://github.com/guzzle/psr7/issues",
|
425 |
+
"source": "https://github.com/guzzle/psr7/tree/1.7.0"
|
426 |
+
},
|
427 |
"install-path": "../guzzlehttp/psr7"
|
428 |
},
|
429 |
{
|
473 |
"marketing",
|
474 |
"sdk"
|
475 |
],
|
476 |
+
"support": {
|
477 |
+
"issues": "https://github.com/mailerlite/mailerlite-api-v2-php-sdk/issues",
|
478 |
+
"source": "https://github.com/mailerlite/mailerlite-api-v2-php-sdk/tree/master"
|
479 |
+
},
|
480 |
"install-path": "../mailerlite/mailerlite-api-v2-php-sdk"
|
481 |
},
|
482 |
{
|
545 |
"serializer",
|
546 |
"xml"
|
547 |
],
|
548 |
+
"support": {
|
549 |
+
"issues": "https://github.com/Masterminds/html5-php/issues",
|
550 |
+
"source": "https://github.com/Masterminds/html5-php/tree/2.7.4"
|
551 |
+
},
|
552 |
"install-path": "../masterminds/html5"
|
553 |
},
|
554 |
{
|
608 |
"curl",
|
609 |
"http"
|
610 |
],
|
611 |
+
"support": {
|
612 |
+
"issues": "https://github.com/php-http/curl-client/issues",
|
613 |
+
"source": "https://github.com/php-http/curl-client/tree/v1.7.1"
|
614 |
+
},
|
615 |
"install-path": "../php-http/curl-client"
|
616 |
},
|
617 |
{
|
618 |
"name": "php-http/discovery",
|
619 |
+
"version": "1.6.1",
|
620 |
+
"version_normalized": "1.6.1.0",
|
621 |
"source": {
|
622 |
"type": "git",
|
623 |
"url": "https://github.com/php-http/discovery.git",
|
624 |
+
"reference": "684855f2c2e9d0a61868b8f8d6bd0295c8a4b651"
|
625 |
},
|
626 |
"dist": {
|
627 |
"type": "zip",
|
628 |
+
"url": "https://api.github.com/repos/php-http/discovery/zipball/684855f2c2e9d0a61868b8f8d6bd0295c8a4b651",
|
629 |
+
"reference": "684855f2c2e9d0a61868b8f8d6bd0295c8a4b651",
|
630 |
"shasum": ""
|
631 |
},
|
632 |
"require": {
|
633 |
+
"php": "^5.5 || ^7.0"
|
634 |
},
|
635 |
"conflict": {
|
636 |
"nyholm/psr7": "<1.0"
|
637 |
},
|
638 |
"require-dev": {
|
|
|
639 |
"php-http/httplug": "^1.0 || ^2.0",
|
640 |
"php-http/message-factory": "^1.0",
|
641 |
+
"phpspec/phpspec": "^2.4",
|
642 |
"puli/composer-plugin": "1.0.0-beta10"
|
643 |
},
|
644 |
"suggest": {
|
645 |
"php-http/message": "Allow to use Guzzle, Diactoros or Slim Framework factories",
|
646 |
"puli/composer-plugin": "Sets up Puli which is recommended for Discovery to work. Check http://docs.php-http.org/en/latest/discovery.html for more details."
|
647 |
},
|
648 |
+
"time": "2019-02-23T07:42:53+00:00",
|
649 |
"type": "library",
|
650 |
"extra": {
|
651 |
"branch-alias": {
|
652 |
+
"dev-master": "1.5-dev"
|
653 |
}
|
654 |
},
|
655 |
"installation-source": "dist",
|
679 |
"message",
|
680 |
"psr7"
|
681 |
],
|
682 |
+
"support": {
|
683 |
+
"issues": "https://github.com/php-http/discovery/issues",
|
684 |
+
"source": "https://github.com/php-http/discovery/tree/master"
|
685 |
+
},
|
686 |
"install-path": "../php-http/discovery"
|
687 |
},
|
688 |
{
|
742 |
"client",
|
743 |
"http"
|
744 |
],
|
745 |
+
"support": {
|
746 |
+
"issues": "https://github.com/php-http/httplug/issues",
|
747 |
+
"source": "https://github.com/php-http/httplug/tree/master"
|
748 |
+
},
|
749 |
"install-path": "../php-http/httplug"
|
750 |
},
|
751 |
{
|
752 |
"name": "php-http/message",
|
753 |
+
"version": "1.7.2",
|
754 |
+
"version_normalized": "1.7.2.0",
|
755 |
"source": {
|
756 |
"type": "git",
|
757 |
"url": "https://github.com/php-http/message.git",
|
758 |
+
"reference": "b159ffe570dffd335e22ef0b91a946eacb182fa1"
|
759 |
},
|
760 |
"dist": {
|
761 |
"type": "zip",
|
762 |
+
"url": "https://api.github.com/repos/php-http/message/zipball/b159ffe570dffd335e22ef0b91a946eacb182fa1",
|
763 |
+
"reference": "b159ffe570dffd335e22ef0b91a946eacb182fa1",
|
764 |
"shasum": ""
|
765 |
},
|
766 |
"require": {
|
767 |
+
"clue/stream-filter": "^1.4",
|
768 |
+
"php": "^5.4 || ^7.0",
|
769 |
"php-http/message-factory": "^1.0.2",
|
770 |
"psr/http-message": "^1.0"
|
771 |
},
|
773 |
"php-http/message-factory-implementation": "1.0"
|
774 |
},
|
775 |
"require-dev": {
|
776 |
+
"akeneo/phpspec-skip-example-extension": "^1.0",
|
777 |
+
"coduo/phpspec-data-provider-extension": "^1.0",
|
778 |
"ext-zlib": "*",
|
779 |
"guzzlehttp/psr7": "^1.0",
|
780 |
+
"henrikbjorn/phpspec-code-coverage": "^1.0",
|
781 |
+
"phpspec/phpspec": "^2.4",
|
782 |
"slim/slim": "^3.0",
|
783 |
"zendframework/zend-diactoros": "^1.0"
|
784 |
},
|
788 |
"slim/slim": "Used with Slim Framework PSR-7 implementation",
|
789 |
"zendframework/zend-diactoros": "Used with Diactoros Factories"
|
790 |
},
|
791 |
+
"time": "2018-11-01T09:32:41+00:00",
|
792 |
"type": "library",
|
793 |
"extra": {
|
794 |
"branch-alias": {
|
795 |
+
"dev-master": "1.6-dev"
|
796 |
}
|
797 |
},
|
798 |
"installation-source": "dist",
|
821 |
"message",
|
822 |
"psr-7"
|
823 |
],
|
824 |
+
"support": {
|
825 |
+
"issues": "https://github.com/php-http/message/issues",
|
826 |
+
"source": "https://github.com/php-http/message/tree/master"
|
827 |
+
},
|
828 |
"install-path": "../php-http/message"
|
829 |
},
|
830 |
{
|
878 |
"stream",
|
879 |
"uri"
|
880 |
],
|
881 |
+
"support": {
|
882 |
+
"issues": "https://github.com/php-http/message-factory/issues",
|
883 |
+
"source": "https://github.com/php-http/message-factory/tree/master"
|
884 |
+
},
|
885 |
"install-path": "../php-http/message-factory"
|
886 |
},
|
887 |
{
|
888 |
"name": "php-http/promise",
|
889 |
+
"version": "v1.0.0",
|
890 |
+
"version_normalized": "1.0.0.0",
|
891 |
"source": {
|
892 |
"type": "git",
|
893 |
"url": "https://github.com/php-http/promise.git",
|
894 |
+
"reference": "dc494cdc9d7160b9a09bd5573272195242ce7980"
|
895 |
},
|
896 |
"dist": {
|
897 |
"type": "zip",
|
898 |
+
"url": "https://api.github.com/repos/php-http/promise/zipball/dc494cdc9d7160b9a09bd5573272195242ce7980",
|
899 |
+
"reference": "dc494cdc9d7160b9a09bd5573272195242ce7980",
|
900 |
"shasum": ""
|
901 |
},
|
|
|
|
|
|
|
902 |
"require-dev": {
|
903 |
+
"henrikbjorn/phpspec-code-coverage": "^1.0",
|
904 |
+
"phpspec/phpspec": "^2.4"
|
905 |
},
|
906 |
+
"time": "2016-01-26T13:27:02+00:00",
|
907 |
"type": "library",
|
908 |
"extra": {
|
909 |
"branch-alias": {
|
921 |
"MIT"
|
922 |
],
|
923 |
"authors": [
|
|
|
|
|
|
|
|
|
924 |
{
|
925 |
"name": "Márk Sági-Kazár",
|
926 |
"email": "mark.sagikazar@gmail.com"
|
927 |
+
},
|
928 |
+
{
|
929 |
+
"name": "Joel Wurtz",
|
930 |
+
"email": "joel.wurtz@gmail.com"
|
931 |
}
|
932 |
],
|
933 |
"description": "Promise used for asynchronous HTTP requests",
|
935 |
"keywords": [
|
936 |
"promise"
|
937 |
],
|
938 |
+
"support": {
|
939 |
+
"issues": "https://github.com/php-http/promise/issues",
|
940 |
+
"source": "https://github.com/php-http/promise/tree/master"
|
941 |
+
},
|
942 |
"install-path": "../php-http/promise"
|
943 |
},
|
944 |
{
|
992 |
"request",
|
993 |
"response"
|
994 |
],
|
995 |
+
"support": {
|
996 |
+
"source": "https://github.com/php-fig/http-message/tree/master"
|
997 |
+
},
|
998 |
"install-path": "../psr/http-message"
|
999 |
},
|
1000 |
{
|
1038 |
}
|
1039 |
],
|
1040 |
"description": "A polyfill for getallheaders.",
|
1041 |
+
"support": {
|
1042 |
+
"issues": "https://github.com/ralouphie/getallheaders/issues",
|
1043 |
+
"source": "https://github.com/ralouphie/getallheaders/tree/develop"
|
1044 |
+
},
|
1045 |
"install-path": "../ralouphie/getallheaders"
|
1046 |
},
|
1047 |
{
|
1098 |
"minify",
|
1099 |
"yui"
|
1100 |
],
|
1101 |
+
"support": {
|
1102 |
+
"issues": "https://github.com/tubalmartin/YUI-CSS-compressor-PHP-port/issues",
|
1103 |
+
"source": "https://github.com/tubalmartin/YUI-CSS-compressor-PHP-port"
|
1104 |
+
},
|
1105 |
"install-path": "../tubalmartin/cssmin"
|
1106 |
}
|
1107 |
],
|
vendor/composer/installed.php
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
<?php return array (
|
2 |
'root' =>
|
3 |
array (
|
4 |
-
'pretty_version' => 'v2.10.
|
5 |
-
'version' => '2.10.
|
6 |
'aliases' =>
|
7 |
array (
|
8 |
),
|
9 |
-
'reference' => '
|
10 |
'name' => 'codeinwp/themeisle-companion',
|
11 |
),
|
12 |
'versions' =>
|
@@ -26,6 +26,7 @@
|
|
26 |
'version' => 'dev-master',
|
27 |
'aliases' =>
|
28 |
array (
|
|
|
29 |
),
|
30 |
'reference' => 'a76b4de7df500baff306113b415b076f3120e00c',
|
31 |
),
|
@@ -35,6 +36,7 @@
|
|
35 |
'version' => 'dev-master',
|
36 |
'aliases' =>
|
37 |
array (
|
|
|
38 |
),
|
39 |
'reference' => 'ac15bbb1295d39baf28978c7d9c04fed21ea3429',
|
40 |
),
|
@@ -53,17 +55,18 @@
|
|
53 |
'version' => 'dev-master',
|
54 |
'aliases' =>
|
55 |
array (
|
|
|
56 |
),
|
57 |
'reference' => '18e8b64784457e3851bc79203e1306b6057d4d69',
|
58 |
),
|
59 |
'codeinwp/themeisle-companion' =>
|
60 |
array (
|
61 |
-
'pretty_version' => 'v2.10.
|
62 |
-
'version' => '2.10.
|
63 |
'aliases' =>
|
64 |
array (
|
65 |
),
|
66 |
-
'reference' => '
|
67 |
),
|
68 |
'codeinwp/themeisle-content-forms' =>
|
69 |
array (
|
@@ -71,6 +74,7 @@
|
|
71 |
'version' => 'dev-master',
|
72 |
'aliases' =>
|
73 |
array (
|
|
|
74 |
),
|
75 |
'reference' => 'ded68c965396999459cce58139fd299a979700e1',
|
76 |
),
|
@@ -135,12 +139,12 @@
|
|
135 |
),
|
136 |
'php-http/discovery' =>
|
137 |
array (
|
138 |
-
'pretty_version' => '1.
|
139 |
-
'version' => '1.
|
140 |
'aliases' =>
|
141 |
array (
|
142 |
),
|
143 |
-
'reference' => '
|
144 |
),
|
145 |
'php-http/httplug' =>
|
146 |
array (
|
@@ -153,12 +157,12 @@
|
|
153 |
),
|
154 |
'php-http/message' =>
|
155 |
array (
|
156 |
-
'pretty_version' => '1.
|
157 |
-
'version' => '1.
|
158 |
'aliases' =>
|
159 |
array (
|
160 |
),
|
161 |
-
'reference' => '
|
162 |
),
|
163 |
'php-http/message-factory' =>
|
164 |
array (
|
@@ -178,12 +182,12 @@
|
|
178 |
),
|
179 |
'php-http/promise' =>
|
180 |
array (
|
181 |
-
'pretty_version' => '
|
182 |
-
'version' => '1.
|
183 |
'aliases' =>
|
184 |
array (
|
185 |
),
|
186 |
-
'reference' => '
|
187 |
),
|
188 |
'psr/http-message' =>
|
189 |
array (
|
1 |
<?php return array (
|
2 |
'root' =>
|
3 |
array (
|
4 |
+
'pretty_version' => 'v2.10.2',
|
5 |
+
'version' => '2.10.2.0',
|
6 |
'aliases' =>
|
7 |
array (
|
8 |
),
|
9 |
+
'reference' => '66f05a6ffb0703b0630b1430a081bf5acfc3532e',
|
10 |
'name' => 'codeinwp/themeisle-companion',
|
11 |
),
|
12 |
'versions' =>
|
26 |
'version' => 'dev-master',
|
27 |
'aliases' =>
|
28 |
array (
|
29 |
+
0 => '9999999-dev',
|
30 |
),
|
31 |
'reference' => 'a76b4de7df500baff306113b415b076f3120e00c',
|
32 |
),
|
36 |
'version' => 'dev-master',
|
37 |
'aliases' =>
|
38 |
array (
|
39 |
+
0 => '9999999-dev',
|
40 |
),
|
41 |
'reference' => 'ac15bbb1295d39baf28978c7d9c04fed21ea3429',
|
42 |
),
|
55 |
'version' => 'dev-master',
|
56 |
'aliases' =>
|
57 |
array (
|
58 |
+
0 => '9999999-dev',
|
59 |
),
|
60 |
'reference' => '18e8b64784457e3851bc79203e1306b6057d4d69',
|
61 |
),
|
62 |
'codeinwp/themeisle-companion' =>
|
63 |
array (
|
64 |
+
'pretty_version' => 'v2.10.2',
|
65 |
+
'version' => '2.10.2.0',
|
66 |
'aliases' =>
|
67 |
array (
|
68 |
),
|
69 |
+
'reference' => '66f05a6ffb0703b0630b1430a081bf5acfc3532e',
|
70 |
),
|
71 |
'codeinwp/themeisle-content-forms' =>
|
72 |
array (
|
74 |
'version' => 'dev-master',
|
75 |
'aliases' =>
|
76 |
array (
|
77 |
+
0 => '9999999-dev',
|
78 |
),
|
79 |
'reference' => 'ded68c965396999459cce58139fd299a979700e1',
|
80 |
),
|
139 |
),
|
140 |
'php-http/discovery' =>
|
141 |
array (
|
142 |
+
'pretty_version' => '1.6.1',
|
143 |
+
'version' => '1.6.1.0',
|
144 |
'aliases' =>
|
145 |
array (
|
146 |
),
|
147 |
+
'reference' => '684855f2c2e9d0a61868b8f8d6bd0295c8a4b651',
|
148 |
),
|
149 |
'php-http/httplug' =>
|
150 |
array (
|
157 |
),
|
158 |
'php-http/message' =>
|
159 |
array (
|
160 |
+
'pretty_version' => '1.7.2',
|
161 |
+
'version' => '1.7.2.0',
|
162 |
'aliases' =>
|
163 |
array (
|
164 |
),
|
165 |
+
'reference' => 'b159ffe570dffd335e22ef0b91a946eacb182fa1',
|
166 |
),
|
167 |
'php-http/message-factory' =>
|
168 |
array (
|
182 |
),
|
183 |
'php-http/promise' =>
|
184 |
array (
|
185 |
+
'pretty_version' => 'v1.0.0',
|
186 |
+
'version' => '1.0.0.0',
|
187 |
'aliases' =>
|
188 |
array (
|
189 |
),
|
190 |
+
'reference' => 'dc494cdc9d7160b9a09bd5573272195242ce7980',
|
191 |
),
|
192 |
'psr/http-message' =>
|
193 |
array (
|
vendor/composer/platform_check.php
CHANGED
@@ -4,8 +4,8 @@
|
|
4 |
|
5 |
$issues = array();
|
6 |
|
7 |
-
if (!(PHP_VERSION_ID >=
|
8 |
-
$issues[] = 'Your Composer dependencies require a PHP version ">=
|
9 |
}
|
10 |
|
11 |
if ($issues) {
|
4 |
|
5 |
$issues = array();
|
6 |
|
7 |
+
if (!(PHP_VERSION_ID >= 50600)) {
|
8 |
+
$issues[] = 'Your Composer dependencies require a PHP version ">= 5.6.0". You are running ' . PHP_VERSION . '.';
|
9 |
}
|
10 |
|
11 |
if ($issues) {
|
vendor/php-http/discovery/CHANGELOG.md
CHANGED
@@ -1,76 +1,5 @@
|
|
1 |
# Change Log
|
2 |
|
3 |
-
## 1.13.0 - 2020-11-27
|
4 |
-
|
5 |
-
- Support discovering PSR-17 factories of `slim/psr7` package https://github.com/php-http/discovery/pull/192
|
6 |
-
|
7 |
-
## 1.12.0 - 2020-09-22
|
8 |
-
|
9 |
-
- Support discovering HttpClient of `php-http/guzzle7-adapter` https://github.com/php-http/discovery/pull/189
|
10 |
-
|
11 |
-
## 1.11.0 - 2020-09-22
|
12 |
-
|
13 |
-
- Use correct method name to find Uri Factory in PSR17 https://github.com/php-http/discovery/pull/181
|
14 |
-
|
15 |
-
## 1.10.0 - 2020-09-04
|
16 |
-
|
17 |
-
- Discover PSR-18 implementation of phalcon
|
18 |
-
|
19 |
-
## 1.9.1 - 2020-07-13
|
20 |
-
|
21 |
-
### Fixed
|
22 |
-
|
23 |
-
- Support PHP 7.4 and 8.0
|
24 |
-
|
25 |
-
## 1.9.0 - 2020-07-02
|
26 |
-
|
27 |
-
### Added
|
28 |
-
|
29 |
-
- Support discovering PSR-18 factories of `guzzlehttp/guzzle` 7+
|
30 |
-
|
31 |
-
## 1.8.0 - 2020-06-14
|
32 |
-
|
33 |
-
### Added
|
34 |
-
|
35 |
-
- Support discovering PSR-17 factories of `guzzlehttp/psr7` package
|
36 |
-
- Support discovering PSR-17 factories of `laminas/laminas-diactoros` package
|
37 |
-
- `ClassDiscovery::getStrategies()` to retrieve the list of current strategies.
|
38 |
-
|
39 |
-
### Fixed
|
40 |
-
|
41 |
-
- Ignore exception during discovery when Symfony HttplugClient checks if HTTPlug is available.
|
42 |
-
|
43 |
-
## 1.7.4 - 2020-01-03
|
44 |
-
|
45 |
-
### Fixed
|
46 |
-
|
47 |
-
- Improve conditions on Symfony's async HTTPlug client.
|
48 |
-
|
49 |
-
## 1.7.3 - 2019-12-27
|
50 |
-
|
51 |
-
### Fixed
|
52 |
-
|
53 |
-
- Enough conditions to only use Symfony HTTP client if all needed components are available.
|
54 |
-
|
55 |
-
## 1.7.2 - 2019-12-27
|
56 |
-
|
57 |
-
### Fixed
|
58 |
-
|
59 |
-
- Allow a condition to specify an interface and not just classes.
|
60 |
-
|
61 |
-
## 1.7.1 - 2019-12-26
|
62 |
-
|
63 |
-
### Fixed
|
64 |
-
|
65 |
-
- Better conditions to see if Symfony's HTTP clients are available.
|
66 |
-
|
67 |
-
## 1.7.0 - 2019-06-30
|
68 |
-
|
69 |
-
### Added
|
70 |
-
|
71 |
-
- Dropped support for PHP < 7.1
|
72 |
-
- Support for `symfony/http-client`
|
73 |
-
|
74 |
## 1.6.1 - 2019-02-23
|
75 |
|
76 |
### Fixed
|
@@ -87,13 +16,13 @@
|
|
87 |
## 1.5.2 - 2018-12-31
|
88 |
|
89 |
Corrected mistakes in 1.5.1. The different between 1.5.2 and 1.5.0 is that
|
90 |
-
we removed some PHP 7 code.
|
91 |
|
92 |
https://github.com/php-http/discovery/compare/1.5.0...1.5.2
|
93 |
|
94 |
## 1.5.1 - 2018-12-31
|
95 |
|
96 |
-
This version added new features by mistake. These are reverted in 1.5.2.
|
97 |
|
98 |
Do not use 1.5.1.
|
99 |
|
@@ -105,15 +34,15 @@ Do not use 1.5.1.
|
|
105 |
|
106 |
### Added
|
107 |
|
108 |
-
- Support for `nyholm/psr7` version 1.0.
|
109 |
-
- `ClassDiscovery::safeClassExists` which will help Magento users.
|
110 |
- Support for HTTPlug 2.0
|
111 |
- Support for Buzz 1.0
|
112 |
- Better error message when nothing found by introducing a new exception: `NoCandidateFoundException`.
|
113 |
|
114 |
### Fixed
|
115 |
|
116 |
-
- Fixed condition evaluation, it should stop after first invalid condition.
|
117 |
|
118 |
## 1.4.0 - 2018-02-06
|
119 |
|
@@ -133,7 +62,7 @@ Do not use 1.5.1.
|
|
133 |
|
134 |
### Fixed
|
135 |
|
136 |
-
- Fixed minor issue with `MockClientStrategy`, also added more tests.
|
137 |
|
138 |
## 1.2.0 - 2017-02-12
|
139 |
|
1 |
# Change Log
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
## 1.6.1 - 2019-02-23
|
4 |
|
5 |
### Fixed
|
16 |
## 1.5.2 - 2018-12-31
|
17 |
|
18 |
Corrected mistakes in 1.5.1. The different between 1.5.2 and 1.5.0 is that
|
19 |
+
we removed some PHP 7 code.
|
20 |
|
21 |
https://github.com/php-http/discovery/compare/1.5.0...1.5.2
|
22 |
|
23 |
## 1.5.1 - 2018-12-31
|
24 |
|
25 |
+
This version added new features by mistake. These are reverted in 1.5.2.
|
26 |
|
27 |
Do not use 1.5.1.
|
28 |
|
34 |
|
35 |
### Added
|
36 |
|
37 |
+
- Support for `nyholm/psr7` version 1.0.
|
38 |
+
- `ClassDiscovery::safeClassExists` which will help Magento users.
|
39 |
- Support for HTTPlug 2.0
|
40 |
- Support for Buzz 1.0
|
41 |
- Better error message when nothing found by introducing a new exception: `NoCandidateFoundException`.
|
42 |
|
43 |
### Fixed
|
44 |
|
45 |
+
- Fixed condition evaluation, it should stop after first invalid condition.
|
46 |
|
47 |
## 1.4.0 - 2018-02-06
|
48 |
|
62 |
|
63 |
### Fixed
|
64 |
|
65 |
+
- Fixed minor issue with `MockClientStrategy`, also added more tests.
|
66 |
|
67 |
## 1.2.0 - 2017-02-12
|
68 |
|
vendor/php-http/discovery/src/ClassDiscovery.php
CHANGED
@@ -124,16 +124,6 @@ abstract class ClassDiscovery
|
|
124 |
self::clearCache();
|
125 |
}
|
126 |
|
127 |
-
/**
|
128 |
-
* Returns the currently configured discovery strategies as fully qualified class names.
|
129 |
-
*
|
130 |
-
* @return string[]
|
131 |
-
*/
|
132 |
-
public static function getStrategies(): iterable
|
133 |
-
{
|
134 |
-
return self::$strategies;
|
135 |
-
}
|
136 |
-
|
137 |
/**
|
138 |
* Append a strategy at the end of the strategy queue.
|
139 |
*
|
@@ -238,7 +228,7 @@ abstract class ClassDiscovery
|
|
238 |
public static function safeClassExists($class)
|
239 |
{
|
240 |
try {
|
241 |
-
return class_exists($class)
|
242 |
} catch (\Exception $e) {
|
243 |
return false;
|
244 |
}
|
124 |
self::clearCache();
|
125 |
}
|
126 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
/**
|
128 |
* Append a strategy at the end of the strategy queue.
|
129 |
*
|
228 |
public static function safeClassExists($class)
|
229 |
{
|
230 |
try {
|
231 |
+
return class_exists($class);
|
232 |
} catch (\Exception $e) {
|
233 |
return false;
|
234 |
}
|
vendor/php-http/discovery/src/Exception/NoCandidateFoundException.php
CHANGED
@@ -13,6 +13,7 @@ final class NoCandidateFoundException extends \Exception implements Exception
|
|
13 |
{
|
14 |
/**
|
15 |
* @param string $strategy
|
|
|
16 |
*/
|
17 |
public function __construct($strategy, array $candidates)
|
18 |
{
|
13 |
{
|
14 |
/**
|
15 |
* @param string $strategy
|
16 |
+
* @param array $candidates
|
17 |
*/
|
18 |
public function __construct($strategy, array $candidates)
|
19 |
{
|
vendor/php-http/discovery/src/HttpAsyncClientDiscovery.php
CHANGED
@@ -24,7 +24,11 @@ final class HttpAsyncClientDiscovery extends ClassDiscovery
|
|
24 |
try {
|
25 |
$asyncClient = static::findOneByType(HttpAsyncClient::class);
|
26 |
} catch (DiscoveryFailedException $e) {
|
27 |
-
throw new NotFoundException(
|
|
|
|
|
|
|
|
|
28 |
}
|
29 |
|
30 |
return static::instantiateClass($asyncClient);
|
24 |
try {
|
25 |
$asyncClient = static::findOneByType(HttpAsyncClient::class);
|
26 |
} catch (DiscoveryFailedException $e) {
|
27 |
+
throw new NotFoundException(
|
28 |
+
'No HTTPlug async clients found. Make sure to install a package providing "php-http/async-client-implementation". Example: "php-http/guzzle6-adapter".',
|
29 |
+
0,
|
30 |
+
$e
|
31 |
+
);
|
32 |
}
|
33 |
|
34 |
return static::instantiateClass($asyncClient);
|
vendor/php-http/discovery/src/HttpClientDiscovery.php
CHANGED
@@ -24,7 +24,11 @@ final class HttpClientDiscovery extends ClassDiscovery
|
|
24 |
try {
|
25 |
$client = static::findOneByType(HttpClient::class);
|
26 |
} catch (DiscoveryFailedException $e) {
|
27 |
-
throw new NotFoundException(
|
|
|
|
|
|
|
|
|
28 |
}
|
29 |
|
30 |
return static::instantiateClass($client);
|
24 |
try {
|
25 |
$client = static::findOneByType(HttpClient::class);
|
26 |
} catch (DiscoveryFailedException $e) {
|
27 |
+
throw new NotFoundException(
|
28 |
+
'No HTTPlug clients found. Make sure to install a package providing "php-http/client-implementation". Example: "php-http/guzzle6-adapter".',
|
29 |
+
0,
|
30 |
+
$e
|
31 |
+
);
|
32 |
}
|
33 |
|
34 |
return static::instantiateClass($client);
|
vendor/php-http/discovery/src/MessageFactoryDiscovery.php
CHANGED
@@ -26,7 +26,11 @@ final class MessageFactoryDiscovery extends ClassDiscovery
|
|
26 |
try {
|
27 |
$messageFactory = static::findOneByType(MessageFactory::class);
|
28 |
} catch (DiscoveryFailedException $e) {
|
29 |
-
throw new NotFoundException(
|
|
|
|
|
|
|
|
|
30 |
}
|
31 |
|
32 |
return static::instantiateClass($messageFactory);
|
26 |
try {
|
27 |
$messageFactory = static::findOneByType(MessageFactory::class);
|
28 |
} catch (DiscoveryFailedException $e) {
|
29 |
+
throw new NotFoundException(
|
30 |
+
'No message factories found. To use Guzzle, Diactoros or Slim Framework factories install php-http/message and the chosen message implementation.',
|
31 |
+
0,
|
32 |
+
$e
|
33 |
+
);
|
34 |
}
|
35 |
|
36 |
return static::instantiateClass($messageFactory);
|
vendor/php-http/discovery/src/Psr17FactoryDiscovery.php
CHANGED
@@ -111,7 +111,7 @@ final class Psr17FactoryDiscovery extends ClassDiscovery
|
|
111 |
*
|
112 |
* @throws Exception\NotFoundException
|
113 |
*/
|
114 |
-
public static function
|
115 |
{
|
116 |
try {
|
117 |
$messageFactory = static::findOneByType(UriFactoryInterface::class);
|
@@ -121,16 +121,4 @@ final class Psr17FactoryDiscovery extends ClassDiscovery
|
|
121 |
|
122 |
return static::instantiateClass($messageFactory);
|
123 |
}
|
124 |
-
|
125 |
-
/**
|
126 |
-
* @return UriFactoryInterface
|
127 |
-
*
|
128 |
-
* @throws Exception\NotFoundException
|
129 |
-
*
|
130 |
-
* @deprecated This will be removed in 2.0. Consider using the findUriFactory() method.
|
131 |
-
*/
|
132 |
-
public static function findUrlFactory()
|
133 |
-
{
|
134 |
-
return static::findUriFactory();
|
135 |
-
}
|
136 |
}
|
111 |
*
|
112 |
* @throws Exception\NotFoundException
|
113 |
*/
|
114 |
+
public static function findUrlFactory()
|
115 |
{
|
116 |
try {
|
117 |
$messageFactory = static::findOneByType(UriFactoryInterface::class);
|
121 |
|
122 |
return static::instantiateClass($messageFactory);
|
123 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
}
|
vendor/php-http/discovery/src/Psr18ClientDiscovery.php
CHANGED
@@ -24,7 +24,11 @@ final class Psr18ClientDiscovery extends ClassDiscovery
|
|
24 |
try {
|
25 |
$client = static::findOneByType(ClientInterface::class);
|
26 |
} catch (DiscoveryFailedException $e) {
|
27 |
-
throw new \Http\Discovery\Exception\NotFoundException(
|
|
|
|
|
|
|
|
|
28 |
}
|
29 |
|
30 |
return static::instantiateClass($client);
|
24 |
try {
|
25 |
$client = static::findOneByType(ClientInterface::class);
|
26 |
} catch (DiscoveryFailedException $e) {
|
27 |
+
throw new \Http\Discovery\Exception\NotFoundException(
|
28 |
+
'No PSR-18 clients found. Make sure to install a package providing "psr/http-client-implementation". Example: "php-http/guzzle6-adapter".',
|
29 |
+
0,
|
30 |
+
$e
|
31 |
+
);
|
32 |
}
|
33 |
|
34 |
return static::instantiateClass($client);
|
vendor/php-http/discovery/src/Strategy/CommonClassesStrategy.php
CHANGED
@@ -2,15 +2,10 @@
|
|
2 |
|
3 |
namespace Http\Discovery\Strategy;
|
4 |
|
5 |
-
use GuzzleHttp\Promise\Promise;
|
6 |
use GuzzleHttp\Psr7\Request as GuzzleRequest;
|
7 |
use Http\Client\HttpAsyncClient;
|
8 |
use Http\Client\HttpClient;
|
9 |
-
use Http\Discovery\Exception\NotFoundException;
|
10 |
use Http\Discovery\MessageFactoryDiscovery;
|
11 |
-
use Http\Discovery\Psr17FactoryDiscovery;
|
12 |
-
use Http\Message\RequestFactory;
|
13 |
-
use Psr\Http\Message\RequestFactoryInterface as Psr17RequestFactory;
|
14 |
use Http\Message\MessageFactory;
|
15 |
use Http\Message\MessageFactory\GuzzleMessageFactory;
|
16 |
use Http\Message\StreamFactory;
|
@@ -26,8 +21,6 @@ use Http\Message\MessageFactory\SlimMessageFactory;
|
|
26 |
use Http\Message\StreamFactory\SlimStreamFactory;
|
27 |
use Http\Message\UriFactory\SlimUriFactory;
|
28 |
use Slim\Http\Request as SlimRequest;
|
29 |
-
use GuzzleHttp\Client as GuzzleHttp;
|
30 |
-
use Http\Adapter\Guzzle7\Client as Guzzle7;
|
31 |
use Http\Adapter\Guzzle6\Client as Guzzle6;
|
32 |
use Http\Adapter\Guzzle5\Client as Guzzle5;
|
33 |
use Http\Client\Curl\Client as Curl;
|
@@ -37,8 +30,6 @@ use Http\Adapter\Buzz\Client as Buzz;
|
|
37 |
use Http\Adapter\Cake\Client as Cake;
|
38 |
use Http\Adapter\Zend\Client as Zend;
|
39 |
use Http\Adapter\Artax\Client as Artax;
|
40 |
-
use Symfony\Component\HttpClient\HttplugClient as SymfonyHttplug;
|
41 |
-
use Symfony\Component\HttpClient\Psr18Client as SymfonyPsr18;
|
42 |
use Nyholm\Psr7\Factory\HttplugFactory as NyholmHttplugFactory;
|
43 |
|
44 |
/**
|
@@ -71,15 +62,11 @@ final class CommonClassesStrategy implements DiscoveryStrategy
|
|
71 |
['class' => SlimUriFactory::class, 'condition' => [SlimRequest::class, SlimUriFactory::class]],
|
72 |
],
|
73 |
HttpAsyncClient::class => [
|
74 |
-
['class' => SymfonyHttplug::class, 'condition' => [SymfonyHttplug::class, Promise::class, RequestFactory::class, [self::class, 'isPsr17FactoryInstalled']]],
|
75 |
-
['class' => Guzzle7::class, 'condition' => Guzzle7::class],
|
76 |
['class' => Guzzle6::class, 'condition' => Guzzle6::class],
|
77 |
['class' => Curl::class, 'condition' => Curl::class],
|
78 |
['class' => React::class, 'condition' => React::class],
|
79 |
],
|
80 |
HttpClient::class => [
|
81 |
-
['class' => SymfonyHttplug::class, 'condition' => [SymfonyHttplug::class, RequestFactory::class, [self::class, 'isPsr17FactoryInstalled']]],
|
82 |
-
['class' => Guzzle7::class, 'condition' => Guzzle7::class],
|
83 |
['class' => Guzzle6::class, 'condition' => Guzzle6::class],
|
84 |
['class' => Guzzle5::class, 'condition' => Guzzle5::class],
|
85 |
['class' => Curl::class, 'condition' => Curl::class],
|
@@ -95,14 +82,6 @@ final class CommonClassesStrategy implements DiscoveryStrategy
|
|
95 |
],
|
96 |
],
|
97 |
Psr18Client::class => [
|
98 |
-
[
|
99 |
-
'class' => [self::class, 'symfonyPsr18Instantiate'],
|
100 |
-
'condition' => [SymfonyPsr18::class, Psr17RequestFactory::class],
|
101 |
-
],
|
102 |
-
[
|
103 |
-
'class' => GuzzleHttp::class,
|
104 |
-
'condition' => [self::class, 'isGuzzleImplementingPsr18'],
|
105 |
-
],
|
106 |
[
|
107 |
'class' => [self::class, 'buzzInstantiate'],
|
108 |
'condition' => [\Buzz\Client\FileGetContents::class, \Buzz\Message\ResponseBuilder::class],
|
@@ -116,66 +95,27 @@ final class CommonClassesStrategy implements DiscoveryStrategy
|
|
116 |
public static function getCandidates($type)
|
117 |
{
|
118 |
if (Psr18Client::class === $type) {
|
119 |
-
|
120 |
-
}
|
121 |
-
|
122 |
-
return self::$classes[$type] ?? [];
|
123 |
-
}
|
124 |
|
125 |
-
|
126 |
-
|
127 |
-
* element is an array with two keys ['class' => string, 'condition' => mixed].
|
128 |
-
*/
|
129 |
-
private static function getPsr18Candidates()
|
130 |
-
{
|
131 |
-
$candidates = self::$classes[Psr18Client::class];
|
132 |
-
|
133 |
-
// HTTPlug 2.0 clients implements PSR18Client too.
|
134 |
-
foreach (self::$classes[HttpClient::class] as $c) {
|
135 |
-
try {
|
136 |
if (is_subclass_of($c['class'], Psr18Client::class)) {
|
137 |
$candidates[] = $c;
|
138 |
}
|
139 |
-
} catch (\Throwable $e) {
|
140 |
-
trigger_error(sprintf('Got exception "%s (%s)" while checking if a PSR-18 Client is available', get_class($e), $e->getMessage()), E_USER_WARNING);
|
141 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
142 |
}
|
143 |
|
144 |
-
return
|
145 |
}
|
146 |
|
147 |
public static function buzzInstantiate()
|
148 |
{
|
149 |
return new \Buzz\Client\FileGetContents(MessageFactoryDiscovery::find());
|
150 |
}
|
151 |
-
|
152 |
-
public static function symfonyPsr18Instantiate()
|
153 |
-
{
|
154 |
-
return new SymfonyPsr18(null, Psr17FactoryDiscovery::findResponseFactory(), Psr17FactoryDiscovery::findStreamFactory());
|
155 |
-
}
|
156 |
-
|
157 |
-
public static function isGuzzleImplementingPsr18()
|
158 |
-
{
|
159 |
-
return defined('GuzzleHttp\ClientInterface::MAJOR_VERSION');
|
160 |
-
}
|
161 |
-
|
162 |
-
/**
|
163 |
-
* Can be used as a condition.
|
164 |
-
*
|
165 |
-
* @return bool
|
166 |
-
*/
|
167 |
-
public static function isPsr17FactoryInstalled()
|
168 |
-
{
|
169 |
-
try {
|
170 |
-
Psr17FactoryDiscovery::findResponseFactory();
|
171 |
-
} catch (NotFoundException $e) {
|
172 |
-
return false;
|
173 |
-
} catch (\Throwable $e) {
|
174 |
-
trigger_error(sprintf('Got exception "%s (%s)" while checking if a PSR-17 ResponseFactory is available', get_class($e), $e->getMessage()), E_USER_WARNING);
|
175 |
-
|
176 |
-
return false;
|
177 |
-
}
|
178 |
-
|
179 |
-
return true;
|
180 |
-
}
|
181 |
}
|
2 |
|
3 |
namespace Http\Discovery\Strategy;
|
4 |
|
|
|
5 |
use GuzzleHttp\Psr7\Request as GuzzleRequest;
|
6 |
use Http\Client\HttpAsyncClient;
|
7 |
use Http\Client\HttpClient;
|
|
|
8 |
use Http\Discovery\MessageFactoryDiscovery;
|
|
|
|
|
|
|
9 |
use Http\Message\MessageFactory;
|
10 |
use Http\Message\MessageFactory\GuzzleMessageFactory;
|
11 |
use Http\Message\StreamFactory;
|
21 |
use Http\Message\StreamFactory\SlimStreamFactory;
|
22 |
use Http\Message\UriFactory\SlimUriFactory;
|
23 |
use Slim\Http\Request as SlimRequest;
|
|
|
|
|
24 |
use Http\Adapter\Guzzle6\Client as Guzzle6;
|
25 |
use Http\Adapter\Guzzle5\Client as Guzzle5;
|
26 |
use Http\Client\Curl\Client as Curl;
|
30 |
use Http\Adapter\Cake\Client as Cake;
|
31 |
use Http\Adapter\Zend\Client as Zend;
|
32 |
use Http\Adapter\Artax\Client as Artax;
|
|
|
|
|
33 |
use Nyholm\Psr7\Factory\HttplugFactory as NyholmHttplugFactory;
|
34 |
|
35 |
/**
|
62 |
['class' => SlimUriFactory::class, 'condition' => [SlimRequest::class, SlimUriFactory::class]],
|
63 |
],
|
64 |
HttpAsyncClient::class => [
|
|
|
|
|
65 |
['class' => Guzzle6::class, 'condition' => Guzzle6::class],
|
66 |
['class' => Curl::class, 'condition' => Curl::class],
|
67 |
['class' => React::class, 'condition' => React::class],
|
68 |
],
|
69 |
HttpClient::class => [
|
|
|
|
|
70 |
['class' => Guzzle6::class, 'condition' => Guzzle6::class],
|
71 |
['class' => Guzzle5::class, 'condition' => Guzzle5::class],
|
72 |
['class' => Curl::class, 'condition' => Curl::class],
|
82 |
],
|
83 |
],
|
84 |
Psr18Client::class => [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
[
|
86 |
'class' => [self::class, 'buzzInstantiate'],
|
87 |
'condition' => [\Buzz\Client\FileGetContents::class, \Buzz\Message\ResponseBuilder::class],
|
95 |
public static function getCandidates($type)
|
96 |
{
|
97 |
if (Psr18Client::class === $type) {
|
98 |
+
$candidates = self::$classes[PSR18Client::class];
|
|
|
|
|
|
|
|
|
99 |
|
100 |
+
// HTTPlug 2.0 clients implements PSR18Client too.
|
101 |
+
foreach (self::$classes[HttpClient::class] as $c) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
if (is_subclass_of($c['class'], Psr18Client::class)) {
|
103 |
$candidates[] = $c;
|
104 |
}
|
|
|
|
|
105 |
}
|
106 |
+
|
107 |
+
return $candidates;
|
108 |
+
}
|
109 |
+
|
110 |
+
if (isset(self::$classes[$type])) {
|
111 |
+
return self::$classes[$type];
|
112 |
}
|
113 |
|
114 |
+
return [];
|
115 |
}
|
116 |
|
117 |
public static function buzzInstantiate()
|
118 |
{
|
119 |
return new \Buzz\Client\FileGetContents(MessageFactoryDiscovery::find());
|
120 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
}
|
vendor/php-http/discovery/src/Strategy/CommonPsr17ClassesStrategy.php
CHANGED
@@ -21,70 +21,46 @@ final class CommonPsr17ClassesStrategy implements DiscoveryStrategy
|
|
21 |
*/
|
22 |
private static $classes = [
|
23 |
RequestFactoryInterface::class => [
|
24 |
-
'Phalcon\Http\Message\RequestFactory',
|
25 |
'Nyholm\Psr7\Factory\Psr17Factory',
|
26 |
'Zend\Diactoros\RequestFactory',
|
27 |
-
'GuzzleHttp\Psr7\HttpFactory',
|
28 |
'Http\Factory\Diactoros\RequestFactory',
|
29 |
'Http\Factory\Guzzle\RequestFactory',
|
30 |
'Http\Factory\Slim\RequestFactory',
|
31 |
-
'Laminas\Diactoros\RequestFactory',
|
32 |
-
'Slim\Psr7\Factory\RequestFactory',
|
33 |
],
|
34 |
ResponseFactoryInterface::class => [
|
35 |
-
'Phalcon\Http\Message\ResponseFactory',
|
36 |
'Nyholm\Psr7\Factory\Psr17Factory',
|
37 |
'Zend\Diactoros\ResponseFactory',
|
38 |
-
'GuzzleHttp\Psr7\HttpFactory',
|
39 |
'Http\Factory\Diactoros\ResponseFactory',
|
40 |
'Http\Factory\Guzzle\ResponseFactory',
|
41 |
'Http\Factory\Slim\ResponseFactory',
|
42 |
-
'Laminas\Diactoros\ResponseFactory',
|
43 |
-
'Slim\Psr7\Factory\ResponseFactory',
|
44 |
],
|
45 |
ServerRequestFactoryInterface::class => [
|
46 |
-
'Phalcon\Http\Message\ServerRequestFactory',
|
47 |
'Nyholm\Psr7\Factory\Psr17Factory',
|
48 |
'Zend\Diactoros\ServerRequestFactory',
|
49 |
-
'GuzzleHttp\Psr7\HttpFactory',
|
50 |
'Http\Factory\Diactoros\ServerRequestFactory',
|
51 |
'Http\Factory\Guzzle\ServerRequestFactory',
|
52 |
'Http\Factory\Slim\ServerRequestFactory',
|
53 |
-
'Laminas\Diactoros\ServerRequestFactory',
|
54 |
-
'Slim\Psr7\Factory\ServerRequestFactory',
|
55 |
],
|
56 |
StreamFactoryInterface::class => [
|
57 |
-
'Phalcon\Http\Message\StreamFactory',
|
58 |
'Nyholm\Psr7\Factory\Psr17Factory',
|
59 |
'Zend\Diactoros\StreamFactory',
|
60 |
-
'GuzzleHttp\Psr7\HttpFactory',
|
61 |
'Http\Factory\Diactoros\StreamFactory',
|
62 |
'Http\Factory\Guzzle\StreamFactory',
|
63 |
'Http\Factory\Slim\StreamFactory',
|
64 |
-
'Laminas\Diactoros\StreamFactory',
|
65 |
-
'Slim\Psr7\Factory\StreamFactory',
|
66 |
],
|
67 |
UploadedFileFactoryInterface::class => [
|
68 |
-
'Phalcon\Http\Message\UploadedFileFactory',
|
69 |
'Nyholm\Psr7\Factory\Psr17Factory',
|
70 |
'Zend\Diactoros\UploadedFileFactory',
|
71 |
-
'GuzzleHttp\Psr7\HttpFactory',
|
72 |
'Http\Factory\Diactoros\UploadedFileFactory',
|
73 |
'Http\Factory\Guzzle\UploadedFileFactory',
|
74 |
'Http\Factory\Slim\UploadedFileFactory',
|
75 |
-
'Laminas\Diactoros\UploadedFileFactory',
|
76 |
-
'Slim\Psr7\Factory\UploadedFileFactory',
|
77 |
],
|
78 |
UriFactoryInterface::class => [
|
79 |
-
'Phalcon\Http\Message\UriFactory',
|
80 |
'Nyholm\Psr7\Factory\Psr17Factory',
|
81 |
'Zend\Diactoros\UriFactory',
|
82 |
-
'GuzzleHttp\Psr7\HttpFactory',
|
83 |
'Http\Factory\Diactoros\UriFactory',
|
84 |
'Http\Factory\Guzzle\UriFactory',
|
85 |
'Http\Factory\Slim\UriFactory',
|
86 |
-
'Laminas\Diactoros\UriFactory',
|
87 |
-
'Slim\Psr7\Factory\UriFactory',
|
88 |
],
|
89 |
];
|
90 |
|
21 |
*/
|
22 |
private static $classes = [
|
23 |
RequestFactoryInterface::class => [
|
|
|
24 |
'Nyholm\Psr7\Factory\Psr17Factory',
|
25 |
'Zend\Diactoros\RequestFactory',
|
|
|
26 |
'Http\Factory\Diactoros\RequestFactory',
|
27 |
'Http\Factory\Guzzle\RequestFactory',
|
28 |
'Http\Factory\Slim\RequestFactory',
|
|
|
|
|
29 |
],
|
30 |
ResponseFactoryInterface::class => [
|
|
|
31 |
'Nyholm\Psr7\Factory\Psr17Factory',
|
32 |
'Zend\Diactoros\ResponseFactory',
|
|
|
33 |
'Http\Factory\Diactoros\ResponseFactory',
|
34 |
'Http\Factory\Guzzle\ResponseFactory',
|
35 |
'Http\Factory\Slim\ResponseFactory',
|
|
|
|
|
36 |
],
|
37 |
ServerRequestFactoryInterface::class => [
|
|
|
38 |
'Nyholm\Psr7\Factory\Psr17Factory',
|
39 |
'Zend\Diactoros\ServerRequestFactory',
|
|
|
40 |
'Http\Factory\Diactoros\ServerRequestFactory',
|
41 |
'Http\Factory\Guzzle\ServerRequestFactory',
|
42 |
'Http\Factory\Slim\ServerRequestFactory',
|
|
|
|
|
43 |
],
|
44 |
StreamFactoryInterface::class => [
|
|
|
45 |
'Nyholm\Psr7\Factory\Psr17Factory',
|
46 |
'Zend\Diactoros\StreamFactory',
|
|
|
47 |
'Http\Factory\Diactoros\StreamFactory',
|
48 |
'Http\Factory\Guzzle\StreamFactory',
|
49 |
'Http\Factory\Slim\StreamFactory',
|
|
|
|
|
50 |
],
|
51 |
UploadedFileFactoryInterface::class => [
|
|
|
52 |
'Nyholm\Psr7\Factory\Psr17Factory',
|
53 |
'Zend\Diactoros\UploadedFileFactory',
|
|
|
54 |
'Http\Factory\Diactoros\UploadedFileFactory',
|
55 |
'Http\Factory\Guzzle\UploadedFileFactory',
|
56 |
'Http\Factory\Slim\UploadedFileFactory',
|
|
|
|
|
57 |
],
|
58 |
UriFactoryInterface::class => [
|
|
|
59 |
'Nyholm\Psr7\Factory\Psr17Factory',
|
60 |
'Zend\Diactoros\UriFactory',
|
|
|
61 |
'Http\Factory\Diactoros\UriFactory',
|
62 |
'Http\Factory\Guzzle\UriFactory',
|
63 |
'Http\Factory\Slim\UriFactory',
|
|
|
|
|
64 |
],
|
65 |
];
|
66 |
|
vendor/php-http/discovery/src/Strategy/MockClientStrategy.php
CHANGED
@@ -18,10 +18,12 @@ final class MockClientStrategy implements DiscoveryStrategy
|
|
18 |
*/
|
19 |
public static function getCandidates($type)
|
20 |
{
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
|
|
|
|
26 |
}
|
27 |
}
|
18 |
*/
|
19 |
public static function getCandidates($type)
|
20 |
{
|
21 |
+
switch ($type) {
|
22 |
+
case HttpClient::class:
|
23 |
+
case HttpAsyncClient::class:
|
24 |
+
return [['class' => Mock::class, 'condition' => Mock::class]];
|
25 |
+
default:
|
26 |
+
return [];
|
27 |
+
}
|
28 |
}
|
29 |
}
|
vendor/php-http/discovery/src/StreamFactoryDiscovery.php
CHANGED
@@ -26,7 +26,11 @@ final class StreamFactoryDiscovery extends ClassDiscovery
|
|
26 |
try {
|
27 |
$streamFactory = static::findOneByType(StreamFactory::class);
|
28 |
} catch (DiscoveryFailedException $e) {
|
29 |
-
throw new NotFoundException(
|
|
|
|
|
|
|
|
|
30 |
}
|
31 |
|
32 |
return static::instantiateClass($streamFactory);
|
26 |
try {
|
27 |
$streamFactory = static::findOneByType(StreamFactory::class);
|
28 |
} catch (DiscoveryFailedException $e) {
|
29 |
+
throw new NotFoundException(
|
30 |
+
'No stream factories found. To use Guzzle, Diactoros or Slim Framework factories install php-http/message and the chosen message implementation.',
|
31 |
+
0,
|
32 |
+
$e
|
33 |
+
);
|
34 |
}
|
35 |
|
36 |
return static::instantiateClass($streamFactory);
|
vendor/php-http/discovery/src/UriFactoryDiscovery.php
CHANGED
@@ -26,7 +26,11 @@ final class UriFactoryDiscovery extends ClassDiscovery
|
|
26 |
try {
|
27 |
$uriFactory = static::findOneByType(UriFactory::class);
|
28 |
} catch (DiscoveryFailedException $e) {
|
29 |
-
throw new NotFoundException(
|
|
|
|
|
|
|
|
|
30 |
}
|
31 |
|
32 |
return static::instantiateClass($uriFactory);
|
26 |
try {
|
27 |
$uriFactory = static::findOneByType(UriFactory::class);
|
28 |
} catch (DiscoveryFailedException $e) {
|
29 |
+
throw new NotFoundException(
|
30 |
+
'No uri factories found. To use Guzzle, Diactoros or Slim Framework factories install php-http/message and the chosen message implementation.',
|
31 |
+
0,
|
32 |
+
$e
|
33 |
+
);
|
34 |
}
|
35 |
|
36 |
return static::instantiateClass($uriFactory);
|
vendor/php-http/message/CHANGELOG.md
CHANGED
@@ -6,33 +6,8 @@ All notable changes to this project will be documented in this file.
|
|
6 |
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
7 |
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
8 |
|
9 |
-
## [1.10.0] - 2020-11-11
|
10 |
|
11 |
-
|
12 |
-
|
13 |
-
## [1.9.1] - 2020-10-13
|
14 |
-
|
15 |
-
- Improved detection of binary stream to not consider newlines, carriage return or tabs as binary.
|
16 |
-
|
17 |
-
## [1.9.0] - 2020-08-17
|
18 |
-
|
19 |
-
- Omitted binary body in FullHttpMessageFormatter and CurlCommandFormatter.
|
20 |
-
`[binary stream omitted]` will be shown instead.
|
21 |
-
|
22 |
-
### Added
|
23 |
-
|
24 |
-
- New Header authentication method for arbitrary header authentication.
|
25 |
-
|
26 |
-
## [1.8.0] - 2019-08-05
|
27 |
-
|
28 |
-
### Changed
|
29 |
-
|
30 |
-
- Raised minimum PHP version to 7.1
|
31 |
-
|
32 |
-
### Fixed
|
33 |
-
|
34 |
-
- Fatal error on `CurlCommandFormatter` when body is larger than `escapeshellarg` allowed length.
|
35 |
-
- Do not read stream in message formatter if stream is not seekable.
|
36 |
|
37 |
## [1.7.2] - 2018-10-30
|
38 |
|
@@ -202,12 +177,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
202 |
- Message factory (Guzzle, Diactoros)
|
203 |
|
204 |
|
205 |
-
[Unreleased]: https://github.com/php-http/message/compare/
|
206 |
-
[1.10.0]: https://github.com/php-http/message/compare/1.9.1...1.10.0
|
207 |
-
[1.9.1]: https://github.com/php-http/message/compare/1.9.0...1.9.1
|
208 |
-
[1.9.0]: https://github.com/php-http/message/compare/1.8.0...1.9.0
|
209 |
-
[1.8.0]: https://github.com/php-http/message/compare/1.7.2...1.8.0
|
210 |
-
[1.7.2]: https://github.com/php-http/message/compare/v1.7.1...1.7.2
|
211 |
[1.7.1]: https://github.com/php-http/message/compare/1.7.0...v1.7.1
|
212 |
[1.7.0]: https://github.com/php-http/message/compare/1.6.0...1.7.0
|
213 |
[1.6.0]: https://github.com/php-http/message/compare/1.5.0...1.6.0
|
6 |
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
7 |
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
8 |
|
|
|
9 |
|
10 |
+
## Unreleased
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
## [1.7.2] - 2018-10-30
|
13 |
|
177 |
- Message factory (Guzzle, Diactoros)
|
178 |
|
179 |
|
180 |
+
[Unreleased]: https://github.com/php-http/message/compare/v1.7.1...HEAD
|
|
|
|
|
|
|
|
|
|
|
181 |
[1.7.1]: https://github.com/php-http/message/compare/1.7.0...v1.7.1
|
182 |
[1.7.0]: https://github.com/php-http/message/compare/1.6.0...1.7.0
|
183 |
[1.6.0]: https://github.com/php-http/message/compare/1.5.0...1.6.0
|
vendor/php-http/message/README.md
CHANGED
@@ -1,7 +1,10 @@
|
|
1 |
# HTTP Message
|
2 |
|
3 |
[![Latest Version](https://img.shields.io/github/release/php-http/message.svg?style=flat-square)](https://github.com/php-http/message/releases)
|
4 |
-
![
|
|
|
|
|
|
|
5 |
[![Total Downloads](https://img.shields.io/packagist/dt/php-http/message.svg?style=flat-square)](https://packagist.org/packages/php-http/message)
|
6 |
|
7 |
**HTTP Message related tools.**
|
@@ -40,10 +43,18 @@ $ composer test
|
|
40 |
```
|
41 |
|
42 |
|
|
|
|
|
|
|
|
|
43 |
## Credits
|
44 |
|
45 |
Thanks to [Cuzzle](https://github.com/namshi/cuzzle) for inpiration for the `CurlCommandFormatter`.
|
46 |
|
|
|
|
|
|
|
|
|
47 |
|
48 |
## License
|
49 |
|
1 |
# HTTP Message
|
2 |
|
3 |
[![Latest Version](https://img.shields.io/github/release/php-http/message.svg?style=flat-square)](https://github.com/php-http/message/releases)
|
4 |
+
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)
|
5 |
+
[![Build Status](https://img.shields.io/travis/php-http/message.svg?style=flat-square)](https://travis-ci.org/php-http/message)
|
6 |
+
[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/php-http/message.svg?style=flat-square)](https://scrutinizer-ci.com/g/php-http/message)
|
7 |
+
[![Quality Score](https://img.shields.io/scrutinizer/g/php-http/message.svg?style=flat-square)](https://scrutinizer-ci.com/g/php-http/message)
|
8 |
[![Total Downloads](https://img.shields.io/packagist/dt/php-http/message.svg?style=flat-square)](https://packagist.org/packages/php-http/message)
|
9 |
|
10 |
**HTTP Message related tools.**
|
43 |
```
|
44 |
|
45 |
|
46 |
+
## Contributing
|
47 |
+
|
48 |
+
Please see our [contributing guide](http://docs.php-http.org/en/latest/development/contributing.html).
|
49 |
+
|
50 |
## Credits
|
51 |
|
52 |
Thanks to [Cuzzle](https://github.com/namshi/cuzzle) for inpiration for the `CurlCommandFormatter`.
|
53 |
|
54 |
+
## Security
|
55 |
+
|
56 |
+
If you discover any security related issues, please contact us at [security@php-http.org](mailto:security@php-http.org).
|
57 |
+
|
58 |
|
59 |
## License
|
60 |
|
vendor/php-http/message/src/Authentication.php
CHANGED
@@ -5,21 +5,18 @@ namespace Http\Message;
|
|
5 |
use Psr\Http\Message\RequestInterface;
|
6 |
|
7 |
/**
|
8 |
-
*
|
9 |
*
|
10 |
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
|
11 |
*/
|
12 |
interface Authentication
|
13 |
{
|
14 |
/**
|
15 |
-
*
|
16 |
*
|
17 |
-
*
|
18 |
-
* separate HTTP requests to obtain a valid token.
|
19 |
*
|
20 |
-
* @
|
21 |
-
*
|
22 |
-
* @return RequestInterface The request with added authentication information
|
23 |
*/
|
24 |
public function authenticate(RequestInterface $request);
|
25 |
}
|
5 |
use Psr\Http\Message\RequestInterface;
|
6 |
|
7 |
/**
|
8 |
+
* Authenticate a PSR-7 Request.
|
9 |
*
|
10 |
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
|
11 |
*/
|
12 |
interface Authentication
|
13 |
{
|
14 |
/**
|
15 |
+
* Authenticates a request.
|
16 |
*
|
17 |
+
* @param RequestInterface $request
|
|
|
18 |
*
|
19 |
+
* @return RequestInterface
|
|
|
|
|
20 |
*/
|
21 |
public function authenticate(RequestInterface $request);
|
22 |
}
|
vendor/php-http/message/src/Authentication/Header.php
DELETED
@@ -1,33 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Http\Message\Authentication;
|
4 |
-
|
5 |
-
use Http\Message\Authentication;
|
6 |
-
use Psr\Http\Message\RequestInterface;
|
7 |
-
|
8 |
-
class Header implements Authentication
|
9 |
-
{
|
10 |
-
/**
|
11 |
-
* @var string
|
12 |
-
*/
|
13 |
-
private $name;
|
14 |
-
|
15 |
-
/**
|
16 |
-
* @var string|array
|
17 |
-
*/
|
18 |
-
private $value;
|
19 |
-
|
20 |
-
public function __construct(string $name, $value)
|
21 |
-
{
|
22 |
-
$this->name = $name;
|
23 |
-
$this->value = $value;
|
24 |
-
}
|
25 |
-
|
26 |
-
/**
|
27 |
-
* {@inheritdoc}
|
28 |
-
*/
|
29 |
-
public function authenticate(RequestInterface $request)
|
30 |
-
{
|
31 |
-
return $request->withHeader($this->name, $this->value);
|
32 |
-
}
|
33 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor/php-http/message/src/Authentication/Matching.php
CHANGED
@@ -27,6 +27,10 @@ final class Matching implements Authentication
|
|
27 |
*/
|
28 |
private $matcher;
|
29 |
|
|
|
|
|
|
|
|
|
30 |
public function __construct(Authentication $authentication, callable $matcher = null)
|
31 |
{
|
32 |
if (is_null($matcher)) {
|
@@ -54,7 +58,8 @@ final class Matching implements Authentication
|
|
54 |
/**
|
55 |
* Creates a matching authentication for an URL.
|
56 |
*
|
57 |
-
* @param
|
|
|
58 |
*
|
59 |
* @return self
|
60 |
*/
|
27 |
*/
|
28 |
private $matcher;
|
29 |
|
30 |
+
/**
|
31 |
+
* @param Authentication $authentication
|
32 |
+
* @param callable|null $matcher
|
33 |
+
*/
|
34 |
public function __construct(Authentication $authentication, callable $matcher = null)
|
35 |
{
|
36 |
if (is_null($matcher)) {
|
58 |
/**
|
59 |
* Creates a matching authentication for an URL.
|
60 |
*
|
61 |
+
* @param Authentication $authentication
|
62 |
+
* @param string $url
|
63 |
*
|
64 |
* @return self
|
65 |
*/
|
vendor/php-http/message/src/Authentication/QueryParam.php
CHANGED
@@ -20,6 +20,9 @@ final class QueryParam implements Authentication
|
|
20 |
*/
|
21 |
private $params = [];
|
22 |
|
|
|
|
|
|
|
23 |
public function __construct(array $params)
|
24 |
{
|
25 |
$this->params = $params;
|
20 |
*/
|
21 |
private $params = [];
|
22 |
|
23 |
+
/**
|
24 |
+
* @param array $params
|
25 |
+
*/
|
26 |
public function __construct(array $params)
|
27 |
{
|
28 |
$this->params = $params;
|
vendor/php-http/message/src/Authentication/RequestConditional.php
CHANGED
@@ -23,6 +23,10 @@ final class RequestConditional implements Authentication
|
|
23 |
*/
|
24 |
private $authentication;
|
25 |
|
|
|
|
|
|
|
|
|
26 |
public function __construct(RequestMatcher $requestMatcher, Authentication $authentication)
|
27 |
{
|
28 |
$this->requestMatcher = $requestMatcher;
|
23 |
*/
|
24 |
private $authentication;
|
25 |
|
26 |
+
/**
|
27 |
+
* @param RequestMatcher $requestMatcher
|
28 |
+
* @param Authentication $authentication
|
29 |
+
*/
|
30 |
public function __construct(RequestMatcher $requestMatcher, Authentication $authentication)
|
31 |
{
|
32 |
$this->requestMatcher = $requestMatcher;
|
vendor/php-http/message/src/Builder/ResponseBuilder.php
CHANGED
@@ -18,6 +18,8 @@ class ResponseBuilder
|
|
18 |
|
19 |
/**
|
20 |
* Create builder for the given response.
|
|
|
|
|
21 |
*/
|
22 |
public function __construct(ResponseInterface $response)
|
23 |
{
|
@@ -37,12 +39,12 @@ class ResponseBuilder
|
|
37 |
/**
|
38 |
* Add headers represented by an array of header lines.
|
39 |
*
|
40 |
-
* @param string[] $headers
|
41 |
*
|
42 |
* @return $this
|
43 |
*
|
44 |
-
* @throws \UnexpectedValueException
|
45 |
-
* @throws \InvalidArgumentException
|
46 |
*/
|
47 |
public function setHeadersFromArray(array $headers)
|
48 |
{
|
@@ -64,12 +66,12 @@ class ResponseBuilder
|
|
64 |
/**
|
65 |
* Add headers represented by a single string.
|
66 |
*
|
67 |
-
* @param string $headers
|
68 |
*
|
69 |
* @return $this
|
70 |
*
|
71 |
* @throws \InvalidArgumentException if $headers is not a string on object with __toString()
|
72 |
-
* @throws \UnexpectedValueException
|
73 |
*/
|
74 |
public function setHeadersFromString($headers)
|
75 |
{
|
@@ -93,11 +95,11 @@ class ResponseBuilder
|
|
93 |
/**
|
94 |
* Set response status from a status string.
|
95 |
*
|
96 |
-
* @param string $statusLine
|
97 |
*
|
98 |
* @return $this
|
99 |
*
|
100 |
-
* @throws \InvalidArgumentException
|
101 |
*/
|
102 |
public function setStatus($statusLine)
|
103 |
{
|
@@ -119,11 +121,11 @@ class ResponseBuilder
|
|
119 |
/**
|
120 |
* Add header represented by a string.
|
121 |
*
|
122 |
-
* @param string $headerLine
|
123 |
*
|
124 |
* @return $this
|
125 |
*
|
126 |
-
* @throws \InvalidArgumentException
|
127 |
*/
|
128 |
public function addHeader($headerLine)
|
129 |
{
|
18 |
|
19 |
/**
|
20 |
* Create builder for the given response.
|
21 |
+
*
|
22 |
+
* @param ResponseInterface $response
|
23 |
*/
|
24 |
public function __construct(ResponseInterface $response)
|
25 |
{
|
39 |
/**
|
40 |
* Add headers represented by an array of header lines.
|
41 |
*
|
42 |
+
* @param string[] $headers Response headers as array of header lines.
|
43 |
*
|
44 |
* @return $this
|
45 |
*
|
46 |
+
* @throws \UnexpectedValueException For invalid header values.
|
47 |
+
* @throws \InvalidArgumentException For invalid status code arguments.
|
48 |
*/
|
49 |
public function setHeadersFromArray(array $headers)
|
50 |
{
|
66 |
/**
|
67 |
* Add headers represented by a single string.
|
68 |
*
|
69 |
+
* @param string $headers Response headers as single string.
|
70 |
*
|
71 |
* @return $this
|
72 |
*
|
73 |
* @throws \InvalidArgumentException if $headers is not a string on object with __toString()
|
74 |
+
* @throws \UnexpectedValueException For invalid header values.
|
75 |
*/
|
76 |
public function setHeadersFromString($headers)
|
77 |
{
|
95 |
/**
|
96 |
* Set response status from a status string.
|
97 |
*
|
98 |
+
* @param string $statusLine Response status as a string.
|
99 |
*
|
100 |
* @return $this
|
101 |
*
|
102 |
+
* @throws \InvalidArgumentException For invalid status line.
|
103 |
*/
|
104 |
public function setStatus($statusLine)
|
105 |
{
|
121 |
/**
|
122 |
* Add header represented by a string.
|
123 |
*
|
124 |
+
* @param string $headerLine Response header as a string.
|
125 |
*
|
126 |
* @return $this
|
127 |
*
|
128 |
+
* @throws \InvalidArgumentException For invalid header names or values.
|
129 |
*/
|
130 |
public function addHeader($headerLine)
|
131 |
{
|
vendor/php-http/message/src/Cookie.php
CHANGED
@@ -63,7 +63,7 @@ final class Cookie
|
|
63 |
* @param bool $httpOnly
|
64 |
* @param \DateTime|null $expires Expires attribute is HTTP 1.0 only and should be avoided.
|
65 |
*
|
66 |
-
* @throws \InvalidArgumentException
|
67 |
*/
|
68 |
public function __construct(
|
69 |
$name,
|
@@ -226,6 +226,8 @@ final class Cookie
|
|
226 |
/**
|
227 |
* Sets the expires.
|
228 |
*
|
|
|
|
|
229 |
* @return Cookie
|
230 |
*/
|
231 |
public function withExpires(\DateTime $expires = null)
|
@@ -433,7 +435,7 @@ final class Cookie
|
|
433 |
*
|
434 |
* @param string $name
|
435 |
*
|
436 |
-
* @throws \InvalidArgumentException
|
437 |
*/
|
438 |
private function validateName($name)
|
439 |
{
|
@@ -454,7 +456,7 @@ final class Cookie
|
|
454 |
*
|
455 |
* @param string|null $value
|
456 |
*
|
457 |
-
* @throws \InvalidArgumentException
|
458 |
*/
|
459 |
private function validateValue($value)
|
460 |
{
|
@@ -470,7 +472,7 @@ final class Cookie
|
|
470 |
*
|
471 |
* @param int|null $maxAge
|
472 |
*
|
473 |
-
* @throws \InvalidArgumentException
|
474 |
*/
|
475 |
private function validateMaxAge($maxAge)
|
476 |
{
|
63 |
* @param bool $httpOnly
|
64 |
* @param \DateTime|null $expires Expires attribute is HTTP 1.0 only and should be avoided.
|
65 |
*
|
66 |
+
* @throws \InvalidArgumentException If name, value or max age is not valid.
|
67 |
*/
|
68 |
public function __construct(
|
69 |
$name,
|
226 |
/**
|
227 |
* Sets the expires.
|
228 |
*
|
229 |
+
* @param \DateTime|null $expires
|
230 |
+
*
|
231 |
* @return Cookie
|
232 |
*/
|
233 |
public function withExpires(\DateTime $expires = null)
|
435 |
*
|
436 |
* @param string $name
|
437 |
*
|
438 |
+
* @throws \InvalidArgumentException If the name is empty or contains invalid characters.
|
439 |
*/
|
440 |
private function validateName($name)
|
441 |
{
|
456 |
*
|
457 |
* @param string|null $value
|
458 |
*
|
459 |
+
* @throws \InvalidArgumentException If the value contains invalid characters.
|
460 |
*/
|
461 |
private function validateValue($value)
|
462 |
{
|
472 |
*
|
473 |
* @param int|null $maxAge
|
474 |
*
|
475 |
+
* @throws \InvalidArgumentException If the Max-Age is not an empty or integer value.
|
476 |
*/
|
477 |
private function validateMaxAge($maxAge)
|
478 |
{
|
vendor/php-http/message/src/CookieJar.php
CHANGED
@@ -22,6 +22,8 @@ final class CookieJar implements \Countable, \IteratorAggregate
|
|
22 |
/**
|
23 |
* Checks if there is a cookie.
|
24 |
*
|
|
|
|
|
25 |
* @return bool
|
26 |
*/
|
27 |
public function hasCookie(Cookie $cookie)
|
@@ -31,6 +33,8 @@ final class CookieJar implements \Countable, \IteratorAggregate
|
|
31 |
|
32 |
/**
|
33 |
* Adds a cookie.
|
|
|
|
|
34 |
*/
|
35 |
public function addCookie(Cookie $cookie)
|
36 |
{
|
@@ -53,6 +57,8 @@ final class CookieJar implements \Countable, \IteratorAggregate
|
|
53 |
|
54 |
/**
|
55 |
* Removes a cookie.
|
|
|
|
|
56 |
*/
|
57 |
public function removeCookie(Cookie $cookie)
|
58 |
{
|
@@ -76,6 +82,8 @@ final class CookieJar implements \Countable, \IteratorAggregate
|
|
76 |
/**
|
77 |
* Returns all matching cookies.
|
78 |
*
|
|
|
|
|
79 |
* @return Cookie[]
|
80 |
*/
|
81 |
public function getMatchingCookies(Cookie $cookie)
|
@@ -90,6 +98,8 @@ final class CookieJar implements \Countable, \IteratorAggregate
|
|
90 |
/**
|
91 |
* Finds matching cookies based on a callable.
|
92 |
*
|
|
|
|
|
93 |
* @return Cookie[]
|
94 |
*/
|
95 |
protected function findMatchingCookies(callable $match)
|
22 |
/**
|
23 |
* Checks if there is a cookie.
|
24 |
*
|
25 |
+
* @param Cookie $cookie
|
26 |
+
*
|
27 |
* @return bool
|
28 |
*/
|
29 |
public function hasCookie(Cookie $cookie)
|
33 |
|
34 |
/**
|
35 |
* Adds a cookie.
|
36 |
+
*
|
37 |
+
* @param Cookie $cookie
|
38 |
*/
|
39 |
public function addCookie(Cookie $cookie)
|
40 |
{
|
57 |
|
58 |
/**
|
59 |
* Removes a cookie.
|
60 |
+
*
|
61 |
+
* @param Cookie $cookie
|
62 |
*/
|
63 |
public function removeCookie(Cookie $cookie)
|
64 |
{
|
82 |
/**
|
83 |
* Returns all matching cookies.
|
84 |
*
|
85 |
+
* @param Cookie $cookie
|
86 |
+
*
|
87 |
* @return Cookie[]
|
88 |
*/
|
89 |
public function getMatchingCookies(Cookie $cookie)
|
98 |
/**
|
99 |
* Finds matching cookies based on a callable.
|
100 |
*
|
101 |
+
* @param callable $match
|
102 |
+
*
|
103 |
* @return Cookie[]
|
104 |
*/
|
105 |
protected function findMatchingCookies(callable $match)
|
vendor/php-http/message/src/CookieUtil.php
CHANGED
@@ -30,7 +30,7 @@ final class CookieUtil
|
|
30 |
*
|
31 |
* @return \DateTime
|
32 |
*
|
33 |
-
* @throws UnexpectedValueException if we cannot parse the cookie date string
|
34 |
*/
|
35 |
public static function parseDate($dateValue)
|
36 |
{
|
30 |
*
|
31 |
* @return \DateTime
|
32 |
*
|
33 |
+
* @throws UnexpectedValueException if we cannot parse the cookie date string.
|
34 |
*/
|
35 |
public static function parseDate($dateValue)
|
36 |
{
|
vendor/php-http/message/src/Decorator/RequestDecorator.php
CHANGED
@@ -17,6 +17,8 @@ trait RequestDecorator
|
|
17 |
/**
|
18 |
* Exchanges the underlying request with another.
|
19 |
*
|
|
|
|
|
20 |
* @return self
|
21 |
*/
|
22 |
public function withRequest(RequestInterface $request)
|
17 |
/**
|
18 |
* Exchanges the underlying request with another.
|
19 |
*
|
20 |
+
* @param RequestInterface $request
|
21 |
+
*
|
22 |
* @return self
|
23 |
*/
|
24 |
public function withRequest(RequestInterface $request)
|
vendor/php-http/message/src/Decorator/ResponseDecorator.php
CHANGED
@@ -16,6 +16,8 @@ trait ResponseDecorator
|
|
16 |
/**
|
17 |
* Exchanges the underlying response with another.
|
18 |
*
|
|
|
|
|
19 |
* @return self
|
20 |
*/
|
21 |
public function withResponse(ResponseInterface $response)
|
16 |
/**
|
17 |
* Exchanges the underlying response with another.
|
18 |
*
|
19 |
+
* @param ResponseInterface $response
|
20 |
+
*
|
21 |
* @return self
|
22 |
*/
|
23 |
public function withResponse(ResponseInterface $response)
|
vendor/php-http/message/src/Encoding/CompressStream.php
CHANGED
@@ -13,7 +13,8 @@ use Psr\Http\Message\StreamInterface;
|
|
13 |
class CompressStream extends FilteredStream
|
14 |
{
|
15 |
/**
|
16 |
-
* @param
|
|
|
17 |
*/
|
18 |
public function __construct(StreamInterface $stream, $level = -1)
|
19 |
{
|
13 |
class CompressStream extends FilteredStream
|
14 |
{
|
15 |
/**
|
16 |
+
* @param StreamInterface $stream
|
17 |
+
* @param int $level
|
18 |
*/
|
19 |
public function __construct(StreamInterface $stream, $level = -1)
|
20 |
{
|
vendor/php-http/message/src/Encoding/DecompressStream.php
CHANGED
@@ -13,7 +13,8 @@ use Psr\Http\Message\StreamInterface;
|
|
13 |
class DecompressStream extends FilteredStream
|
14 |
{
|
15 |
/**
|
16 |
-
* @param
|
|
|
17 |
*/
|
18 |
public function __construct(StreamInterface $stream, $level = -1)
|
19 |
{
|
13 |
class DecompressStream extends FilteredStream
|
14 |
{
|
15 |
/**
|
16 |
+
* @param StreamInterface $stream
|
17 |
+
* @param int $level
|
18 |
*/
|
19 |
public function __construct(StreamInterface $stream, $level = -1)
|
20 |
{
|
vendor/php-http/message/src/Encoding/DeflateStream.php
CHANGED
@@ -13,7 +13,8 @@ use Psr\Http\Message\StreamInterface;
|
|
13 |
class DeflateStream extends FilteredStream
|
14 |
{
|
15 |
/**
|
16 |
-
* @param
|
|
|
17 |
*/
|
18 |
public function __construct(StreamInterface $stream, $level = -1)
|
19 |
{
|
13 |
class DeflateStream extends FilteredStream
|
14 |
{
|
15 |
/**
|
16 |
+
* @param StreamInterface $stream
|
17 |
+
* @param int $level
|
18 |
*/
|
19 |
public function __construct(StreamInterface $stream, $level = -1)
|
20 |
{
|
vendor/php-http/message/src/Encoding/FilteredStream.php
CHANGED
@@ -54,8 +54,9 @@ abstract class FilteredStream implements StreamInterface
|
|
54 |
protected $buffer = '';
|
55 |
|
56 |
/**
|
57 |
-
* @param
|
58 |
-
* @param mixed|null
|
|
|
59 |
*/
|
60 |
public function __construct(StreamInterface $stream, $readFilterOptions = null, $writeFilterOptions = null)
|
61 |
{
|
54 |
protected $buffer = '';
|
55 |
|
56 |
/**
|
57 |
+
* @param StreamInterface $stream
|
58 |
+
* @param mixed|null $readFilterOptions
|
59 |
+
* @param mixed|null $writeFilterOptions deprecated since 1.5, will be removed in 2.0
|
60 |
*/
|
61 |
public function __construct(StreamInterface $stream, $readFilterOptions = null, $writeFilterOptions = null)
|
62 |
{
|
vendor/php-http/message/src/Encoding/GzipDecodeStream.php
CHANGED
@@ -13,7 +13,8 @@ use Psr\Http\Message\StreamInterface;
|
|
13 |
class GzipDecodeStream extends FilteredStream
|
14 |
{
|
15 |
/**
|
16 |
-
* @param
|
|
|
17 |
*/
|
18 |
public function __construct(StreamInterface $stream, $level = -1)
|
19 |
{
|
13 |
class GzipDecodeStream extends FilteredStream
|
14 |
{
|
15 |
/**
|
16 |
+
* @param StreamInterface $stream
|
17 |
+
* @param int $level
|
18 |
*/
|
19 |
public function __construct(StreamInterface $stream, $level = -1)
|
20 |
{
|
vendor/php-http/message/src/Encoding/GzipEncodeStream.php
CHANGED
@@ -13,7 +13,8 @@ use Psr\Http\Message\StreamInterface;
|
|
13 |
class GzipEncodeStream extends FilteredStream
|
14 |
{
|
15 |
/**
|
16 |
-
* @param
|
|
|
17 |
*/
|
18 |
public function __construct(StreamInterface $stream, $level = -1)
|
19 |
{
|
13 |
class GzipEncodeStream extends FilteredStream
|
14 |
{
|
15 |
/**
|
16 |
+
* @param StreamInterface $stream
|
17 |
+
* @param int $level
|
18 |
*/
|
19 |
public function __construct(StreamInterface $stream, $level = -1)
|
20 |
{
|
vendor/php-http/message/src/Encoding/InflateStream.php
CHANGED
@@ -13,7 +13,8 @@ use Psr\Http\Message\StreamInterface;
|
|
13 |
class InflateStream extends FilteredStream
|
14 |
{
|
15 |
/**
|
16 |
-
* @param
|
|
|
17 |
*/
|
18 |
public function __construct(StreamInterface $stream, $level = -1)
|
19 |
{
|
13 |
class InflateStream extends FilteredStream
|
14 |
{
|
15 |
/**
|
16 |
+
* @param StreamInterface $stream
|
17 |
+
* @param int $level
|
18 |
*/
|
19 |
public function __construct(StreamInterface $stream, $level = -1)
|
20 |
{
|
vendor/php-http/message/src/Formatter.php
CHANGED
@@ -15,6 +15,8 @@ interface Formatter
|
|
15 |
/**
|
16 |
* Formats a request.
|
17 |
*
|
|
|
|
|
18 |
* @return string
|
19 |
*/
|
20 |
public function formatRequest(RequestInterface $request);
|
@@ -22,6 +24,8 @@ interface Formatter
|
|
22 |
/**
|
23 |
* Formats a response.
|
24 |
*
|
|
|
|
|
25 |
* @return string
|
26 |
*/
|
27 |
public function formatResponse(ResponseInterface $response);
|
15 |
/**
|
16 |
* Formats a request.
|
17 |
*
|
18 |
+
* @param RequestInterface $request
|
19 |
+
*
|
20 |
* @return string
|
21 |
*/
|
22 |
public function formatRequest(RequestInterface $request);
|
24 |
/**
|
25 |
* Formats a response.
|
26 |
*
|
27 |
+
* @param ResponseInterface $response
|
28 |
+
*
|
29 |
* @return string
|
30 |
*/
|
31 |
public function formatResponse(ResponseInterface $response);
|
vendor/php-http/message/src/Formatter/CurlCommandFormatter.php
CHANGED
@@ -36,14 +36,10 @@ class CurlCommandFormatter implements Formatter
|
|
36 |
|
37 |
$body = $request->getBody();
|
38 |
if ($body->getSize() > 0) {
|
39 |
-
|
40 |
-
if ($body->getSize() > 8192) {
|
41 |
-
$data = '[too long stream omitted]';
|
42 |
-
} elseif ($body->isSeekable()) {
|
43 |
$data = $body->__toString();
|
44 |
$body->rewind();
|
45 |
-
|
46 |
-
if (preg_match('/([\x00-\x09\x0C\x0E-\x1F\x7F])/', $data)) {
|
47 |
$data = '[binary stream omitted]';
|
48 |
}
|
49 |
} else {
|
@@ -69,6 +65,8 @@ class CurlCommandFormatter implements Formatter
|
|
69 |
}
|
70 |
|
71 |
/**
|
|
|
|
|
72 |
* @return string
|
73 |
*/
|
74 |
private function getHeadersAsCommandOptions(RequestInterface $request)
|
36 |
|
37 |
$body = $request->getBody();
|
38 |
if ($body->getSize() > 0) {
|
39 |
+
if ($body->isSeekable()) {
|
|
|
|
|
|
|
40 |
$data = $body->__toString();
|
41 |
$body->rewind();
|
42 |
+
if (preg_match('/[\x00-\x1F\x7F]/', $data)) {
|
|
|
43 |
$data = '[binary stream omitted]';
|
44 |
}
|
45 |
} else {
|
65 |
}
|
66 |
|
67 |
/**
|
68 |
+
* @param RequestInterface $request
|
69 |
+
*
|
70 |
* @return string
|
71 |
*/
|
72 |
private function getHeadersAsCommandOptions(RequestInterface $request)
|
vendor/php-http/message/src/Formatter/FullHttpMessageFormatter.php
CHANGED
@@ -17,12 +17,12 @@ class FullHttpMessageFormatter implements Formatter
|
|
17 |
/**
|
18 |
* The maximum length of the body.
|
19 |
*
|
20 |
-
* @var int
|
21 |
*/
|
22 |
private $maxBodyLength;
|
23 |
|
24 |
/**
|
25 |
-
* @param int
|
26 |
*/
|
27 |
public function __construct($maxBodyLength = 1000)
|
28 |
{
|
@@ -70,31 +70,22 @@ class FullHttpMessageFormatter implements Formatter
|
|
70 |
/**
|
71 |
* Add the message body if the stream is seekable.
|
72 |
*
|
73 |
-
* @param
|
|
|
74 |
*
|
75 |
* @return string
|
76 |
*/
|
77 |
private function addBody(MessageInterface $request, $message)
|
78 |
{
|
79 |
-
$message .= "\n";
|
80 |
$stream = $request->getBody();
|
81 |
if (!$stream->isSeekable() || 0 === $this->maxBodyLength) {
|
82 |
// Do not read the stream
|
83 |
-
|
|
|
|
|
|
|
84 |
}
|
85 |
|
86 |
-
|
87 |
-
$stream->rewind();
|
88 |
-
|
89 |
-
// all non-printable ASCII characters and <DEL> except for \t, \r, \n
|
90 |
-
if (preg_match('/([\x00-\x09\x0C\x0E-\x1F\x7F])/', $data)) {
|
91 |
-
return $message.'[binary stream omitted]';
|
92 |
-
}
|
93 |
-
|
94 |
-
if (null === $this->maxBodyLength) {
|
95 |
-
return $message.$data;
|
96 |
-
}
|
97 |
-
|
98 |
-
return $message.mb_substr($data, 0, $this->maxBodyLength);
|
99 |
}
|
100 |
}
|
17 |
/**
|
18 |
* The maximum length of the body.
|
19 |
*
|
20 |
+
* @var int
|
21 |
*/
|
22 |
private $maxBodyLength;
|
23 |
|
24 |
/**
|
25 |
+
* @param int $maxBodyLength
|
26 |
*/
|
27 |
public function __construct($maxBodyLength = 1000)
|
28 |
{
|
70 |
/**
|
71 |
* Add the message body if the stream is seekable.
|
72 |
*
|
73 |
+
* @param MessageInterface $request
|
74 |
+
* @param string $message
|
75 |
*
|
76 |
* @return string
|
77 |
*/
|
78 |
private function addBody(MessageInterface $request, $message)
|
79 |
{
|
|
|
80 |
$stream = $request->getBody();
|
81 |
if (!$stream->isSeekable() || 0 === $this->maxBodyLength) {
|
82 |
// Do not read the stream
|
83 |
+
$message .= "\n";
|
84 |
+
} else {
|
85 |
+
$message .= "\n".mb_substr($stream->__toString(), 0, $this->maxBodyLength);
|
86 |
+
$stream->rewind();
|
87 |
}
|
88 |
|
89 |
+
return $message;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
}
|
91 |
}
|
vendor/php-http/message/src/MessageFactory/DiactorosMessageFactory.php
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
|
3 |
namespace Http\Message\MessageFactory;
|
4 |
|
5 |
-
use Http\Message\MessageFactory;
|
6 |
use Http\Message\StreamFactory\DiactorosStreamFactory;
|
|
|
7 |
use Zend\Diactoros\Request;
|
8 |
use Zend\Diactoros\Response;
|
9 |
|
@@ -11,8 +11,6 @@ use Zend\Diactoros\Response;
|
|
11 |
* Creates Diactoros messages.
|
12 |
*
|
13 |
* @author GeLo <geloen.eric@gmail.com>
|
14 |
-
*
|
15 |
-
* @deprecated This will be removed in php-http/message2.0. Consider using the official Diactoros PSR-17 factory
|
16 |
*/
|
17 |
final class DiactorosMessageFactory implements MessageFactory
|
18 |
{
|
2 |
|
3 |
namespace Http\Message\MessageFactory;
|
4 |
|
|
|
5 |
use Http\Message\StreamFactory\DiactorosStreamFactory;
|
6 |
+
use Http\Message\MessageFactory;
|
7 |
use Zend\Diactoros\Request;
|
8 |
use Zend\Diactoros\Response;
|
9 |
|
11 |
* Creates Diactoros messages.
|
12 |
*
|
13 |
* @author GeLo <geloen.eric@gmail.com>
|
|
|
|
|
14 |
*/
|
15 |
final class DiactorosMessageFactory implements MessageFactory
|
16 |
{
|
vendor/php-http/message/src/MessageFactory/GuzzleMessageFactory.php
CHANGED
@@ -10,8 +10,6 @@ use Http\Message\MessageFactory;
|
|
10 |
* Creates Guzzle messages.
|
11 |
*
|
12 |
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
|
13 |
-
*
|
14 |
-
* @deprecated This will be removed in php-http/message2.0. Consider using the official Guzzle PSR-17 factory
|
15 |
*/
|
16 |
final class GuzzleMessageFactory implements MessageFactory
|
17 |
{
|
10 |
* Creates Guzzle messages.
|
11 |
*
|
12 |
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
|
|
|
|
|
13 |
*/
|
14 |
final class GuzzleMessageFactory implements MessageFactory
|
15 |
{
|
vendor/php-http/message/src/MessageFactory/SlimMessageFactory.php
CHANGED
@@ -2,19 +2,17 @@
|
|
2 |
|
3 |
namespace Http\Message\MessageFactory;
|
4 |
|
5 |
-
use Http\Message\MessageFactory;
|
6 |
use Http\Message\StreamFactory\SlimStreamFactory;
|
7 |
use Http\Message\UriFactory\SlimUriFactory;
|
8 |
-
use
|
9 |
use Slim\Http\Request;
|
10 |
use Slim\Http\Response;
|
|
|
11 |
|
12 |
/**
|
13 |
* Creates Slim 3 messages.
|
14 |
*
|
15 |
* @author Mika Tuupola <tuupola@appelsiini.net>
|
16 |
-
*
|
17 |
-
* @deprecated This will be removed in php-http/message2.0. Consider using the official Slim PSR-17 factory
|
18 |
*/
|
19 |
final class SlimMessageFactory implements MessageFactory
|
20 |
{
|
2 |
|
3 |
namespace Http\Message\MessageFactory;
|
4 |
|
|
|
5 |
use Http\Message\StreamFactory\SlimStreamFactory;
|
6 |
use Http\Message\UriFactory\SlimUriFactory;
|
7 |
+
use Http\Message\MessageFactory;
|
8 |
use Slim\Http\Request;
|
9 |
use Slim\Http\Response;
|
10 |
+
use Slim\Http\Headers;
|
11 |
|
12 |
/**
|
13 |
* Creates Slim 3 messages.
|
14 |
*
|
15 |
* @author Mika Tuupola <tuupola@appelsiini.net>
|
|
|
|
|
16 |
*/
|
17 |
final class SlimMessageFactory implements MessageFactory
|
18 |
{
|
vendor/php-http/message/src/RequestMatcher/CallbackRequestMatcher.php
CHANGED
@@ -17,6 +17,9 @@ final class CallbackRequestMatcher implements RequestMatcher
|
|
17 |
*/
|
18 |
private $callback;
|
19 |
|
|
|
|
|
|
|
20 |
public function __construct(callable $callback)
|
21 |
{
|
22 |
$this->callback = $callback;
|
17 |
*/
|
18 |
private $callback;
|
19 |
|
20 |
+
/**
|
21 |
+
* @param callable $callback
|
22 |
+
*/
|
23 |
public function __construct(callable $callback)
|
24 |
{
|
25 |
$this->callback = $callback;
|
vendor/php-http/message/src/StreamFactory/DiactorosStreamFactory.php
CHANGED
@@ -10,8 +10,6 @@ use Zend\Diactoros\Stream;
|
|
10 |
* Creates Diactoros streams.
|
11 |
*
|
12 |
* @author Михаил Красильников <m.krasilnikov@yandex.ru>
|
13 |
-
*
|
14 |
-
* @deprecated This will be removed in php-http/message2.0. Consider using the official Diactoros PSR-17 factory
|
15 |
*/
|
16 |
final class DiactorosStreamFactory implements StreamFactory
|
17 |
{
|
10 |
* Creates Diactoros streams.
|
11 |
*
|
12 |
* @author Михаил Красильников <m.krasilnikov@yandex.ru>
|
|
|
|
|
13 |
*/
|
14 |
final class DiactorosStreamFactory implements StreamFactory
|
15 |
{
|
vendor/php-http/message/src/StreamFactory/GuzzleStreamFactory.php
CHANGED
@@ -8,8 +8,6 @@ use Http\Message\StreamFactory;
|
|
8 |
* Creates Guzzle streams.
|
9 |
*
|
10 |
* @author Михаил Красильников <m.krasilnikov@yandex.ru>
|
11 |
-
*
|
12 |
-
* @deprecated This will be removed in php-http/message2.0. Consider using the official Guzzle PSR-17 factory
|
13 |
*/
|
14 |
final class GuzzleStreamFactory implements StreamFactory
|
15 |
{
|
8 |
* Creates Guzzle streams.
|
9 |
*
|
10 |
* @author Михаил Красильников <m.krasilnikov@yandex.ru>
|
|
|
|
|
11 |
*/
|
12 |
final class GuzzleStreamFactory implements StreamFactory
|
13 |
{
|
vendor/php-http/message/src/StreamFactory/SlimStreamFactory.php
CHANGED
@@ -10,8 +10,6 @@ use Slim\Http\Stream;
|
|
10 |
* Creates Slim 3 streams.
|
11 |
*
|
12 |
* @author Mika Tuupola <tuupola@appelsiini.net>
|
13 |
-
*
|
14 |
-
* @deprecated This will be removed in php-http/message2.0. Consider using the official Slim PSR-17 factory
|
15 |
*/
|
16 |
final class SlimStreamFactory implements StreamFactory
|
17 |
{
|
10 |
* Creates Slim 3 streams.
|
11 |
*
|
12 |
* @author Mika Tuupola <tuupola@appelsiini.net>
|
|
|
|
|
13 |
*/
|
14 |
final class SlimStreamFactory implements StreamFactory
|
15 |
{
|
vendor/php-http/message/src/UriFactory/DiactorosUriFactory.php
CHANGED
@@ -10,8 +10,6 @@ use Zend\Diactoros\Uri;
|
|
10 |
* Creates Diactoros URI.
|
11 |
*
|
12 |
* @author David de Boer <david@ddeboer.nl>
|
13 |
-
*
|
14 |
-
* @deprecated This will be removed in php-http/message2.0. Consider using the official Diactoros PSR-17 factory
|
15 |
*/
|
16 |
final class DiactorosUriFactory implements UriFactory
|
17 |
{
|
10 |
* Creates Diactoros URI.
|
11 |
*
|
12 |
* @author David de Boer <david@ddeboer.nl>
|
|
|
|
|
13 |
*/
|
14 |
final class DiactorosUriFactory implements UriFactory
|
15 |
{
|
vendor/php-http/message/src/UriFactory/GuzzleUriFactory.php
CHANGED
@@ -9,8 +9,6 @@ use Http\Message\UriFactory;
|
|
9 |
* Creates Guzzle URI.
|
10 |
*
|
11 |
* @author David de Boer <david@ddeboer.nl>
|
12 |
-
*
|
13 |
-
* @deprecated This will be removed in php-http/message2.0. Consider using the official Guzzle PSR-17 factory
|
14 |
*/
|
15 |
final class GuzzleUriFactory implements UriFactory
|
16 |
{
|
9 |
* Creates Guzzle URI.
|
10 |
*
|
11 |
* @author David de Boer <david@ddeboer.nl>
|
|
|
|
|
12 |
*/
|
13 |
final class GuzzleUriFactory implements UriFactory
|
14 |
{
|
vendor/php-http/message/src/UriFactory/SlimUriFactory.php
CHANGED
@@ -10,8 +10,6 @@ use Slim\Http\Uri;
|
|
10 |
* Creates Slim 3 URI.
|
11 |
*
|
12 |
* @author Mika Tuupola <tuupola@appelsiini.net>
|
13 |
-
*
|
14 |
-
* @deprecated This will be removed in php-http/message2.0. Consider using the official Slim PSR-17 factory
|
15 |
*/
|
16 |
final class SlimUriFactory implements UriFactory
|
17 |
{
|
10 |
* Creates Slim 3 URI.
|
11 |
*
|
12 |
* @author Mika Tuupola <tuupola@appelsiini.net>
|
|
|
|
|
13 |
*/
|
14 |
final class SlimUriFactory implements UriFactory
|
15 |
{
|
vendor/php-http/promise/CHANGELOG.md
CHANGED
@@ -1,18 +1,5 @@
|
|
1 |
# Change Log
|
2 |
|
3 |
-
## 1.1.0 - 2020-07-07
|
4 |
-
|
5 |
-
### Added
|
6 |
-
|
7 |
-
- Test with PHP 7.1, 7.2, 7.3, 7.4 and 8.0
|
8 |
-
|
9 |
-
### Removed
|
10 |
-
|
11 |
-
- PHP 5 and 7.0 support
|
12 |
-
|
13 |
-
### Fixed
|
14 |
-
|
15 |
-
- Fixed PHPDoc for `Promise::then`
|
16 |
|
17 |
## 1.0.0 - 2016-01-26
|
18 |
|
1 |
# Change Log
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
## 1.0.0 - 2016-01-26
|
5 |
|
vendor/php-http/promise/README.md
CHANGED
@@ -23,7 +23,7 @@ $ composer require php-http/promise
|
|
23 |
|
24 |
## Documentation
|
25 |
|
26 |
-
Please see the [official documentation](http://docs.php-http.org
|
27 |
|
28 |
|
29 |
## Testing
|
@@ -40,7 +40,8 @@ Please see our [contributing guide](http://docs.php-http.org/en/latest/developme
|
|
40 |
|
41 |
## Security
|
42 |
|
43 |
-
If you discover any security related issues, please contact us at [security@
|
|
|
44 |
|
45 |
|
46 |
## License
|
23 |
|
24 |
## Documentation
|
25 |
|
26 |
+
Please see the [official documentation](http://docs.php-http.org).
|
27 |
|
28 |
|
29 |
## Testing
|
40 |
|
41 |
## Security
|
42 |
|
43 |
+
If you discover any security related issues, please contact us at [security@httplug.io](mailto:security@httplug.io)
|
44 |
+
or [security@php-http.org](mailto:security@php-http.org).
|
45 |
|
46 |
|
47 |
## License
|
vendor/php-http/promise/src/Promise.php
CHANGED
@@ -36,10 +36,10 @@ interface Promise
|
|
36 |
* If you do not care about one of the cases, you can set the corresponding callable to null
|
37 |
* The callback will be called when the value arrived and never more than once.
|
38 |
*
|
39 |
-
* @param callable
|
40 |
-
* @param callable
|
41 |
*
|
42 |
-
* @return Promise
|
43 |
*/
|
44 |
public function then(callable $onFulfilled = null, callable $onRejected = null);
|
45 |
|
@@ -63,7 +63,7 @@ interface Promise
|
|
63 |
*
|
64 |
* @return mixed Resolved value, null if $unwrap is set to false
|
65 |
*
|
66 |
-
* @throws \Exception
|
67 |
*/
|
68 |
public function wait($unwrap = true);
|
69 |
}
|
36 |
* If you do not care about one of the cases, you can set the corresponding callable to null
|
37 |
* The callback will be called when the value arrived and never more than once.
|
38 |
*
|
39 |
+
* @param callable $onFulfilled Called when a response will be available.
|
40 |
+
* @param callable $onRejected Called when an exception occurs.
|
41 |
*
|
42 |
+
* @return Promise A new resolved promise with value of the executed callback (onFulfilled / onRejected).
|
43 |
*/
|
44 |
public function then(callable $onFulfilled = null, callable $onRejected = null);
|
45 |
|
63 |
*
|
64 |
* @return mixed Resolved value, null if $unwrap is set to false
|
65 |
*
|
66 |
+
* @throws \Exception The rejection reason if $unwrap is set to true and the request failed.
|
67 |
*/
|
68 |
public function wait($unwrap = true);
|
69 |
}
|