From 5131547d3ef412c6f4886548191ad285f0bbad7b Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 1 Aug 2017 14:03:28 +0200 Subject: New package --- .gitignore | 7 + Makefile | 4 + REFLECTION | 1773 +++++++++++++++++++++++++++++++++++++++++++++++++++++ php-pecl-psr.spec | 256 ++++++++ 4 files changed, 2040 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 REFLECTION create mode 100644 php-pecl-psr.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1ab5c4f --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +package-*.xml +*.tgz +*.tar.gz +*.tar.xz +*.tar.xz.asc +*.src.rpm +*/*rpm diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..13af741 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +SRCDIR := $(shell pwd) +NAME := $(shell basename $(SRCDIR)) +include ../../../common/Makefile + diff --git a/REFLECTION b/REFLECTION new file mode 100644 index 0000000..d17174d --- /dev/null +++ b/REFLECTION @@ -0,0 +1,1773 @@ +Extension [ extension #118 psr version 0.3.0RC3 ] { + + - Dependencies { + Dependency [ spl (Required) ] + } + + - Classes [29] { + Interface [ interface Psr\Cache\CacheException ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [0] { + } + } + + Interface [ interface Psr\Cache\CacheItemInterface ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [6] { + Method [ abstract public method getKey ] { + + - Parameters [0] { + } + } + + Method [ abstract public method get ] { + + - Parameters [0] { + } + } + + Method [ abstract public method isHit ] { + + - Parameters [0] { + } + } + + Method [ abstract public method set ] { + + - Parameters [1] { + Parameter #0 [ $value ] + } + } + + Method [ abstract public method expiresAt ] { + + - Parameters [1] { + Parameter #0 [ $expiration ] + } + } + + Method [ abstract public method expiresAfter ] { + + - Parameters [1] { + Parameter #0 [ $time ] + } + } + } + } + + Interface [ interface Psr\Cache\CacheItemPoolInterface ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [9] { + Method [ abstract public method getItem ] { + + - Parameters [1] { + Parameter #0 [ $key ] + } + } + + Method [ abstract public method getItems ] { + + - Parameters [1] { + Parameter #0 [ array $keys ] + } + } + + Method [ abstract public method hasItem ] { + + - Parameters [1] { + Parameter #0 [ $key ] + } + } + + Method [ abstract public method clear ] { + + - Parameters [0] { + } + } + + Method [ abstract public method deleteItem ] { + + - Parameters [1] { + Parameter #0 [ $key ] + } + } + + Method [ abstract public method deleteItems ] { + + - Parameters [1] { + Parameter #0 [ array $keys ] + } + } + + Method [ abstract public method save ] { + + - Parameters [1] { + Parameter #0 [ Psr\Cache\CacheItemInterface $logger ] + } + } + + Method [ abstract public method saveDeferred ] { + + - Parameters [1] { + Parameter #0 [ Psr\Cache\CacheItemInterface $logger ] + } + } + + Method [ abstract public method commit ] { + + - Parameters [0] { + } + } + } + } + + Interface [ interface Psr\Cache\InvalidArgumentException extends Psr\Cache\CacheException ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [0] { + } + } + + Interface [ interface Psr\Container\ContainerExceptionInterface ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [0] { + } + } + + Interface [ interface Psr\Container\ContainerInterface ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [2] { + Method [ abstract public method get ] { + + - Parameters [1] { + Parameter #0 [ $id ] + } + } + + Method [ abstract public method has ] { + + - Parameters [1] { + Parameter #0 [ $id ] + } + } + } + } + + Interface [ interface Psr\Container\NotFoundExceptionInterface extends Psr\Container\ContainerExceptionInterface ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [0] { + } + } + + Interface [ interface Psr\Http\Message\MessageInterface ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [11] { + Method [ abstract public method getProtocolVersion ] { + + - Parameters [0] { + } + } + + Method [ abstract public method withProtocolVersion ] { + + - Parameters [1] { + Parameter #0 [ $version ] + } + } + + Method [ abstract public method getHeaders ] { + + - Parameters [0] { + } + } + + Method [ abstract public method hasHeader ] { + + - Parameters [1] { + Parameter #0 [ $name ] + } + } + + Method [ abstract public method getHeader ] { + + - Parameters [1] { + Parameter #0 [ $name ] + } + } + + Method [ abstract public method getHeaderLine ] { + + - Parameters [1] { + Parameter #0 [ $name ] + } + } + + Method [ abstract public method withHeader ] { + + - Parameters [2] { + Parameter #0 [ $name ] + Parameter #1 [ $value ] + } + } + + Method [ abstract public method withAddedHeader ] { + + - Parameters [2] { + Parameter #0 [ $name ] + Parameter #1 [ $value ] + } + } + + Method [ abstract public method withoutHeader ] { + + - Parameters [1] { + Parameter #0 [ $name ] + } + } + + Method [ abstract public method getBody ] { + + - Parameters [0] { + } + } + + Method [ abstract public method withBody ] { + + - Parameters [1] { + Parameter #0 [ Psr\Http\Message\StreamInterface $body ] + } + } + } + } + + Interface [ interface Psr\Http\Message\RequestInterface extends Psr\Http\Message\MessageInterface ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [17] { + Method [ abstract public method getRequestTarget ] { + + - Parameters [0] { + } + } + + Method [ abstract public method withRequestTarget ] { + + - Parameters [1] { + Parameter #0 [ $requestTarget ] + } + } + + Method [ abstract public method getMethod ] { + + - Parameters [0] { + } + } + + Method [ abstract public method withMethod ] { + + - Parameters [1] { + Parameter #0 [ $method ] + } + } + + Method [ abstract public method getUri ] { + + - Parameters [0] { + } + } + + Method [ abstract public method withUri ] { + + - Parameters [2] { + Parameter #0 [ Psr\Http\Message\UriInterface $logger ] + Parameter #1 [ $preserveHost ] + } + } + + Method [ abstract public method getProtocolVersion ] { + + - Parameters [0] { + } + } + + Method [ abstract public method withProtocolVersion ] { + + - Parameters [1] { + Parameter #0 [ $version ] + } + } + + Method [ abstract public method getHeaders ] { + + - Parameters [0] { + } + } + + Method [ abstract public method hasHeader ] { + + - Parameters [1] { + Parameter #0 [ $name ] + } + } + + Method [ abstract public method getHeader ] { + + - Parameters [1] { + Parameter #0 [ $name ] + } + } + + Method [ abstract public method getHeaderLine ] { + + - Parameters [1] { + Parameter #0 [ $name ] + } + } + + Method [ abstract public method withHeader ] { + + - Parameters [2] { + Parameter #0 [ $name ] + Parameter #1 [ $value ] + } + } + + Method [ abstract public method withAddedHeader ] { + + - Parameters [2] { + Parameter #0 [ $name ] + Parameter #1 [ $value ] + } + } + + Method [ abstract public method withoutHeader ] { + + - Parameters [1] { + Parameter #0 [ $name ] + } + } + + Method [ abstract public method getBody ] { + + - Parameters [0] { + } + } + + Method [ abstract public method withBody ] { + + - Parameters [1] { + Parameter #0 [ Psr\Http\Message\StreamInterface $body ] + } + } + } + } + + Interface [ interface Psr\Http\Message\ResponseInterface extends Psr\Http\Message\MessageInterface ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [14] { + Method [ abstract public method getStatusCode ] { + + - Parameters [0] { + } + } + + Method [ abstract public method withStatus ] { + + - Parameters [2] { + Parameter #0 [ $code ] + Parameter #1 [ $reasonPhrase ] + } + } + + Method [ abstract public method getReasonPhrase ] { + + - Parameters [0] { + } + } + + Method [ abstract public method getProtocolVersion ] { + + - Parameters [0] { + } + } + + Method [ abstract public method withProtocolVersion ] { + + - Parameters [1] { + Parameter #0 [ $version ] + } + } + + Method [ abstract public method getHeaders ] { + + - Parameters [0] { + } + } + + Method [ abstract public method hasHeader ] { + + - Parameters [1] { + Parameter #0 [ $name ] + } + } + + Method [ abstract public method getHeader ] { + + - Parameters [1] { + Parameter #0 [ $name ] + } + } + + Method [ abstract public method getHeaderLine ] { + + - Parameters [1] { + Parameter #0 [ $name ] + } + } + + Method [ abstract public method withHeader ] { + + - Parameters [2] { + Parameter #0 [ $name ] + Parameter #1 [ $value ] + } + } + + Method [ abstract public method withAddedHeader ] { + + - Parameters [2] { + Parameter #0 [ $name ] + Parameter #1 [ $value ] + } + } + + Method [ abstract public method withoutHeader ] { + + - Parameters [1] { + Parameter #0 [ $name ] + } + } + + Method [ abstract public method getBody ] { + + - Parameters [0] { + } + } + + Method [ abstract public method withBody ] { + + - Parameters [1] { + Parameter #0 [ Psr\Http\Message\StreamInterface $body ] + } + } + } + } + + Interface [ interface Psr\Http\Message\ServerRequestInterface ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [13] { + Method [ abstract public method getServerParams ] { + + - Parameters [0] { + } + } + + Method [ abstract public method getCookieParams ] { + + - Parameters [0] { + } + } + + Method [ abstract public method withCookieParams ] { + + - Parameters [1] { + Parameter #0 [ array $cookies ] + } + } + + Method [ abstract public method getQueryParams ] { + + - Parameters [0] { + } + } + + Method [ abstract public method withQueryParams ] { + + - Parameters [1] { + Parameter #0 [ array $query ] + } + } + + Method [ abstract public method getUploadedFiles ] { + + - Parameters [0] { + } + } + + Method [ abstract public method withUploadedFiles ] { + + - Parameters [1] { + Parameter #0 [ array $uploadedFiles ] + } + } + + Method [ abstract public method getParsedBody ] { + + - Parameters [0] { + } + } + + Method [ abstract public method withParsedBody ] { + + - Parameters [1] { + Parameter #0 [ $parsedBody ] + } + } + + Method [ abstract public method getAttributes ] { + + - Parameters [0] { + } + } + + Method [ abstract public method getAttribute ] { + + - Parameters [2] { + Parameter #0 [ $name ] + Parameter #1 [ $default ] + } + } + + Method [ abstract public method withAttribute ] { + + - Parameters [2] { + Parameter #0 [ $name ] + Parameter #1 [ $value ] + } + } + + Method [ abstract public method withoutAttribute ] { + + - Parameters [1] { + Parameter #0 [ $name ] + } + } + } + } + + Interface [ interface Psr\Http\Message\StreamInterface ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [15] { + Method [ abstract public method __toString ] { + + - Parameters [0] { + } + } + + Method [ abstract public method close ] { + + - Parameters [0] { + } + } + + Method [ abstract public method detach ] { + + - Parameters [0] { + } + } + + Method [ abstract public method getSize ] { + + - Parameters [0] { + } + } + + Method [ abstract public method tell ] { + + - Parameters [0] { + } + } + + Method [ abstract public method eof ] { + + - Parameters [0] { + } + } + + Method [ abstract public method isSeekable ] { + + - Parameters [0] { + } + } + + Method [ abstract public method seek ] { + + - Parameters [2] { + Parameter #0 [ $offset ] + Parameter #1 [ $whence ] + } + } + + Method [ abstract public method rewind ] { + + - Parameters [0] { + } + } + + Method [ abstract public method isWritable ] { + + - Parameters [0] { + } + } + + Method [ abstract public method write ] { + + - Parameters [1] { + Parameter #0 [ $string ] + } + } + + Method [ abstract public method isReadable ] { + + - Parameters [0] { + } + } + + Method [ abstract public method read ] { + + - Parameters [1] { + Parameter #0 [ $length ] + } + } + + Method [ abstract public method getContents ] { + + - Parameters [0] { + } + } + + Method [ abstract public method getMetadata ] { + + - Parameters [1] { + Parameter #0 [ $key ] + } + } + } + } + + Interface [ interface Psr\Http\Message\UploadedFileInterface ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [6] { + Method [ abstract public method getStream ] { + + - Parameters [0] { + } + } + + Method [ abstract public method moveTo ] { + + - Parameters [1] { + Parameter #0 [ $targetPath ] + } + } + + Method [ abstract public method getSize ] { + + - Parameters [0] { + } + } + + Method [ abstract public method getError ] { + + - Parameters [0] { + } + } + + Method [ abstract public method getClientFilename ] { + + - Parameters [0] { + } + } + + Method [ abstract public method getClientMediaType ] { + + - Parameters [0] { + } + } + } + } + + Interface [ interface Psr\Http\Message\UriInterface ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [16] { + Method [ abstract public method getScheme ] { + + - Parameters [0] { + } + } + + Method [ abstract public method getAuthority ] { + + - Parameters [0] { + } + } + + Method [ abstract public method getUserInfo ] { + + - Parameters [0] { + } + } + + Method [ abstract public method getHost ] { + + - Parameters [0] { + } + } + + Method [ abstract public method getPort ] { + + - Parameters [0] { + } + } + + Method [ abstract public method getPath ] { + + - Parameters [0] { + } + } + + Method [ abstract public method getQuery ] { + + - Parameters [0] { + } + } + + Method [ abstract public method getFragment ] { + + - Parameters [0] { + } + } + + Method [ abstract public method withScheme ] { + + - Parameters [1] { + Parameter #0 [ $scheme ] + } + } + + Method [ abstract public method withUserInfo ] { + + - Parameters [2] { + Parameter #0 [ $user ] + Parameter #1 [ $password ] + } + } + + Method [ abstract public method withHost ] { + + - Parameters [1] { + Parameter #0 [ $host ] + } + } + + Method [ abstract public method withPort ] { + + - Parameters [1] { + Parameter #0 [ $port ] + } + } + + Method [ abstract public method withPath ] { + + - Parameters [1] { + Parameter #0 [ $path ] + } + } + + Method [ abstract public method withQuery ] { + + - Parameters [1] { + Parameter #0 [ $query ] + } + } + + Method [ abstract public method withFragment ] { + + - Parameters [1] { + Parameter #0 [ $fragment ] + } + } + + Method [ abstract public method __toString ] { + + - Parameters [0] { + } + } + } + } + + Interface [ interface Psr\Link\LinkInterface ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [4] { + Method [ abstract public method getHref ] { + + - Parameters [0] { + } + } + + Method [ abstract public method isTemplated ] { + + - Parameters [0] { + } + } + + Method [ abstract public method getRels ] { + + - Parameters [0] { + } + } + + Method [ abstract public method getAttributes ] { + + - Parameters [0] { + } + } + } + } + + Interface [ interface Psr\Link\LinkProviderInterface ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [2] { + Method [ abstract public method getLinks ] { + + - Parameters [0] { + } + } + + Method [ abstract public method getLinksByRel ] { + + - Parameters [1] { + Parameter #0 [ $rel ] + } + } + } + } + + Interface [ interface Psr\Link\EvolvableLinkInterface extends Psr\Link\LinkInterface ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [9] { + Method [ abstract public method withHref ] { + + - Parameters [1] { + Parameter #0 [ $href ] + } + } + + Method [ abstract public method withRel ] { + + - Parameters [1] { + Parameter #0 [ $rel ] + } + } + + Method [ abstract public method withoutRel ] { + + - Parameters [1] { + Parameter #0 [ $rel ] + } + } + + Method [ abstract public method withAttribute ] { + + - Parameters [2] { + Parameter #0 [ $attribute ] + Parameter #1 [ $value ] + } + } + + Method [ abstract public method withoutAttribute ] { + + - Parameters [1] { + Parameter #0 [ $attribute ] + } + } + + Method [ abstract public method getHref ] { + + - Parameters [0] { + } + } + + Method [ abstract public method isTemplated ] { + + - Parameters [0] { + } + } + + Method [ abstract public method getRels ] { + + - Parameters [0] { + } + } + + Method [ abstract public method getAttributes ] { + + - Parameters [0] { + } + } + } + } + + Interface [ interface Psr\Link\EvolvableLinkProviderInterface extends Psr\Link\LinkProviderInterface ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [4] { + Method [ abstract public method withLink ] { + + - Parameters [1] { + Parameter #0 [ Psr\Link\LinkInterface $link ] + } + } + + Method [ abstract public method withoutLink ] { + + - Parameters [1] { + Parameter #0 [ Psr\Link\LinkInterface $link ] + } + } + + Method [ abstract public method getLinks ] { + + - Parameters [0] { + } + } + + Method [ abstract public method getLinksByRel ] { + + - Parameters [1] { + Parameter #0 [ $rel ] + } + } + } + } + + Class [ class Psr\Log\InvalidArgumentException extends InvalidArgumentException implements Throwable ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + } + + - Methods [10] { + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } + + Method [ public method __wakeup ] { + } + + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } + } + } + + Class [ class Psr\Log\LogLevel ] { + + - Constants [8] { + Constant [ string EMERGENCY ] { emergency } + Constant [ string ALERT ] { alert } + Constant [ string CRITICAL ] { critical } + Constant [ string ERROR ] { error } + Constant [ string WARNING ] { warning } + Constant [ string NOTICE ] { notice } + Constant [ string INFO ] { info } + Constant [ string DEBUG ] { debug } + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [0] { + } + } + + Interface [ interface Psr\Log\LoggerInterface ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [9] { + Method [ abstract public method emergency ] { + + - Parameters [2] { + Parameter #0 [ $message ] + Parameter #1 [ array $context ] + } + } + + Method [ abstract public method alert ] { + + - Parameters [2] { + Parameter #0 [ $message ] + Parameter #1 [ array $context ] + } + } + + Method [ abstract public method critical ] { + + - Parameters [2] { + Parameter #0 [ $message ] + Parameter #1 [ array $context ] + } + } + + Method [ abstract public method error ] { + + - Parameters [2] { + Parameter #0 [ $message ] + Parameter #1 [ array $context ] + } + } + + Method [ abstract public method warning ] { + + - Parameters [2] { + Parameter #0 [ $message ] + Parameter #1 [ array $context ] + } + } + + Method [ abstract public method notice ] { + + - Parameters [2] { + Parameter #0 [ $message ] + Parameter #1 [ array $context ] + } + } + + Method [ abstract public method info ] { + + - Parameters [2] { + Parameter #0 [ $message ] + Parameter #1 [ array $context ] + } + } + + Method [ abstract public method debug ] { + + - Parameters [2] { + Parameter #0 [ $message ] + Parameter #1 [ array $context ] + } + } + + Method [ abstract public method log ] { + + - Parameters [3] { + Parameter #0 [ $level ] + Parameter #1 [ $message ] + Parameter #2 [ array $context ] + } + } + } + } + + Interface [ interface Psr\Log\LoggerAwareInterface ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [1] { + Method [ abstract public method setLogger ] { + + - Parameters [1] { + Parameter #0 [ Psr\Log\LoggerInterface $logger ] + } + } + } + } + + Class [ abstract class Psr\Log\AbstractLogger implements Psr\Log\LoggerInterface ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [9] { + Method [ public method emergency ] { + + - Parameters [2] { + Parameter #0 [ $message ] + Parameter #1 [ array $context ] + } + } + + Method [ public method alert ] { + + - Parameters [2] { + Parameter #0 [ $message ] + Parameter #1 [ array $context ] + } + } + + Method [ public method critical ] { + + - Parameters [2] { + Parameter #0 [ $message ] + Parameter #1 [ array $context ] + } + } + + Method [ public method error ] { + + - Parameters [2] { + Parameter #0 [ $message ] + Parameter #1 [ array $context ] + } + } + + Method [ public method warning ] { + + - Parameters [2] { + Parameter #0 [ $message ] + Parameter #1 [ array $context ] + } + } + + Method [ public method notice ] { + + - Parameters [2] { + Parameter #0 [ $message ] + Parameter #1 [ array $context ] + } + } + + Method [ public method info ] { + + - Parameters [2] { + Parameter #0 [ $message ] + Parameter #1 [ array $context ] + } + } + + Method [ public method debug ] { + + - Parameters [2] { + Parameter #0 [ $message ] + Parameter #1 [ array $context ] + } + } + + Method [ abstract public method log ] { + + - Parameters [3] { + Parameter #0 [ $level ] + Parameter #1 [ $message ] + Parameter #2 [ array $context ] + } + } + } + } + + Class [ class Psr\Log\NullLogger extends Psr\Log\AbstractLogger implements Psr\Log\LoggerInterface ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [9] { + Method [ public method log ] { + + - Parameters [3] { + Parameter #0 [ $level ] + Parameter #1 [ $message ] + Parameter #2 [ array $context ] + } + } + + Method [ public method emergency ] { + + - Parameters [2] { + Parameter #0 [ $message ] + Parameter #1 [ array $context ] + } + } + + Method [ public method alert ] { + + - Parameters [2] { + Parameter #0 [ $message ] + Parameter #1 [ array $context ] + } + } + + Method [ public method critical ] { + + - Parameters [2] { + Parameter #0 [ $message ] + Parameter #1 [ array $context ] + } + } + + Method [ public method error ] { + + - Parameters [2] { + Parameter #0 [ $message ] + Parameter #1 [ array $context ] + } + } + + Method [ public method warning ] { + + - Parameters [2] { + Parameter #0 [ $message ] + Parameter #1 [ array $context ] + } + } + + Method [ public method notice ] { + + - Parameters [2] { + Parameter #0 [ $message ] + Parameter #1 [ array $context ] + } + } + + Method [ public method info ] { + + - Parameters [2] { + Parameter #0 [ $message ] + Parameter #1 [ array $context ] + } + } + + Method [ public method debug ] { + + - Parameters [2] { + Parameter #0 [ $message ] + Parameter #1 [ array $context ] + } + } + } + } + + Trait [ trait Psr\Log\LoggerTrait ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [9] { + Method [ public method emergency ] { + + - Parameters [2] { + Parameter #0 [ $message ] + Parameter #1 [ array $context ] + } + } + + Method [ public method alert ] { + + - Parameters [2] { + Parameter #0 [ $message ] + Parameter #1 [ array $context ] + } + } + + Method [ public method critical ] { + + - Parameters [2] { + Parameter #0 [ $message ] + Parameter #1 [ array $context ] + } + } + + Method [ public method error ] { + + - Parameters [2] { + Parameter #0 [ $message ] + Parameter #1 [ array $context ] + } + } + + Method [ public method warning ] { + + - Parameters [2] { + Parameter #0 [ $message ] + Parameter #1 [ array $context ] + } + } + + Method [ public method notice ] { + + - Parameters [2] { + Parameter #0 [ $message ] + Parameter #1 [ array $context ] + } + } + + Method [ public method info ] { + + - Parameters [2] { + Parameter #0 [ $message ] + Parameter #1 [ array $context ] + } + } + + Method [ public method debug ] { + + - Parameters [2] { + Parameter #0 [ $message ] + Parameter #1 [ array $context ] + } + } + + Method [ abstract public method log ] { + + - Parameters [3] { + Parameter #0 [ $level ] + Parameter #1 [ $message ] + Parameter #2 [ array $context ] + } + } + } + } + + Trait [ trait Psr\Log\LoggerAwareTrait ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [1] { + Property [ protected $logger ] + } + + - Methods [1] { + Method [ public method setLogger ] { + + - Parameters [1] { + Parameter #0 [ Psr\Log\LoggerInterface $logger ] + } + } + } + } + + Interface [ interface Psr\SimpleCache\CacheException ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [0] { + } + } + + Interface [ interface Psr\SimpleCache\CacheInterface ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [8] { + Method [ abstract public method get ] { + + - Parameters [2] { + Parameter #0 [ $key ] + Parameter #1 [ $default ] + } + } + + Method [ abstract public method set ] { + + - Parameters [3] { + Parameter #0 [ $key ] + Parameter #1 [ $value ] + Parameter #2 [ $ttl ] + } + } + + Method [ abstract public method delete ] { + + - Parameters [1] { + Parameter #0 [ $key ] + } + } + + Method [ abstract public method clear ] { + + - Parameters [0] { + } + } + + Method [ abstract public method getMultiple ] { + + - Parameters [2] { + Parameter #0 [ $keys ] + Parameter #1 [ $default ] + } + } + + Method [ abstract public method setMultiple ] { + + - Parameters [2] { + Parameter #0 [ $values ] + Parameter #1 [ $ttl ] + } + } + + Method [ abstract public method deleteMultiple ] { + + - Parameters [1] { + Parameter #0 [ $keys ] + } + } + + Method [ abstract public method has ] { + + - Parameters [1] { + Parameter #0 [ $key ] + } + } + } + } + + Interface [ interface Psr\SimpleCache\InvalidArgumentException extends Psr\SimpleCache\CacheException ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [0] { + } + } + } +} + diff --git a/php-pecl-psr.spec b/php-pecl-psr.spec new file mode 100644 index 0000000..e89a6e7 --- /dev/null +++ b/php-pecl-psr.spec @@ -0,0 +1,256 @@ +# remirepo spec file for php-pecl-psr +# +# Copyright (c) 2017 Remi Collet +# License: CC-BY-SA +# http://creativecommons.org/licenses/by-sa/4.0/ +# +# Please, preserve the changelog entries +# +%if 0%{?scl:1} +%global sub_prefix %{scl_prefix} +%scl_package php-pecl-psr +%endif + +%global pecl_name psr +%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} +%global with_tests 0%{!?_without_tests:1} +%if "%{php_version}" < "5.6" +%global ini_name %{pecl_name}.ini +%else +%global ini_name 40-%{pecl_name}.ini +%endif +%global upstream_version 0.3.0 +%global upstream_prever RC3 + +Summary: PSR interfaces +Name: %{?sub_prefix}php-pecl-psr +Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} +Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Source0: http://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}.tgz +License: PHP +Group: Development/Languages +URL: http://pecl.php.net/package/psr + +BuildRequires: %{?scl_prefix}php-devel +BuildRequires: %{?scl_prefix}php-pear + +Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} +Requires: %{?scl_prefix}php(api) = %{php_core_api} +%{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}} + +Provides: %{?scl_prefix}php-%{pecl_name} = %{version} +Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version} +Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version} +Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version} +%if "%{?scl_prefix}" != "%{?sub_prefix}" +Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{release} +Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release} +%endif + +%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} +# Other third party repo stuff +%if "%{php_version}" > "5.6" +Obsoletes: php56u-pecl-%{pecl_name} <= %{version} +Obsoletes: php56w-pecl-%{pecl_name} <= %{version} +%endif +%if "%{php_version}" > "7.0" +Obsoletes: php70u-pecl-%{pecl_name} <= %{version} +Obsoletes: php70w-pecl-%{pecl_name} <= %{version} +%endif +%if "%{php_version}" > "7.1" +Obsoletes: php71u-pecl-%{pecl_name} <= %{version} +Obsoletes: php71w-pecl-%{pecl_name} <= %{version} +%endif +%if "%{php_version}" > "7.2" +Obsoletes: php72u-pecl-%{pecl_name} <= %{version} +Obsoletes: php72w-pecl-%{pecl_name} <= %{version} +%endif +%endif + +%if 0%{?fedora} < 20 && 0%{?rhel} < 7 +# Filter private shared object +%{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$} +%{?filter_setup} +%endif + + +%description +This extension provides the accepted PSR interfaces, +so they can be used in an extension. + +See http://www.php-fig.org/psr/ + +Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection (%{scl} by %{?scl_vendor}%{!?scl_vendor:rh})}. + + +%package devel +Summary: %{name} developer files (header) +Group: Development/Libraries +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: %{?scl_prefix}php-devel%{?_isa} +%if "%{?scl_prefix}" != "%{?sub_prefix}" +Provides: %{?scl_prefix}php-pecl-%{pecl_name}-devel = %{version}-%{release} +Provides: %{?scl_prefix}php-pecl-%{pecl_name}-devel%{?_isa} = %{version}-%{release} +%endif + +%description devel +These are the files needed to compile programs using %{name}. + + +%prep +%setup -q -c +# rename source folder +mv %{pecl_name}-%{upstream_version}%{?upstream_prever} NTS + +%{?_licensedir:sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml} + +cd NTS + +# Sanity check, really often broken +extver=$(sed -n '/#define PHP_PSR_VERSION/{s/.* "//;s/".*$//;p}' php_psr.h) +if test "x${extver}" != "x%{upstream_version}%{?upstream_prever}"; then + : Error: Upstream extension version is ${extver}, expecting %{upstream_version}%{?upstream_prever}. + exit 1 +fi +cd .. + +%if %{with_zts} +# duplicate for ZTS build +cp -pr NTS ZTS +%endif + +# Drop in the bit of configuration +cat > %{ini_name} << 'EOF' +; Enable %{pecl_name} extension module +extension = %{pecl_name}.so +EOF + + +%build +%{?dtsenable} + +cd NTS +%{_bindir}/phpize +%configure \ + --enable-psr \ + --with-php-config=%{_bindir}/php-config +make %{?_smp_mflags} + +%if %{with_zts} +cd ../ZTS +%{_bindir}/zts-phpize +%configure \ + --enable-psr \ + --with-php-config=%{_bindir}/zts-php-config +make %{?_smp_mflags} +%endif + + +%install +%{?dtsenable} + +# Install the NTS stuff +make -C NTS install INSTALL_ROOT=%{buildroot} +install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name} + +%if %{with_zts} +# Install the ZTS stuff +make -C ZTS install INSTALL_ROOT=%{buildroot} +install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name} +%endif + +# Install the package XML file +install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml + +# Test & Documentation +cd NTS +for i in $(grep 'role="test"' ../package.xml | sed -e 's/^.*name="//;s/".*$//') +do install -Dpm 644 $i %{buildroot}%{pecl_testdir}/%{pecl_name}/$i +done +for i in $(grep 'role="doc"' ../package.xml | sed -e 's/^.*name="//;s/".*$//') +do install -Dpm 644 $i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i +done + + +%check +# simple module load test +%{__php} --no-php-ini \ + --define extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \ + --modules | grep %{pecl_name} + +%if %{with_zts} +%{__ztsphp} --no-php-ini \ + --define extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \ + --modules | grep %{pecl_name} +%endif + +%if %{with_tests} +cd NTS +: Upstream test suite for NTS extension +TEST_PHP_EXECUTABLE=%{__php} \ +TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_extdir}/%{pecl_name}.so" \ +NO_INTERACTION=1 \ +REPORT_EXIT_STATUS=1 \ +%{__php} -n run-tests.php --show-diff + +%if %{with_zts} +cd ../ZTS +: Upstream test suite for ZTS extension +TEST_PHP_EXECUTABLE=%{__ztsphp} \ +TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so" \ +NO_INTERACTION=1 \ +REPORT_EXIT_STATUS=1 \ +%{__ztsphp} -n run-tests.php --show-diff +%endif +%else +: Upstream test suite disabled +%endif + + +%if 0%{?fedora} < 24 +# when pear installed alone, after us +%triggerin -- %{?scl_prefix}php-pear +if [ -x %{__pecl} ] ; then + %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : +fi + +# posttrans as pear can be installed after us +%posttrans +if [ -x %{__pecl} ] ; then + %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : +fi + +%postun +if [ $1 -eq 0 -a -x %{__pecl} ] ; then + %{pecl_uninstall} %{pecl_name} >/dev/null || : +fi +%endif + + +%files +%{?_licensedir:%license NTS/LICENSE.md} +%doc %{pecl_docdir}/%{pecl_name} +%{pecl_xmldir}/%{name}.xml + +%{php_extdir}/%{pecl_name}.so +%config(noreplace) %{php_inidir}/%{ini_name} + +%if %{with_zts} +%{php_ztsextdir}/%{pecl_name}.so +%config(noreplace) %{php_ztsinidir}/%{ini_name} +%endif + + +%files devel +%doc %{pecl_testdir}/%{pecl_name} +%{php_incldir}/ext/%{pecl_name} + +%if %{with_zts} +%{php_ztsincldir}/ext/%{pecl_name} +%endif + + +%changelog +* Tue Aug 1 2017 Remi Collet - 0.3.0~RC3-1 +- initial package + -- cgit