Maurits van der Schee 5 years ago
parent
commit
9d00c89b8a

+ 0
- 2
.gitignore View File

@@ -1,5 +1,3 @@
1 1
 composer.phar
2 2
 composer.lock
3
-vendor/composer
4
-vendor/php-http
5 3
 .git

+ 4
- 4
README.md View File

@@ -122,13 +122,13 @@ The non-compiled code resides in the "`src`" and "`vendor`" directories.
122 122
 
123 123
 ## Dependencies
124 124
 
125
-You can install all dependencies of this project using the following command:
125
+You can update all dependencies of this project using the following command:
126 126
 
127
-    php install.php
127
+    php update.php
128 128
 
129
-This script will install and run [Composer](https://getcomposer.org/) to install the required dependencies in the "`vendor`" directory.
129
+This script will install and run [Composer](https://getcomposer.org/) to update the required dependencies in the "`vendor`" directory.
130 130
 
131
-NB: The install script will also patch the dependencies in the vendor directory for PHP 7.0 compatibility.
131
+NB: The update script will also patch the dependencies in the vendor directory for PHP 7.0 compatibility.
132 132
 
133 133
 ## Middleware
134 134
 

+ 1
- 3
update.php View File

@@ -6,9 +6,7 @@ if (!file_exists('composer.phar')) {
6 6
     $composer = file_get_contents('https://getcomposer.org/composer.phar');
7 7
     file_put_contents('composer.phar', $composer);
8 8
 }
9
-if (!file_exists('vendor')) {
10
-    exec('php composer.phar install');
11
-}
9
+exec('php composer.phar update');
12 10
 
13 11
 // patch files for PHP 7.0 compatibility
14 12
 

+ 1
- 1
vendor/autoload.php View File

@@ -4,4 +4,4 @@
4 4
 
5 5
 require_once __DIR__ . '/composer/autoload_real.php';
6 6
 
7
-return ComposerAutoloaderInit5eeaf7f95bcc7609b7c64262f10ae8ae::getLoader();
7
+return ComposerAutoloaderInit3f8e3ef0f01cbb66788ae8adbae6c82c::getLoader();

+ 445
- 0
vendor/composer/ClassLoader.php View File

@@ -0,0 +1,445 @@
1
+<?php
2
+
3
+/*
4
+ * This file is part of Composer.
5
+ *
6
+ * (c) Nils Adermann <naderman@naderman.de>
7
+ *     Jordi Boggiano <j.boggiano@seld.be>
8
+ *
9
+ * For the full copyright and license information, please view the LICENSE
10
+ * file that was distributed with this source code.
11
+ */
12
+
13
+namespace Composer\Autoload;
14
+
15
+/**
16
+ * ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
17
+ *
18
+ *     $loader = new \Composer\Autoload\ClassLoader();
19
+ *
20
+ *     // register classes with namespaces
21
+ *     $loader->add('Symfony\Component', __DIR__.'/component');
22
+ *     $loader->add('Symfony',           __DIR__.'/framework');
23
+ *
24
+ *     // activate the autoloader
25
+ *     $loader->register();
26
+ *
27
+ *     // to enable searching the include path (eg. for PEAR packages)
28
+ *     $loader->setUseIncludePath(true);
29
+ *
30
+ * In this example, if you try to use a class in the Symfony\Component
31
+ * namespace or one of its children (Symfony\Component\Console for instance),
32
+ * the autoloader will first look for the class under the component/
33
+ * directory, and it will then fallback to the framework/ directory if not
34
+ * found before giving up.
35
+ *
36
+ * This class is loosely based on the Symfony UniversalClassLoader.
37
+ *
38
+ * @author Fabien Potencier <fabien@symfony.com>
39
+ * @author Jordi Boggiano <j.boggiano@seld.be>
40
+ * @see    http://www.php-fig.org/psr/psr-0/
41
+ * @see    http://www.php-fig.org/psr/psr-4/
42
+ */
43
+class ClassLoader
44
+{
45
+    // PSR-4
46
+    private $prefixLengthsPsr4 = array();
47
+    private $prefixDirsPsr4 = array();
48
+    private $fallbackDirsPsr4 = array();
49
+
50
+    // PSR-0
51
+    private $prefixesPsr0 = array();
52
+    private $fallbackDirsPsr0 = array();
53
+
54
+    private $useIncludePath = false;
55
+    private $classMap = array();
56
+    private $classMapAuthoritative = false;
57
+    private $missingClasses = array();
58
+    private $apcuPrefix;
59
+
60
+    public function getPrefixes()
61
+    {
62
+        if (!empty($this->prefixesPsr0)) {
63
+            return call_user_func_array('array_merge', $this->prefixesPsr0);
64
+        }
65
+
66
+        return array();
67
+    }
68
+
69
+    public function getPrefixesPsr4()
70
+    {
71
+        return $this->prefixDirsPsr4;
72
+    }
73
+
74
+    public function getFallbackDirs()
75
+    {
76
+        return $this->fallbackDirsPsr0;
77
+    }
78
+
79
+    public function getFallbackDirsPsr4()
80
+    {
81
+        return $this->fallbackDirsPsr4;
82
+    }
83
+
84
+    public function getClassMap()
85
+    {
86
+        return $this->classMap;
87
+    }
88
+
89
+    /**
90
+     * @param array $classMap Class to filename map
91
+     */
92
+    public function addClassMap(array $classMap)
93
+    {
94
+        if ($this->classMap) {
95
+            $this->classMap = array_merge($this->classMap, $classMap);
96
+        } else {
97
+            $this->classMap = $classMap;
98
+        }
99
+    }
100
+
101
+    /**
102
+     * Registers a set of PSR-0 directories for a given prefix, either
103
+     * appending or prepending to the ones previously set for this prefix.
104
+     *
105
+     * @param string       $prefix  The prefix
106
+     * @param array|string $paths   The PSR-0 root directories
107
+     * @param bool         $prepend Whether to prepend the directories
108
+     */
109
+    public function add($prefix, $paths, $prepend = false)
110
+    {
111
+        if (!$prefix) {
112
+            if ($prepend) {
113
+                $this->fallbackDirsPsr0 = array_merge(
114
+                    (array) $paths,
115
+                    $this->fallbackDirsPsr0
116
+                );
117
+            } else {
118
+                $this->fallbackDirsPsr0 = array_merge(
119
+                    $this->fallbackDirsPsr0,
120
+                    (array) $paths
121
+                );
122
+            }
123
+
124
+            return;
125
+        }
126
+
127
+        $first = $prefix[0];
128
+        if (!isset($this->prefixesPsr0[$first][$prefix])) {
129
+            $this->prefixesPsr0[$first][$prefix] = (array) $paths;
130
+
131
+            return;
132
+        }
133
+        if ($prepend) {
134
+            $this->prefixesPsr0[$first][$prefix] = array_merge(
135
+                (array) $paths,
136
+                $this->prefixesPsr0[$first][$prefix]
137
+            );
138
+        } else {
139
+            $this->prefixesPsr0[$first][$prefix] = array_merge(
140
+                $this->prefixesPsr0[$first][$prefix],
141
+                (array) $paths
142
+            );
143
+        }
144
+    }
145
+
146
+    /**
147
+     * Registers a set of PSR-4 directories for a given namespace, either
148
+     * appending or prepending to the ones previously set for this namespace.
149
+     *
150
+     * @param string       $prefix  The prefix/namespace, with trailing '\\'
151
+     * @param array|string $paths   The PSR-4 base directories
152
+     * @param bool         $prepend Whether to prepend the directories
153
+     *
154
+     * @throws \InvalidArgumentException
155
+     */
156
+    public function addPsr4($prefix, $paths, $prepend = false)
157
+    {
158
+        if (!$prefix) {
159
+            // Register directories for the root namespace.
160
+            if ($prepend) {
161
+                $this->fallbackDirsPsr4 = array_merge(
162
+                    (array) $paths,
163
+                    $this->fallbackDirsPsr4
164
+                );
165
+            } else {
166
+                $this->fallbackDirsPsr4 = array_merge(
167
+                    $this->fallbackDirsPsr4,
168
+                    (array) $paths
169
+                );
170
+            }
171
+        } elseif (!isset($this->prefixDirsPsr4[$prefix])) {
172
+            // Register directories for a new namespace.
173
+            $length = strlen($prefix);
174
+            if ('\\' !== $prefix[$length - 1]) {
175
+                throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
176
+            }
177
+            $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
178
+            $this->prefixDirsPsr4[$prefix] = (array) $paths;
179
+        } elseif ($prepend) {
180
+            // Prepend directories for an already registered namespace.
181
+            $this->prefixDirsPsr4[$prefix] = array_merge(
182
+                (array) $paths,
183
+                $this->prefixDirsPsr4[$prefix]
184
+            );
185
+        } else {
186
+            // Append directories for an already registered namespace.
187
+            $this->prefixDirsPsr4[$prefix] = array_merge(
188
+                $this->prefixDirsPsr4[$prefix],
189
+                (array) $paths
190
+            );
191
+        }
192
+    }
193
+
194
+    /**
195
+     * Registers a set of PSR-0 directories for a given prefix,
196
+     * replacing any others previously set for this prefix.
197
+     *
198
+     * @param string       $prefix The prefix
199
+     * @param array|string $paths  The PSR-0 base directories
200
+     */
201
+    public function set($prefix, $paths)
202
+    {
203
+        if (!$prefix) {
204
+            $this->fallbackDirsPsr0 = (array) $paths;
205
+        } else {
206
+            $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;
207
+        }
208
+    }
209
+
210
+    /**
211
+     * Registers a set of PSR-4 directories for a given namespace,
212
+     * replacing any others previously set for this namespace.
213
+     *
214
+     * @param string       $prefix The prefix/namespace, with trailing '\\'
215
+     * @param array|string $paths  The PSR-4 base directories
216
+     *
217
+     * @throws \InvalidArgumentException
218
+     */
219
+    public function setPsr4($prefix, $paths)
220
+    {
221
+        if (!$prefix) {
222
+            $this->fallbackDirsPsr4 = (array) $paths;
223
+        } else {
224
+            $length = strlen($prefix);
225
+            if ('\\' !== $prefix[$length - 1]) {
226
+                throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
227
+            }
228
+            $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
229
+            $this->prefixDirsPsr4[$prefix] = (array) $paths;
230
+        }
231
+    }
232
+
233
+    /**
234
+     * Turns on searching the include path for class files.
235
+     *
236
+     * @param bool $useIncludePath
237
+     */
238
+    public function setUseIncludePath($useIncludePath)
239
+    {
240
+        $this->useIncludePath = $useIncludePath;
241
+    }
242
+
243
+    /**
244
+     * Can be used to check if the autoloader uses the include path to check
245
+     * for classes.
246
+     *
247
+     * @return bool
248
+     */
249
+    public function getUseIncludePath()
250
+    {
251
+        return $this->useIncludePath;
252
+    }
253
+
254
+    /**
255
+     * Turns off searching the prefix and fallback directories for classes
256
+     * that have not been registered with the class map.
257
+     *
258
+     * @param bool $classMapAuthoritative
259
+     */
260
+    public function setClassMapAuthoritative($classMapAuthoritative)
261
+    {
262
+        $this->classMapAuthoritative = $classMapAuthoritative;
263
+    }
264
+
265
+    /**
266
+     * Should class lookup fail if not found in the current class map?
267
+     *
268
+     * @return bool
269
+     */
270
+    public function isClassMapAuthoritative()
271
+    {
272
+        return $this->classMapAuthoritative;
273
+    }
274
+
275
+    /**
276
+     * APCu prefix to use to cache found/not-found classes, if the extension is enabled.
277
+     *
278
+     * @param string|null $apcuPrefix
279
+     */
280
+    public function setApcuPrefix($apcuPrefix)
281
+    {
282
+        $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;
283
+    }
284
+
285
+    /**
286
+     * The APCu prefix in use, or null if APCu caching is not enabled.
287
+     *
288
+     * @return string|null
289
+     */
290
+    public function getApcuPrefix()
291
+    {
292
+        return $this->apcuPrefix;
293
+    }
294
+
295
+    /**
296
+     * Registers this instance as an autoloader.
297
+     *
298
+     * @param bool $prepend Whether to prepend the autoloader or not
299
+     */
300
+    public function register($prepend = false)
301
+    {
302
+        spl_autoload_register(array($this, 'loadClass'), true, $prepend);
303
+    }
304
+
305
+    /**
306
+     * Unregisters this instance as an autoloader.
307
+     */
308
+    public function unregister()
309
+    {
310
+        spl_autoload_unregister(array($this, 'loadClass'));
311
+    }
312
+
313
+    /**
314
+     * Loads the given class or interface.
315
+     *
316
+     * @param  string    $class The name of the class
317
+     * @return bool|null True if loaded, null otherwise
318
+     */
319
+    public function loadClass($class)
320
+    {
321
+        if ($file = $this->findFile($class)) {
322
+            includeFile($file);
323
+
324
+            return true;
325
+        }
326
+    }
327
+
328
+    /**
329
+     * Finds the path to the file where the class is defined.
330
+     *
331
+     * @param string $class The name of the class
332
+     *
333
+     * @return string|false The path if found, false otherwise
334
+     */
335
+    public function findFile($class)
336
+    {
337
+        // class map lookup
338
+        if (isset($this->classMap[$class])) {
339
+            return $this->classMap[$class];
340
+        }
341
+        if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
342
+            return false;
343
+        }
344
+        if (null !== $this->apcuPrefix) {
345
+            $file = apcu_fetch($this->apcuPrefix.$class, $hit);
346
+            if ($hit) {
347
+                return $file;
348
+            }
349
+        }
350
+
351
+        $file = $this->findFileWithExtension($class, '.php');
352
+
353
+        // Search for Hack files if we are running on HHVM
354
+        if (false === $file && defined('HHVM_VERSION')) {
355
+            $file = $this->findFileWithExtension($class, '.hh');
356
+        }
357
+
358
+        if (null !== $this->apcuPrefix) {
359
+            apcu_add($this->apcuPrefix.$class, $file);
360
+        }
361
+
362
+        if (false === $file) {
363
+            // Remember that this class does not exist.
364
+            $this->missingClasses[$class] = true;
365
+        }
366
+
367
+        return $file;
368
+    }
369
+
370
+    private function findFileWithExtension($class, $ext)
371
+    {
372
+        // PSR-4 lookup
373
+        $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
374
+
375
+        $first = $class[0];
376
+        if (isset($this->prefixLengthsPsr4[$first])) {
377
+            $subPath = $class;
378
+            while (false !== $lastPos = strrpos($subPath, '\\')) {
379
+                $subPath = substr($subPath, 0, $lastPos);
380
+                $search = $subPath . '\\';
381
+                if (isset($this->prefixDirsPsr4[$search])) {
382
+                    $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
383
+                    foreach ($this->prefixDirsPsr4[$search] as $dir) {
384
+                        if (file_exists($file = $dir . $pathEnd)) {
385
+                            return $file;
386
+                        }
387
+                    }
388
+                }
389
+            }
390
+        }
391
+
392
+        // PSR-4 fallback dirs
393
+        foreach ($this->fallbackDirsPsr4 as $dir) {
394
+            if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
395
+                return $file;
396
+            }
397
+        }
398
+
399
+        // PSR-0 lookup
400
+        if (false !== $pos = strrpos($class, '\\')) {
401
+            // namespaced class name
402
+            $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1)
403
+                . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
404
+        } else {
405
+            // PEAR-like class name
406
+            $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
407
+        }
408
+
409
+        if (isset($this->prefixesPsr0[$first])) {
410
+            foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
411
+                if (0 === strpos($class, $prefix)) {
412
+                    foreach ($dirs as $dir) {
413
+                        if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
414
+                            return $file;
415
+                        }
416
+                    }
417
+                }
418
+            }
419
+        }
420
+
421
+        // PSR-0 fallback dirs
422
+        foreach ($this->fallbackDirsPsr0 as $dir) {
423
+            if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
424
+                return $file;
425
+            }
426
+        }
427
+
428
+        // PSR-0 include paths.
429
+        if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
430
+            return $file;
431
+        }
432
+
433
+        return false;
434
+    }
435
+}
436
+
437
+/**
438
+ * Scope isolated include.
439
+ *
440
+ * Prevents access to $this/self from included files.
441
+ */
442
+function includeFile($file)
443
+{
444
+    include $file;
445
+}

