From ce157c4f0968237e879df689a7092cefa2daba7f Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 5 Sep 2019 07:30:36 +0200 Subject: v0.2.0 --- PHPINFO | 2 +- REFLECTION | 182 ++++++++++++++++++++++++++++++++------------- php-pecl-http-message.spec | 7 +- 3 files changed, 136 insertions(+), 55 deletions(-) diff --git a/PHPINFO b/PHPINFO index 40db566..451cdcc 100644 --- a/PHPINFO +++ b/PHPINFO @@ -1,4 +1,4 @@ http_message -Version => 0.1.1 +Version => 0.2.0 diff --git a/REFLECTION b/REFLECTION index 6cd3bf9..a8b5afb 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,10 +1,10 @@ -Extension [ extension #191 http_message version 0.1.1 ] { +Extension [ extension #191 http_message version 0.2.0 ] { - Dependencies { Dependency [ psr (Required) ] } - - Classes [7] { + - Classes [8] { Class [ abstract class HttpMessage\Message implements Psr\Http\Message\MessageInterface ] { - Constants [0] { @@ -17,9 +17,9 @@ Extension [ extension #191 http_message version 0.1.1 ] { } - Properties [3] { - Property [ protected $protocolVersion ] - Property [ protected $headers ] - Property [ protected $body ] + Property [ private $protocolVersion ] + Property [ private $headers ] + Property [ private $body ] } - Methods [12] { @@ -118,13 +118,10 @@ Extension [ extension #191 http_message version 0.1.1 ] { - Static methods [0] { } - - Properties [6] { - Property [ protected $protocolVersion ] - Property [ protected $headers ] - Property [ protected $body ] - Property [ protected $requestTarget ] - Property [ protected $method ] - Property [ protected $uri ] + - Properties [3] { + Property [ private $requestTarget ] + Property [ private $method ] + Property [ private $uri ] } - Methods [18] { @@ -169,7 +166,7 @@ Extension [ extension #191 http_message version 0.1.1 ] { Method [ public method withUri ] { - Parameters [2] { - Parameter #0 [ Psr\Http\Message\UriInterface $logger ] + Parameter #0 [ Psr\Http\Message\UriInterface $uri ] Parameter #1 [ $preserveHost ] } } @@ -263,19 +260,13 @@ Extension [ extension #191 http_message version 0.1.1 ] { - Static methods [0] { } - - Properties [12] { - Property [ protected $protocolVersion ] - Property [ protected $headers ] - Property [ protected $body ] - Property [ protected $requestTarget ] - Property [ protected $method ] - Property [ protected $uri ] - Property [ protected $serverParams ] - Property [ protected $cookieParams ] - Property [ protected $queryParams ] - Property [ protected $uploadedFiles ] - Property [ protected $parsedBody ] - Property [ protected $attributes ] + - Properties [6] { + Property [ private $serverParams ] + Property [ private $cookieParams ] + Property [ private $queryParams ] + Property [ private $uploadedFiles ] + Property [ private $parsedBody ] + Property [ private $attributes ] } - Methods [31] { @@ -412,7 +403,7 @@ Extension [ extension #191 http_message version 0.1.1 ] { Method [ public method withUri ] { - Parameters [2] { - Parameter #0 [ Psr\Http\Message\UriInterface $logger ] + Parameter #0 [ Psr\Http\Message\UriInterface $uri ] Parameter #1 [ $preserveHost ] } } @@ -506,12 +497,9 @@ Extension [ extension #191 http_message version 0.1.1 ] { - Static methods [0] { } - - Properties [5] { - Property [ protected $protocolVersion ] - Property [ protected $headers ] - Property [ protected $body ] - Property [ protected $statusCode ] - Property [ protected $reasonPhrase ] + - Properties [2] { + Property [ private $statusCode ] + Property [ private $reasonPhrase ] } - Methods [15] { @@ -631,14 +619,14 @@ Extension [ extension #191 http_message version 0.1.1 ] { } - Properties [1] { - Property [ protected $stream ] + Property [ private $stream ] } - Methods [16] { Method [ public method __construct ] { - Parameters [1] { - Parameter #0 [ resource $uri ] + Parameter #0 [ $uri ] } } @@ -751,13 +739,13 @@ Extension [ extension #191 http_message version 0.1.1 ] { } - Properties [7] { - Property [ protected $scheme ] - Property [ protected $userInfo ] - Property [ protected $host ] - Property [ protected $port ] - Property [ protected $path ] - Property [ protected $query ] - Property [ protected $fragment ] + Property [ private $scheme ] + Property [ private $userInfo ] + Property [ private $host ] + Property [ private $port ] + Property [ private $path ] + Property [ private $query ] + Property [ private $fragment ] } - Methods [17] { @@ -886,21 +874,21 @@ Extension [ extension #191 http_message version 0.1.1 ] { } - Properties [8] { - Property [ protected $stream ] - Property [ protected $file ] - Property [ protected $size ] - Property [ protected $error ] - Property [ protected $clientFilename ] - Property [ protected $clientMediaType ] - Property [ protected $moved ] - Property [ protected $checkUploaded ] + Property [ private $stream ] + Property [ private $file ] + Property [ private $size ] + Property [ private $error ] + Property [ private $clientFilename ] + Property [ private $clientMediaType ] + Property [ private $moved ] + Property [ private $checkUploaded ] } - Methods [7] { - Method [ public method &__construct ] { + Method [ public method __construct ] { - Parameters [6] { - Parameter #0 [ string or NULL $file ] + Parameter #0 [ $fileOrStream ] Parameter #1 [ integer or NULL $size ] Parameter #2 [ integer $error ] Parameter #3 [ string or NULL $clientFilename ] @@ -947,6 +935,96 @@ Extension [ extension #191 http_message version 0.1.1 ] { } } } + + Class [ class HttpMessage\Factory implements Psr\Http\Message\RequestFactoryInterface, Psr\Http\Message\ResponseFactoryInterface, Psr\Http\Message\ServerRequestFactoryInterface, Psr\Http\Message\StreamFactoryInterface, Psr\Http\Message\UploadedFileFactoryInterface, Psr\Http\Message\UriFactoryInterface ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [8] { + Method [ public method createRequest ] { + + - Parameters [2] { + Parameter #0 [ string $method ] + Parameter #1 [ $uri ] + } + - Return [ Psr\Http\Message\RequestInterface ] + } + + Method [ public method createResponse ] { + + - Parameters [2] { + Parameter #0 [ integer $code ] + Parameter #1 [ string $reasonPhrase ] + } + - Return [ Psr\Http\Message\ResponseInterface ] + } + + Method [ public method createServerRequest ] { + + - Parameters [3] { + Parameter #0 [ string $method ] + Parameter #1 [ $uri ] + Parameter #2 [ array $serverParams ] + } + - Return [ Psr\Http\Message\ServerRequestInterface ] + } + + Method [ public method createStream ] { + + - Parameters [1] { + Parameter #0 [ string $content ] + } + - Return [ Psr\Http\Message\StreamInterface ] + } + + Method [ public method createStreamFromFile ] { + + - Parameters [2] { + Parameter #0 [ string $filename ] + Parameter #1 [ string $mode ] + } + - Return [ Psr\Http\Message\StreamInterface ] + } + + Method [ public method createStreamFromResource ] { + + - Parameters [1] { + Parameter #0 [ $resouce ] + } + - Return [ Psr\Http\Message\StreamInterface ] + } + + Method [ public method createUploadedFile ] { + + - Parameters [5] { + Parameter #0 [ Psr\Http\Message\StreamInterface $stream ] + Parameter #1 [ integer or NULL $size ] + Parameter #2 [ integer $error ] + Parameter #3 [ string or NULL $clientFilename ] + Parameter #4 [ string or NULL $clientMediaType ] + } + - Return [ Psr\Http\Message\UploadedFileInterface ] + } + + Method [ public method createUri ] { + + - Parameters [1] { + Parameter #0 [ string $uri ] + } + - Return [ Psr\Http\Message\UriInterface ] + } + } + } } } diff --git a/php-pecl-http-message.spec b/php-pecl-http-message.spec index bddbd2f..519e555 100644 --- a/php-pecl-http-message.spec +++ b/php-pecl-http-message.spec @@ -20,8 +20,8 @@ Summary: PSR-7 HTTP Message implementation Name: %{?sub_prefix}php-pecl-http-message -Version: 0.1.1 -Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Version: 0.2.0 +Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: BSD URL: http://pecl.php.net/package/%{pecl_name} Source0: http://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz @@ -235,6 +235,9 @@ REPORT_EXIT_STATUS=1 \ %changelog +* Thu Sep 5 2019 Remi Collet - 0.2.0-1 +- update to 0.2.0 + * Tue Sep 03 2019 Remi Collet - 0.1.1-2 - rebuild for 7.4.0RC1 -- cgit