mirror of
https://github.com/moodle/moodle.git
synced 2025-04-24 18:04:43 +02:00
MDL-80644 libraries: Update http-factory to 1.1.0
Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
This commit is contained in:
parent
f49d120761
commit
53efc4c73c
2
lib/psr/http-factory/.gitignore
vendored
2
lib/psr/http-factory/.gitignore
vendored
@ -1,2 +0,0 @@
|
||||
composer.lock
|
||||
vendor/
|
@ -1,7 +0,0 @@
|
||||
extends: default
|
||||
reviewers:
|
||||
-
|
||||
name: contributors
|
||||
required: 1
|
||||
teams:
|
||||
- http-factory-contributors
|
@ -1,10 +1,12 @@
|
||||
HTTP Factories
|
||||
==============
|
||||
|
||||
This repository holds all interfaces related to [PSR-17 (HTTP Message Factories)][psr-17].
|
||||
Please refer to the specification for a description.
|
||||
This repository holds all interfaces related to [PSR-17 (HTTP Factories)][psr-url].
|
||||
|
||||
You can find implementations of the specification by looking for packages providing the
|
||||
[psr/http-factory-implementation](https://packagist.org/providers/psr/http-factory-implementation) virtual package.
|
||||
Note that this is not a HTTP Factory implementation of its own. It is merely interfaces that describe the components of a HTTP Factory.
|
||||
|
||||
[psr-17]: https://www.php-fig.org/psr/psr-17/
|
||||
The installable [package][package-url] and [implementations][implementation-url] are listed on Packagist.
|
||||
|
||||
[psr-url]: https://www.php-fig.org/psr/psr-17/
|
||||
[package-url]: https://packagist.org/packages/psr/http-factory
|
||||
[implementation-url]: https://packagist.org/providers/psr/http-factory-implementation
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "psr/http-factory",
|
||||
"description": "Common interfaces for PSR-7 HTTP message factories",
|
||||
"description": "PSR-17: Common interfaces for PSR-7 HTTP message factories",
|
||||
"keywords": [
|
||||
"psr",
|
||||
"psr-7",
|
||||
@ -15,12 +15,15 @@
|
||||
"authors": [
|
||||
{
|
||||
"name": "PHP-FIG",
|
||||
"homepage": "http://www.php-fig.org/"
|
||||
"homepage": "https://www.php-fig.org/"
|
||||
}
|
||||
],
|
||||
"support": {
|
||||
"source": "https://github.com/php-fig/http-factory"
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.0.0",
|
||||
"psr/http-message": "^1.0"
|
||||
"php": ">=7.1",
|
||||
"psr/http-message": "^1.0 || ^2.0"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
10
lib/psr/http-factory/readme_moodle.txt
Normal file
10
lib/psr/http-factory/readme_moodle.txt
Normal file
@ -0,0 +1,10 @@
|
||||
# PSR-17 HTTP Factories
|
||||
|
||||
This is a description for including the PSR-17 Interfaces in Moodle
|
||||
|
||||
## Installation
|
||||
|
||||
1. Visit https://github.com/php-fig/http-factory
|
||||
2. Download the latest release
|
||||
3. Unzip in this folder
|
||||
4. Update `thirdpartylibs.xml`
|
@ -15,10 +15,10 @@ interface UploadedFileFactoryInterface
|
||||
*
|
||||
* @param StreamInterface $stream Underlying stream representing the
|
||||
* uploaded file content.
|
||||
* @param int $size in bytes
|
||||
* @param int|null $size in bytes
|
||||
* @param int $error PHP file upload error
|
||||
* @param string $clientFilename Filename as provided by the client, if any.
|
||||
* @param string $clientMediaType Media type as provided by the client, if any.
|
||||
* @param string|null $clientFilename Filename as provided by the client, if any.
|
||||
* @param string|null $clientMediaType Media type as provided by the client, if any.
|
||||
*
|
||||
* @return UploadedFileInterface
|
||||
*
|
||||
@ -26,9 +26,9 @@ interface UploadedFileFactoryInterface
|
||||
*/
|
||||
public function createUploadedFile(
|
||||
StreamInterface $stream,
|
||||
int $size = null,
|
||||
?int $size = null,
|
||||
int $error = \UPLOAD_ERR_OK,
|
||||
string $clientFilename = null,
|
||||
string $clientMediaType = null
|
||||
?string $clientFilename = null,
|
||||
?string $clientMediaType = null
|
||||
): UploadedFileInterface;
|
||||
}
|
||||
|
@ -632,7 +632,7 @@ All rights reserved.</copyright>
|
||||
<location>psr/http-factory</location>
|
||||
<name>http-factory</name>
|
||||
<description>Provides interfaces that describe the components of a HTTP Factory.</description>
|
||||
<version>1.0.1</version>
|
||||
<version>1.1.0</version>
|
||||
<license>MIT</license>
|
||||
<repository>https://github.com/php-fig/http-factory</repository>
|
||||
</library>
|
||||
|
Loading…
x
Reference in New Issue
Block a user