+ 21
- 0
vendor/composer/LICENSE View File

@@ -0,0 +1,21 @@
1
+
2
+Copyright (c) Nils Adermann, Jordi Boggiano
3
+
4
+Permission is hereby granted, free of charge, to any person obtaining a copy
5
+of this software and associated documentation files (the "Software"), to deal
6
+in the Software without restriction, including without limitation the rights
7
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+copies of the Software, and to permit persons to whom the Software is furnished
9
+to do so, subject to the following conditions:
10
+
11
+The above copyright notice and this permission notice shall be included in all
12
+copies or substantial portions of the Software.
13
+
14
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
+THE SOFTWARE.
21
+

+ 9
- 0
vendor/composer/autoload_classmap.php View File

@@ -0,0 +1,9 @@
1
+<?php
2
+
3
+// autoload_classmap.php @generated by Composer
4
+
5
+$vendorDir = dirname(dirname(__FILE__));
6
+$baseDir = dirname($vendorDir);
7
+
8
+return array(
9
+);

+ 9
- 0
vendor/composer/autoload_namespaces.php View File

@@ -0,0 +1,9 @@
1
+<?php
2
+
3
+// autoload_namespaces.php @generated by Composer
4
+
5
+$vendorDir = dirname(dirname(__FILE__));
6
+$baseDir = dirname($vendorDir);
7
+
8
+return array(
9
+);

