diff --git a/src/ApplicationInterface.php b/src/ApplicationInterface.php index 95b66fb..b0cecb4 100644 --- a/src/ApplicationInterface.php +++ b/src/ApplicationInterface.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; use Hyperf\Framework\ApplicationFactory; diff --git a/src/Arrayable.php b/src/Arrayable.php index 2ff01a1..64bf41a 100644 --- a/src/Arrayable.php +++ b/src/Arrayable.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; /** diff --git a/src/Castable.php b/src/Castable.php index 83eef90..940e46d 100644 --- a/src/Castable.php +++ b/src/Castable.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; interface Castable diff --git a/src/CastsAttributes.php b/src/CastsAttributes.php index 66ca73b..e992b9b 100644 --- a/src/CastsAttributes.php +++ b/src/CastsAttributes.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; interface CastsAttributes diff --git a/src/CastsInboundAttributes.php b/src/CastsInboundAttributes.php index 2bf448d..ad036d8 100644 --- a/src/CastsInboundAttributes.php +++ b/src/CastsInboundAttributes.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; interface CastsInboundAttributes diff --git a/src/CompressInterface.php b/src/CompressInterface.php index e0300a2..d29583f 100644 --- a/src/CompressInterface.php +++ b/src/CompressInterface.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; interface CompressInterface diff --git a/src/ConfigInterface.php b/src/ConfigInterface.php index 582f75d..8eec479 100644 --- a/src/ConfigInterface.php +++ b/src/ConfigInterface.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; interface ConfigInterface diff --git a/src/ConnectionInterface.php b/src/ConnectionInterface.php index 2e7f1a4..ca04c1c 100644 --- a/src/ConnectionInterface.php +++ b/src/ConnectionInterface.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; interface ConnectionInterface diff --git a/src/ContainerInterface.php b/src/ContainerInterface.php index bc374c6..3ff6b33 100644 --- a/src/ContainerInterface.php +++ b/src/ContainerInterface.php @@ -9,9 +9,13 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; +use Psr\Container\ContainerExceptionInterface; use Psr\Container\ContainerInterface as PsrContainerInterface; +use Psr\Container\NotFoundExceptionInterface; +use Throwable; interface ContainerInterface extends PsrContainerInterface { @@ -25,8 +29,8 @@ interface ContainerInterface extends PsrContainerInterface * @param array $parameters Optional parameters to use to build the entry. Use this to force specific parameters * to specific values. Parameters not defined in this array will be resolved using * the container. - * @throws InvalidArgumentException the name parameter must be of type string - * @throws NotFoundException no entry found for the given name + * @throws ContainerExceptionInterface&Throwable the name parameter must be of type string + * @throws NotFoundExceptionInterface&Throwable no entry found for the given name */ public function make(string $name, array $parameters = []); diff --git a/src/DispatcherInterface.php b/src/DispatcherInterface.php index d6e06f6..97da801 100644 --- a/src/DispatcherInterface.php +++ b/src/DispatcherInterface.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; interface DispatcherInterface diff --git a/src/FrequencyInterface.php b/src/FrequencyInterface.php index e0053e6..c7d25af 100644 --- a/src/FrequencyInterface.php +++ b/src/FrequencyInterface.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; interface FrequencyInterface diff --git a/src/IPReaderInterface.php b/src/IPReaderInterface.php index 9ba1915..4ad43b9 100644 --- a/src/IPReaderInterface.php +++ b/src/IPReaderInterface.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; interface IPReaderInterface diff --git a/src/IdGeneratorInterface.php b/src/IdGeneratorInterface.php index 8a0682b..5c68342 100644 --- a/src/IdGeneratorInterface.php +++ b/src/IdGeneratorInterface.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; interface IdGeneratorInterface diff --git a/src/JsonDeSerializable.php b/src/JsonDeSerializable.php index 672cbb6..8dec6a0 100644 --- a/src/JsonDeSerializable.php +++ b/src/JsonDeSerializable.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; interface JsonDeSerializable diff --git a/src/Jsonable.php b/src/Jsonable.php index 8d6abcb..65c05e2 100644 --- a/src/Jsonable.php +++ b/src/Jsonable.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; use Stringable; diff --git a/src/LengthAwarePaginatorInterface.php b/src/LengthAwarePaginatorInterface.php index c4413d8..8e7e648 100644 --- a/src/LengthAwarePaginatorInterface.php +++ b/src/LengthAwarePaginatorInterface.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; interface LengthAwarePaginatorInterface extends PaginatorInterface diff --git a/src/MessageBag.php b/src/MessageBag.php index 4da9cdc..996f2fa 100644 --- a/src/MessageBag.php +++ b/src/MessageBag.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; interface MessageBag diff --git a/src/MessageProvider.php b/src/MessageProvider.php index 9242a96..05ba7e5 100644 --- a/src/MessageProvider.php +++ b/src/MessageProvider.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; interface MessageProvider diff --git a/src/MiddlewareInitializerInterface.php b/src/MiddlewareInitializerInterface.php index 6de3fd6..63e23a0 100644 --- a/src/MiddlewareInitializerInterface.php +++ b/src/MiddlewareInitializerInterface.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; interface MiddlewareInitializerInterface diff --git a/src/NormalizerInterface.php b/src/NormalizerInterface.php index e9dfe7f..db76d44 100644 --- a/src/NormalizerInterface.php +++ b/src/NormalizerInterface.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; use ArrayObject; diff --git a/src/OnCloseInterface.php b/src/OnCloseInterface.php index f06d1bf..ed92cb4 100644 --- a/src/OnCloseInterface.php +++ b/src/OnCloseInterface.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; use Swoole\Http\Response; diff --git a/src/OnHandShakeInterface.php b/src/OnHandShakeInterface.php index 4205404..4b0faae 100644 --- a/src/OnHandShakeInterface.php +++ b/src/OnHandShakeInterface.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; use Swoole\Http\Request; diff --git a/src/OnMessageInterface.php b/src/OnMessageInterface.php index 5060229..cbd2dbb 100644 --- a/src/OnMessageInterface.php +++ b/src/OnMessageInterface.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; use Swoole\Http\Response; diff --git a/src/OnOpenInterface.php b/src/OnOpenInterface.php index 1367764..0f87033 100644 --- a/src/OnOpenInterface.php +++ b/src/OnOpenInterface.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; use Swoole\Http\Request; diff --git a/src/OnPacketInterface.php b/src/OnPacketInterface.php index 3cef995..15b1ac9 100644 --- a/src/OnPacketInterface.php +++ b/src/OnPacketInterface.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; use Swoole\WebSocket\Server; diff --git a/src/OnReceiveInterface.php b/src/OnReceiveInterface.php index af6d65e..c16dde7 100644 --- a/src/OnReceiveInterface.php +++ b/src/OnReceiveInterface.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; use Hyperf\Server\Connection as HyperfConnection; diff --git a/src/OnRequestInterface.php b/src/OnRequestInterface.php index a9dd447..5a81f07 100644 --- a/src/OnRequestInterface.php +++ b/src/OnRequestInterface.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; interface OnRequestInterface diff --git a/src/PackerInterface.php b/src/PackerInterface.php index 23ee2e3..26794be 100644 --- a/src/PackerInterface.php +++ b/src/PackerInterface.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; interface PackerInterface diff --git a/src/PaginatorInterface.php b/src/PaginatorInterface.php index cb16029..72ff113 100644 --- a/src/PaginatorInterface.php +++ b/src/PaginatorInterface.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; interface PaginatorInterface diff --git a/src/PoolInterface.php b/src/PoolInterface.php index d330afa..8853dcd 100644 --- a/src/PoolInterface.php +++ b/src/PoolInterface.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; interface PoolInterface diff --git a/src/PoolOptionInterface.php b/src/PoolOptionInterface.php index cf5f29c..ab5ec35 100644 --- a/src/PoolOptionInterface.php +++ b/src/PoolOptionInterface.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; interface PoolOptionInterface diff --git a/src/ProcessInterface.php b/src/ProcessInterface.php index 830353f..5dac4e0 100644 --- a/src/ProcessInterface.php +++ b/src/ProcessInterface.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; use Swoole\Coroutine\Http\Server as CoHttpServer; diff --git a/src/ResponseEmitterInterface.php b/src/ResponseEmitterInterface.php index 6c9a020..6db1a55 100644 --- a/src/ResponseEmitterInterface.php +++ b/src/ResponseEmitterInterface.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; use Psr\Http\Message\ResponseInterface; diff --git a/src/SessionInterface.php b/src/SessionInterface.php index 4e419eb..659bc73 100644 --- a/src/SessionInterface.php +++ b/src/SessionInterface.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; use RuntimeException; diff --git a/src/StdoutLoggerInterface.php b/src/StdoutLoggerInterface.php index f4f234e..bf83479 100644 --- a/src/StdoutLoggerInterface.php +++ b/src/StdoutLoggerInterface.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; use Psr\Log\LoggerInterface; diff --git a/src/Synchronized.php b/src/Synchronized.php index 46a2a8f..f4afb25 100644 --- a/src/Synchronized.php +++ b/src/Synchronized.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; interface Synchronized diff --git a/src/TranslatorInterface.php b/src/TranslatorInterface.php index 78b823d..596176d 100644 --- a/src/TranslatorInterface.php +++ b/src/TranslatorInterface.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; use Countable; diff --git a/src/TranslatorLoaderInterface.php b/src/TranslatorLoaderInterface.php index 052a09b..19ec271 100644 --- a/src/TranslatorLoaderInterface.php +++ b/src/TranslatorLoaderInterface.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; interface TranslatorLoaderInterface diff --git a/src/UnCompressInterface.php b/src/UnCompressInterface.php index 20e0796..7a16853 100644 --- a/src/UnCompressInterface.php +++ b/src/UnCompressInterface.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; interface UnCompressInterface diff --git a/src/ValidatorInterface.php b/src/ValidatorInterface.php index 84ca731..c6b7d38 100644 --- a/src/ValidatorInterface.php +++ b/src/ValidatorInterface.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; interface ValidatorInterface extends MessageProvider diff --git a/src/Xmlable.php b/src/Xmlable.php index a3449cf..4bd2000 100644 --- a/src/Xmlable.php +++ b/src/Xmlable.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Contract; use Stringable;