+ 15
- 0
vendor/composer/autoload_psr4.php View File

@@ -0,0 +1,15 @@
1
+<?php
2
+
3
+// autoload_psr4.php @generated by Composer
4
+
5
+$vendorDir = dirname(dirname(__FILE__));
6
+$baseDir = dirname($vendorDir);
7
+
8
+return array(
9
+    'Tqdev\\PhpCrudApi\\' => array($baseDir . '/src/Tqdev/PhpCrudApi'),
10
+    'Psr\\Http\\Server\\' => array($vendorDir . '/psr/http-server-handler/src', $vendorDir . '/psr/http-server-middleware/src'),
11
+    'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-factory/src', $vendorDir . '/psr/http-message/src'),
12
+    'Nyholm\\Psr7\\' => array($vendorDir . '/nyholm/psr7/src'),
13
+    'Nyholm\\Psr7Server\\' => array($vendorDir . '/nyholm/psr7-server/src'),
14
+    'Http\\Message\\' => array($vendorDir . '/php-http/message-factory/src'),
15
+);

+ 52
- 0
vendor/composer/autoload_real.php View File

@@ -0,0 +1,52 @@
1
+<?php
2
+
3
+// autoload_real.php @generated by Composer
4
+
5
+class ComposerAutoloaderInit3f8e3ef0f01cbb66788ae8adbae6c82c
6
+{
7
+    private static $loader;
8
+
9
+    public static function loadClassLoader($class)
10
+    {
11
+        if ('Composer\Autoload\ClassLoader' === $class) {
12
+            require __DIR__ . '/ClassLoader.php';
13
+        }
14
+    }
15
+
16
+    public static function getLoader()
17
+    {
18
+        if (null !== self::$loader) {
19
+            return self::$loader;
20
+        }
21
+
22
+        spl_autoload_register(array('ComposerAutoloaderInit3f8e3ef0f01cbb66788ae8adbae6c82c', 'loadClassLoader'), true, true);
23
+        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+        spl_autoload_unregister(array('ComposerAutoloaderInit3f8e3ef0f01cbb66788ae8adbae6c82c', 'loadClassLoader'));
25
+
26
+        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
+        if ($useStaticLoader) {
28
+            require_once __DIR__ . '/autoload_static.php';
29
+
30
+            call_user_func(\Composer\Autoload\ComposerStaticInit3f8e3ef0f01cbb66788ae8adbae6c82c::getInitializer($loader));
31
+        } else {
32
+            $map = require __DIR__ . '/autoload_namespaces.php';
33
+            foreach ($map as $namespace => $path) {
34
+                $loader->set($namespace, $path);
35
+            }
36
+
37
+            $map = require __DIR__ . '/autoload_psr4.php';
38
+            foreach ($map as $namespace => $path) {
39
+                $loader->setPsr4($namespace, $path);
40
+            }
41
+
42
+            $classMap = require __DIR__ . '/autoload_classmap.php';
43
+            if ($classMap) {
44
+                $loader->addClassMap($classMap);
45
+            }
46
+        }
47
+
48
+        $loader->register(true);
49
+
50
+        return $loader;
51
+    }
52
+}

+ 67
- 0
vendor/composer/autoload_static.php View File

@@ -0,0 +1,67 @@
1
+<?php
2
+
3
+// autoload_static.php @generated by Composer
4
+
5
+namespace Composer\Autoload;
6
+
7
+class ComposerStaticInit3f8e3ef0f01cbb66788ae8adbae6c82c
8
+{
9
+    public static $prefixLengthsPsr4 = array (
10
+        'T' => 
11
+        array (
12
+            'Tqdev\\PhpCrudApi\\' => 17,
13
+        ),
14
+        'P' => 
15
+        array (
16
+            'Psr\\Http\\Server\\' => 16,
17
+            'Psr\\Http\\Message\\' => 17,
18
+        ),
19
+        'N' => 
20
+        array (
21
+            'Nyholm\\Psr7\\' => 12,
22
+            'Nyholm\\Psr7Server\\' => 18,
23
+        ),
24
+        'H' => 
25
+        array (
26
+            'Http\\Message\\' => 13,
27
+        ),
28
+    );
29
+
30
+    public static $prefixDirsPsr4 = array (
31
+        'Tqdev\\PhpCrudApi\\' => 
32
+        array (
33
+            0 => __DIR__ . '/../..' . '/src/Tqdev/PhpCrudApi',
34
+        ),
35
+        'Psr\\Http\\Server\\' => 
36
+        array (
37
+            0 => __DIR__ . '/..' . '/psr/http-server-handler/src',
38
+            1 => __DIR__ . '/..' . '/psr/http-server-middleware/src',
39
+        ),
40
+        'Psr\\Http\\Message\\' => 
41
+        array (
42
+            0 => __DIR__ . '/..' . '/psr/http-factory/src',
43
+            1 => __DIR__ . '/..' . '/psr/http-message/src',
44
+        ),
45
+        'Nyholm\\Psr7\\' => 
46
+        array (
47
+            0 => __DIR__ . '/..' . '/nyholm/psr7/src',
48
+        ),
49
+        'Nyholm\\Psr7Server\\' => 
50
+        array (
51
+            0 => __DIR__ . '/..' . '/nyholm/psr7-server/src',
52
+        ),
53
+        'Http\\Message\\' => 
54
+        array (
55
+            0 => __DIR__ . '/..' . '/php-http/message-factory/src',
56
+        ),
57
+    );
58
+
59
+    public static function getInitializer(ClassLoader $loader)
60
+    {
61
+        return \Closure::bind(function () use ($loader) {
62
+            $loader->prefixLengthsPsr4 = ComposerStaticInit3f8e3ef0f01cbb66788ae8adbae6c82c::$prefixLengthsPsr4;
63
+            $loader->prefixDirsPsr4 = ComposerStaticInit3f8e3ef0f01cbb66788ae8adbae6c82c::$prefixDirsPsr4;
64
+
65
+        }, null, ClassLoader::class);
66
+    }
67
+}

+ 388
- 0
vendor/composer/installed.json View File

@@ -0,0 +1,388 @@
1
+[
2
+    {
3
+        "name": "nyholm/psr7",
4
+        "version": "1.1.0",
5
+        "version_normalized": "1.1.0.0",
6
+        "source": {
7
+            "type": "git",
8
+            "url": "https://github.com/Nyholm/psr7.git",
9
+            "reference": "701fe7ea8c12c07b985b156d589134d328160cf7"
10
+        },
11
+        "dist": {
12
+            "type": "zip",
13
+            "url": "https://api.github.com/repos/Nyholm/psr7/zipball/701fe7ea8c12c07b985b156d589134d328160cf7",
14
+            "reference": "701fe7ea8c12c07b985b156d589134d328160cf7",
15
+            "shasum": ""
16
+        },
17
+        "require": {
18
+            "php": "^7.1",
19
+            "php-http/message-factory": "^1.0",
20
+            "psr/http-factory": "^1.0",
21
+            "psr/http-message": "^1.0"
22
+        },
23
+        "provide": {
24
+            "psr/http-factory-implementation": "1.0",
25
+            "psr/http-message-implementation": "1.0"
26
+        },
27
+        "require-dev": {
28
+            "http-interop/http-factory-tests": "dev-master",
29
+            "php-http/psr7-integration-tests": "dev-master",
30
+            "phpunit/phpunit": "^7.5"
31
+        },
32
+        "time": "2019-02-16T17:20:43+00:00",
33
+        "type": "library",
34
+        "extra": {
35
+            "branch-alias": {
36
+                "dev-master": "1.0-dev"
37
+            }
38
+        },
39
+        "installation-source": "dist",
40
+        "autoload": {
41
+            "psr-4": {
42
+                "Nyholm\\Psr7\\": "src/"
43
+            }
44
+        },
45
+        "notification-url": "https://packagist.org/downloads/",
46
+        "license": [
47
+            "MIT"
48
+        ],
49
+        "authors": [
50
+            {
51
+                "name": "Tobias Nyholm",
52
+                "email": "tobias.nyholm@gmail.com"
53
+            },
54
+            {
55
+                "name": "Martijn van der Ven",
56
+                "email": "martijn@vanderven.se"
57
+            }
58
+        ],
59
+        "description": "A fast PHP7 implementation of PSR-7",
60
+        "homepage": "http://tnyholm.se",
61
+        "keywords": [
62
+            "psr-17",
63
+            "psr-7"
64
+        ]
65
+    },
66
+    {
67
+        "name": "nyholm/psr7-server",
68
+        "version": "0.3.0",
69
+        "version_normalized": "0.3.0.0",
70
+        "source": {
71
+            "type": "git",
72
+            "url": "https://github.com/Nyholm/psr7-server.git",
73
+            "reference": "1b71a848fcb066fb805b7a9ab3f41ff65bffcde8"
74
+        },
75
+        "dist": {
76
+            "type": "zip",
77
+            "url": "https://api.github.com/repos/Nyholm/psr7-server/zipball/1b71a848fcb066fb805b7a9ab3f41ff65bffcde8",
78
+            "reference": "1b71a848fcb066fb805b7a9ab3f41ff65bffcde8",
79
+            "shasum": ""
80
+        },
81
+        "require": {
82
+            "php": "^7.1",
83
+            "psr/http-factory": "^1.0",
84
+            "psr/http-message": "^1.0"
85
+        },
86
+        "require-dev": {
87
+            "nyholm/nsa": "^1.1",
88
+            "nyholm/psr7": "^1.0",
89
+            "phpunit/phpunit": "^7.0"
90
+        },
91
+        "time": "2018-09-02T10:41:28+00:00",
92
+        "type": "library",
93
+        "installation-source": "dist",
94
+        "autoload": {
95
+            "psr-4": {
96
+                "Nyholm\\Psr7Server\\": "src/"
97
+            }
98
+        },
99
+        "notification-url": "https://packagist.org/downloads/",
100
+        "license": [
101
+            "MIT"
102
+        ],
103
+        "authors": [
104
+            {
105
+                "name": "Tobias Nyholm",
106
+                "email": "tobias.nyholm@gmail.com"
107
+            },
108
+            {
109
+                "name": "Martijn van der Ven",
110
+                "email": "martijn@vanderven.se"
111
+            }
112
+        ],
113
+        "description": "Helper classes to handle PSR-7 server requests",
114
+        "homepage": "http://tnyholm.se",
115
+        "keywords": [
116
+            "psr-17",
117
+            "psr-7"
118
+        ]
119
+    },
120
+    {
121
+        "name": "php-http/message-factory",
122
+        "version": "v1.0.2",
123
+        "version_normalized": "1.0.2.0",
124
+        "source": {
125
+            "type": "git",
126
+            "url": "https://github.com/php-http/message-factory.git",
127
+            "reference": "a478cb11f66a6ac48d8954216cfed9aa06a501a1"
128
+        },
129
+        "dist": {
130
+            "type": "zip",
131
+            "url": "https://api.github.com/repos/php-http/message-factory/zipball/a478cb11f66a6ac48d8954216cfed9aa06a501a1",
132
+            "reference": "a478cb11f66a6ac48d8954216cfed9aa06a501a1",
133
+            "shasum": ""
134
+        },
135
+        "require": {
136
+            "php": ">=5.4",
137
+            "psr/http-message": "^1.0"
138
+        },
139
+        "time": "2015-12-19T14:08:53+00:00",
140
+        "type": "library",
141
+        "extra": {
142
+            "branch-alias": {
143
+                "dev-master": "1.0-dev"
144
+            }
145
+        },
146
+        "installation-source": "dist",
147
+        "autoload": {
148
+            "psr-4": {
149
+                "Http\\Message\\": "src/"
150
+            }
151
+        },
152
+        "notification-url": "https://packagist.org/downloads/",
153
+        "license": [
154
+            "MIT"
155
+        ],
156
+        "authors": [
157
+            {
158
+                "name": "Márk Sági-Kazár",
159
+                "email": "mark.sagikazar@gmail.com"
160
+            }
161
+        ],
162
+        "description": "Factory interfaces for PSR-7 HTTP Message",
163
+        "homepage": "http://php-http.org",
164
+        "keywords": [
165
+            "factory",
166
+            "http",
167
+            "message",
168
+            "stream",
169
+            "uri"
170
+        ]
171
+    },
172
+    {
173
+        "name": "psr/http-factory",
174
+        "version": "1.0.0",
175
+        "version_normalized": "1.0.0.0",
176
+        "source": {
177
+            "type": "git",
178
+            "url": "https://github.com/php-fig/http-factory.git",
179
+            "reference": "378bfe27931ecc54ff824a20d6f6bfc303bbd04c"
180
+        },
181
+        "dist": {
182
+            "type": "zip",
183
+            "url": "https://api.github.com/repos/php-fig/http-factory/zipball/378bfe27931ecc54ff824a20d6f6bfc303bbd04c",
184
+            "reference": "378bfe27931ecc54ff824a20d6f6bfc303bbd04c",
185
+            "shasum": ""
186
+        },
187
+        "require": {
188
+            "php": ">=7.0.0",
189
+            "psr/http-message": "^1.0"
190
+        },
191
+        "time": "2018-07-30T21:54:04+00:00",
192
+        "type": "library",
193
+        "extra": {
194
+            "branch-alias": {
195
+                "dev-master": "1.0.x-dev"
196
+            }
197
+        },
198
+        "installation-source": "dist",
199
+        "autoload": {
200
+            "psr-4": {
201
+                "Psr\\Http\\Message\\": "src/"
202
+            }
203
+        },
204
+        "notification-url": "https://packagist.org/downloads/",
205
+        "license": [
206
+            "MIT"
207
+        ],
208
+        "authors": [
209
+            {
210
+                "name": "PHP-FIG",
211
+                "homepage": "http://www.php-fig.org/"
212
+            }
213
+        ],
214
+        "description": "Common interfaces for PSR-7 HTTP message factories",
215
+        "keywords": [
216
+            "factory",
217
+            "http",
218
+            "message",
219
+            "psr",
220
+            "psr-17",
221
+            "psr-7",
222
+            "request",
223
+            "response"
224
+        ]
225
+    },
226
+    {
227
+        "name": "psr/http-message",
228
+        "version": "1.0.1",
229
+        "version_normalized": "1.0.1.0",
230
+        "source": {
231
+            "type": "git",
232
+            "url": "https://github.com/php-fig/http-message.git",
233
+            "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363"
234
+        },
235
+        "dist": {
236
+            "type": "zip",
237
+            "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363",
238
+            "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363",
239
+            "shasum": ""
240
+        },
241
+        "require": {
242
+            "php": ">=5.3.0"
243
+        },
244
+        "time": "2016-08-06T14:39:51+00:00",
245
+        "type": "library",
246
+        "extra": {
247
+            "branch-alias": {
248
+                "dev-master": "1.0.x-dev"
249
+            }
250
+        },
251
+        "installation-source": "dist",
252
+        "autoload": {
253
+            "psr-4": {
254
+                "Psr\\Http\\Message\\": "src/"
255
+            }
256
+        },
257
+        "notification-url": "https://packagist.org/downloads/",
258
+        "license": [
259
+            "MIT"
260
+        ],
261
+        "authors": [
262
+            {
263
+                "name": "PHP-FIG",
264
+                "homepage": "http://www.php-fig.org/"
265
+            }
266
+        ],
267
+        "description": "Common interface for HTTP messages",
268
+        "homepage": "https://github.com/php-fig/http-message",
269
+        "keywords": [
270
+            "http",
271
+            "http-message",
272
+            "psr",
273
+            "psr-7",
274
+            "request",
275
+            "response"
276
+        ]
277
+    },
278
+    {
279
+        "name": "psr/http-server-handler",
280
+        "version": "1.0.1",
281
+        "version_normalized": "1.0.1.0",
282
+        "source": {
283
+            "type": "git",
284
+            "url": "https://github.com/php-fig/http-server-handler.git",
285
+            "reference": "aff2f80e33b7f026ec96bb42f63242dc50ffcae7"
286
+        },
287
+        "dist": {
288
+            "type": "zip",
289
+            "url": "https://api.github.com/repos/php-fig/http-server-handler/zipball/aff2f80e33b7f026ec96bb42f63242dc50ffcae7",
290
+            "reference": "aff2f80e33b7f026ec96bb42f63242dc50ffcae7",
291
+            "shasum": ""
292
+        },
293
+        "require": {
294
+            "php": ">=7.0",
295
+            "psr/http-message": "^1.0"
296
+        },
297
+        "time": "2018-10-30T16:46:14+00:00",
298
+        "type": "library",
299
+        "extra": {
300
+            "branch-alias": {
301
+                "dev-master": "1.0.x-dev"
302
+            }
303
+        },
304
+        "installation-source": "dist",
305
+        "autoload": {
306
+            "psr-4": {
307
+                "Psr\\Http\\Server\\": "src/"
308
+            }
309
+        },
310
+        "notification-url": "https://packagist.org/downloads/",
311
+        "license": [
312
+            "MIT"
313
+        ],
314
+        "authors": [
315
+            {
316
+                "name": "PHP-FIG",
317
+                "homepage": "http://www.php-fig.org/"
318
+            }
319
+        ],
320
+        "description": "Common interface for HTTP server-side request handler",
321
+        "keywords": [
322
+            "handler",
323
+            "http",
324
+            "http-interop",
325
+            "psr",
326
+            "psr-15",
327
+            "psr-7",
328
+            "request",
329
+            "response",
330
+            "server"
331
+        ]
332
+    },
333
+    {
334
+        "name": "psr/http-server-middleware",
335
+        "version": "1.0.1",
336
+        "version_normalized": "1.0.1.0",
337
+        "source": {
338
+            "type": "git",
339
+            "url": "https://github.com/php-fig/http-server-middleware.git",
340
+            "reference": "2296f45510945530b9dceb8bcedb5cb84d40c5f5"
341
+        },
342
+        "dist": {
343
+            "type": "zip",
344
+            "url": "https://api.github.com/repos/php-fig/http-server-middleware/zipball/2296f45510945530b9dceb8bcedb5cb84d40c5f5",
345
+            "reference": "2296f45510945530b9dceb8bcedb5cb84d40c5f5",
346
+            "shasum": ""
347
+        },
348
+        "require": {
349
+            "php": ">=7.0",
350
+            "psr/http-message": "^1.0",
351
+            "psr/http-server-handler": "^1.0"
352
+        },
353
+        "time": "2018-10-30T17:12:04+00:00",
354
+        "type": "library",
355
+        "extra": {
356
+            "branch-alias": {
357
+                "dev-master": "1.0.x-dev"
358
+            }
359
+        },
360
+        "installation-source": "dist",
361
+        "autoload": {
362
+            "psr-4": {
363
+                "Psr\\Http\\Server\\": "src/"
364
+            }
365
+        },
366
+        "notification-url": "https://packagist.org/downloads/",
367
+        "license": [
368
+            "MIT"
369
+        ],
370
+        "authors": [
371
+            {
372
+                "name": "PHP-FIG",
373
+                "homepage": "http://www.php-fig.org/"
374
+            }
375
+        ],
376
+        "description": "Common interface for HTTP server-side middleware",
377
+        "keywords": [
378
+            "http",
379
+            "http-interop",
380
+            "middleware",
381
+            "psr",
382
+            "psr-15",
383
+            "psr-7",
384
+            "request",
385
+            "response"
386
+        ]
387
+    }
388
+]

+ 65
- 0
vendor/php-http/message-factory/CHANGELOG.md View File

@@ -0,0 +1,65 @@
1
+# Change Log
2
+
3
+
4
+## 1.0.2 - 2015-12-19
5
+
6
+### Added
7
+
8
+- Request and Response factory binding types to Puli
9
+
10
+
11
+## 1.0.1 - 2015-12-17
12
+
13
+### Added
14
+
15
+- Puli configuration and binding types
16
+
17
+
18
+## 1.0.0 - 2015-12-15
19
+
20
+### Added
21
+
22
+- Response Factory in order to be reused in Message and Server Message factories
23
+- Request Factory
24
+
25
+### Changed
26
+
27
+- Message Factory extends Request and Response factories
28
+
29
+
30
+## 1.0.0-RC1 - 2015-12-14
31
+
32
+### Added
33
+
34
+- CS check
35
+
36
+### Changed
37
+
38
+- RuntimeException is thrown when the StreamFactory cannot write to the underlying stream
39
+
40
+
41
+## 0.3.0 - 2015-11-16
42
+
43
+### Removed
44
+
45
+- Client Context Factory
46
+- Factory Awares and Templates
47
+
48
+
49
+## 0.2.0 - 2015-11-16
50
+
51
+### Changed
52
+
53
+- Reordered the parameters when creating a message to have the protocol last,
54
+as its the least likely to need to be changed.
55
+
56
+
57
+## 0.1.0 - 2015-06-01
58
+
59
+### Added
60
+
61
+- Initial release
62
+
63
+### Changed
64
+
65
+- Helpers are renamed to templates

+ 19
- 0
vendor/php-http/message-factory/LICENSE View File

@@ -0,0 +1,19 @@
1
+Copyright (c) 2015 PHP HTTP Team <team@php-http.org>
2
+
3
+Permission is hereby granted, free of charge, to any person obtaining a copy
4
+of this software and associated documentation files (the "Software"), to deal
5
+in the Software without restriction, including without limitation the rights
6
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+copies of the Software, and to permit persons to whom the Software is furnished
8
+to do so, subject to the following conditions:
9
+
10
+The above copyright notice and this permission notice shall be included in all
11
+copies or substantial portions of the Software.
12
+
13
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+THE SOFTWARE.

+ 36
- 0
vendor/php-http/message-factory/README.md View File

@@ -0,0 +1,36 @@
1
+# PSR-7 Message Factory
2
+
3
+[![Latest Version](https://img.shields.io/github/release/php-http/message-factory.svg?style=flat-square)](https://github.com/php-http/message-factory/releases)
4
+[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)
5
+[![Total Downloads](https://img.shields.io/packagist/dt/php-http/message-factory.svg?style=flat-square)](https://packagist.org/packages/php-http/message-factory)
6
+
7
+**Factory interfaces for PSR-7 HTTP Message.**
8
+
9
+
10
+## Install
11
+
12
+Via Composer
13
+
14
+``` bash
15
+$ composer require php-http/message-factory
16
+```
17
+
18
+
19
+## Documentation
20
+
21
+Please see the [official documentation](http://php-http.readthedocs.org/en/latest/message-factory/).
22
+
23
+
24
+## Contributing
25
+
26
+Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.
27
+
28
+
29
+## Security
30
+
31
+If you discover any security related issues, please contact us at [security@php-http.org](mailto:security@php-http.org).
32
+
33
+
34
+## License
35
+
36
+The MIT License (MIT). Please see [License File](LICENSE) for more information.

+ 27
- 0
vendor/php-http/message-factory/composer.json View File

@@ -0,0 +1,27 @@
1
+{
2
+    "name": "php-http/message-factory",
3
+    "description": "Factory interfaces for PSR-7 HTTP Message",
4
+    "license": "MIT",
5
+    "keywords": ["http", "factory", "message", "stream", "uri"],
6
+    "homepage": "http://php-http.org",
7
+    "authors": [
8
+        {
9
+            "name": "Márk Sági-Kazár",
10
+            "email": "mark.sagikazar@gmail.com"
11
+        }
12
+    ],
13
+    "require": {
14
+        "php": ">=5.4",
15
+        "psr/http-message": "^1.0"
16
+    },
17
+    "autoload": {
18
+        "psr-4": {
19
+            "Http\\Message\\": "src/"
20
+        }
21
+    },
22
+    "extra": {
23
+        "branch-alias": {
24
+            "dev-master": "1.0-dev"
25
+        }
26
+    }
27
+}

+ 43
- 0
vendor/php-http/message-factory/puli.json View File

@@ -0,0 +1,43 @@
1
+{
2
+    "version": "1.0",
3
+    "binding-types": {
4
+        "Http\\Message\\MessageFactory": {
5
+            "description": "PSR-7 Message Factory",
6
+            "parameters": {
7
+                "depends": {
8
+                    "description": "Optional class dependency which can be checked by consumers"
9
+                }
10
+            }
11
+        },
12
+        "Http\\Message\\RequestFactory": {
13
+            "parameters": {
14
+                "depends": {
15
+                    "description": "Optional class dependency which can be checked by consumers"
16
+                }
17
+            }
18
+        },
19
+        "Http\\Message\\ResponseFactory": {
20
+            "parameters": {
21
+                "depends": {
22
+                    "description": "Optional class dependency which can be checked by consumers"
23
+                }
24
+            }
25
+        },
26
+        "Http\\Message\\StreamFactory": {
27
+            "description": "PSR-7 Stream Factory",
28
+            "parameters": {
29
+                "depends": {
30
+                    "description": "Optional class dependency which can be checked by consumers"
31
+                }
32
+            }
33
+        },
34
+        "Http\\Message\\UriFactory": {
35
+            "description": "PSR-7 URI Factory",
36
+            "parameters": {
37
+                "depends": {
38
+                    "description": "Optional class dependency which can be checked by consumers"
39
+                }
40
+            }
41
+        }
42
+    }
43
+}

+ 12
- 0
vendor/php-http/message-factory/src/MessageFactory.php View File

@@ -0,0 +1,12 @@
1
+<?php
2
+
3
+namespace Http\Message;
4
+
5
+/**
6
+ * Factory for PSR-7 Request and Response.
7
+ *
8
+ * @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
9
+ */
10
+interface MessageFactory extends RequestFactory, ResponseFactory
11
+{
12
+}

+ 34
- 0
vendor/php-http/message-factory/src/RequestFactory.php View File

@@ -0,0 +1,34 @@
1
+<?php
2
+
3
+namespace Http\Message;
4
+
5
+use Psr\Http\Message\UriInterface;
6
+use Psr\Http\Message\RequestInterface;
7
+use Psr\Http\Message\StreamInterface;
8
+
9
+/**
10
+ * Factory for PSR-7 Request.
11
+ *
12
+ * @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
13
+ */
14
+interface RequestFactory
15
+{
16
+    /**
17
+     * Creates a new PSR-7 request.
18
+     *
19
+     * @param string                               $method
20
+     * @param string|UriInterface                  $uri
21
+     * @param array                                $headers
22
+     * @param resource|string|StreamInterface|null $body
23
+     * @param string                               $protocolVersion
24
+     *
25
+     * @return RequestInterface
26
+     */
27
+    public function createRequest(
28
+        $method,
29
+        $uri,
30
+        array $headers = [],
31
+        $body = null,
32
+        $protocolVersion = '1.1'
33
+    );
34
+}

+ 35
- 0
vendor/php-http/message-factory/src/ResponseFactory.php View File

@@ -0,0 +1,35 @@
1
+<?php
2
+
3
+namespace Http\Message;
4
+
5
+use Psr\Http\Message\ResponseInterface;
6
+use Psr\Http\Message\StreamInterface;
7
+
8
+/**
9
+ * Factory for PSR-7 Response.
10
+ *
11
+ * This factory contract can be reused in Message and Server Message factories.
12
+ *
13
+ * @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
14
+ */
15
+interface ResponseFactory
16
+{
17
+    /**
18
+     * Creates a new PSR-7 response.
19
+     *
20
+     * @param int                                  $statusCode
21
+     * @param string|null                          $reasonPhrase
22
+     * @param array                                $headers
23
+     * @param resource|string|StreamInterface|null $body
24
+     * @param string                               $protocolVersion
25
+     *
26
+     * @return ResponseInterface
27
+     */
28
+    public function createResponse(
29
+        $statusCode = 200,
30
+        $reasonPhrase = null,
31
+        array $headers = [],
32
+        $body = null,
33
+        $protocolVersion = '1.1'
34
+    );
35
+}

+ 25
- 0
vendor/php-http/message-factory/src/StreamFactory.php View File

@@ -0,0 +1,25 @@
1
+<?php
2
+
3
+namespace Http\Message;
4
+
5
+use Psr\Http\Message\StreamInterface;
6
+
7
+/**
8
+ * Factory for PSR-7 Stream.
9
+ *
10
+ * @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
11
+ */
12
+interface StreamFactory
13
+{
14
+    /**
15
+     * Creates a new PSR-7 stream.
16
+     *
17
+     * @param string|resource|StreamInterface|null $body
18
+     *
19
+     * @return StreamInterface
20
+     *
21
+     * @throws \InvalidArgumentException If the stream body is invalid.
22
+     * @throws \RuntimeException         If creating the stream from $body fails. 
23
+     */
24
+    public function createStream($body = null);
25
+}

+ 24
- 0
vendor/php-http/message-factory/src/UriFactory.php View File

@@ -0,0 +1,24 @@
1
+<?php
2
+
3
+namespace Http\Message;
4
+
5
+use Psr\Http\Message\UriInterface;
6
+
7
+/**
8
+ * Factory for PSR-7 URI.
9
+ *
10
+ * @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
11
+ */
12
+interface UriFactory
13
+{
14
+    /**
15
+     * Creates an PSR-7 URI.
16
+     *
17
+     * @param string|UriInterface $uri
18
+     *
19
+     * @return UriInterface
20
+     *
21
+     * @throws \InvalidArgumentException If the $uri argument can not be converted into a valid URI.
22
+     */
23
+    public function createUri($uri);
24
+}

Loading…
Cancel
Save