mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-01 19:27:39 +08:00
Format code by the latest cs-fixer
. (#6617)
This commit is contained in:
parent
ddc1a2537a
commit
fc488034b9
@ -94,7 +94,9 @@ return (new PhpCsFixer\Config())
|
|||||||
'single_quote' => true,
|
'single_quote' => true,
|
||||||
'standardize_not_equals' => true,
|
'standardize_not_equals' => true,
|
||||||
'multiline_comment_opening_closing' => true,
|
'multiline_comment_opening_closing' => true,
|
||||||
'nullable_type_declaration_for_default_null_value' => true, // Since PHP 8.3, default null values can be declared as nullable.
|
// Since PHP 8.3, default null values can be declared as nullable.
|
||||||
|
'nullable_type_declaration_for_default_null_value' => true,
|
||||||
|
'single_line_empty_body' => false,
|
||||||
])
|
])
|
||||||
->setFinder(
|
->setFinder(
|
||||||
PhpCsFixer\Finder::create()
|
PhpCsFixer\Finder::create()
|
||||||
|
@ -4,6 +4,10 @@
|
|||||||
|
|
||||||
- [#6613](https://github.com/hyperf/hyperf/pull/6613) Added event of release connection for `hyperf/pool`.
|
- [#6613](https://github.com/hyperf/hyperf/pull/6613) Added event of release connection for `hyperf/pool`.
|
||||||
|
|
||||||
|
## Optimized
|
||||||
|
|
||||||
|
- [#6616](https://github.com/hyperf/hyperf/pull/6616) [#6617](https://github.com/hyperf/hyperf/pull/6617) Format code by the latest `cs-fixer`.
|
||||||
|
|
||||||
# v3.1.14 - 2024-03-21
|
# v3.1.14 - 2024-03-21
|
||||||
|
|
||||||
## Fixed
|
## Fixed
|
||||||
|
@ -32,4 +32,4 @@ AstVisitorRegistry::insert(ProxyCallVisitor::class);
|
|||||||
// Register Property Handler.
|
// Register Property Handler.
|
||||||
RegisterInjectPropertyHandler::register();
|
RegisterInjectPropertyHandler::register();
|
||||||
|
|
||||||
(new RegisterPropertyHandlerListener())->process(new \stdClass());
|
(new RegisterPropertyHandlerListener())->process(new stdClass());
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
"fakerphp/faker": "^1.23",
|
"fakerphp/faker": "^1.23",
|
||||||
"fig/http-message-util": "^1.1.2",
|
"fig/http-message-util": "^1.1.2",
|
||||||
"filp/whoops": "^2.7",
|
"filp/whoops": "^2.7",
|
||||||
"friendsofphp/php-cs-fixer": "~3.16.0",
|
"friendsofphp/php-cs-fixer": "^3.52",
|
||||||
"google/common-protos": "^3.2|^4.4",
|
"google/common-protos": "^3.2|^4.4",
|
||||||
"google/protobuf": "^3.6.1",
|
"google/protobuf": "^3.6.1",
|
||||||
"grpc/grpc": "^1.15",
|
"grpc/grpc": "^1.15",
|
||||||
|
@ -16,7 +16,6 @@ parameters:
|
|||||||
- %currentWorkingDirectory%/src/*/class_map/*
|
- %currentWorkingDirectory%/src/*/class_map/*
|
||||||
- %currentWorkingDirectory%/src/di/src/Resolver/FactoryResolver.php
|
- %currentWorkingDirectory%/src/di/src/Resolver/FactoryResolver.php
|
||||||
- %currentWorkingDirectory%/src/config-zookeeper/src/Client.php
|
- %currentWorkingDirectory%/src/config-zookeeper/src/Client.php
|
||||||
- %currentWorkingDirectory%/src/contract/*
|
|
||||||
- %currentWorkingDirectory%/src/database/*
|
- %currentWorkingDirectory%/src/database/*
|
||||||
- %currentWorkingDirectory%/src/database-pgsql/*
|
- %currentWorkingDirectory%/src/database-pgsql/*
|
||||||
- %currentWorkingDirectory%/src/db/src/PgSQL/*
|
- %currentWorkingDirectory%/src/db/src/PgSQL/*
|
||||||
@ -25,7 +24,6 @@ parameters:
|
|||||||
- %currentWorkingDirectory%/src/grpc/*
|
- %currentWorkingDirectory%/src/grpc/*
|
||||||
- %currentWorkingDirectory%/src/grpc-server/*
|
- %currentWorkingDirectory%/src/grpc-server/*
|
||||||
- %currentWorkingDirectory%/src/ide-helper/*
|
- %currentWorkingDirectory%/src/ide-helper/*
|
||||||
- %currentWorkingDirectory%/src/swagger/*
|
|
||||||
- %currentWorkingDirectory%/src/validation/*
|
- %currentWorkingDirectory%/src/validation/*
|
||||||
- %currentWorkingDirectory%/src/view/src/Engine/*
|
- %currentWorkingDirectory%/src/view/src/Engine/*
|
||||||
- %currentWorkingDirectory%/src/server/src/SwowServer.php
|
- %currentWorkingDirectory%/src/server/src/SwowServer.php
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp;
|
namespace Hyperf\Amqp;
|
||||||
|
|
||||||
use Hyperf\Amqp\Exception\LoopBrokenException;
|
use Hyperf\Amqp\Exception\LoopBrokenException;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp\Annotation;
|
namespace Hyperf\Amqp\Annotation;
|
||||||
|
|
||||||
use Attribute;
|
use Attribute;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp\Annotation;
|
namespace Hyperf\Amqp\Annotation;
|
||||||
|
|
||||||
use Attribute;
|
use Attribute;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp;
|
namespace Hyperf\Amqp;
|
||||||
|
|
||||||
use Hyperf\Amqp\Message\MessageInterface;
|
use Hyperf\Amqp\Message\MessageInterface;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp\Builder;
|
namespace Hyperf\Amqp\Builder;
|
||||||
|
|
||||||
use PhpAmqpLib\Wire\AMQPTable;
|
use PhpAmqpLib\Wire\AMQPTable;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp\Builder;
|
namespace Hyperf\Amqp\Builder;
|
||||||
|
|
||||||
use Hyperf\Amqp\Message\Type;
|
use Hyperf\Amqp\Message\Type;
|
||||||
@ -32,7 +33,7 @@ class ExchangeBuilder extends Builder
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getType(): Type|string
|
public function getType(): string|Type
|
||||||
{
|
{
|
||||||
return $this->type;
|
return $this->type;
|
||||||
}
|
}
|
||||||
@ -42,7 +43,7 @@ class ExchangeBuilder extends Builder
|
|||||||
return $this->type instanceof Type ? $this->type->value : $this->type;
|
return $this->type instanceof Type ? $this->type->value : $this->type;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setType(Type|string $type): static
|
public function setType(string|Type $type): static
|
||||||
{
|
{
|
||||||
$this->type = $type;
|
$this->type = $type;
|
||||||
return $this;
|
return $this;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp\Builder;
|
namespace Hyperf\Amqp\Builder;
|
||||||
|
|
||||||
use PhpAmqpLib\Wire\AMQPTable;
|
use PhpAmqpLib\Wire\AMQPTable;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp;
|
namespace Hyperf\Amqp;
|
||||||
|
|
||||||
use Hyperf\Amqp\Listener\BeforeMainServerStartListener;
|
use Hyperf\Amqp\Listener\BeforeMainServerStartListener;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp;
|
namespace Hyperf\Amqp;
|
||||||
|
|
||||||
use Hyperf\Amqp\Exception\NotSupportedException;
|
use Hyperf\Amqp\Exception\NotSupportedException;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp;
|
namespace Hyperf\Amqp;
|
||||||
|
|
||||||
class Constants
|
class Constants
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp;
|
namespace Hyperf\Amqp;
|
||||||
|
|
||||||
use Hyperf\Amqp\Event\AfterConsume;
|
use Hyperf\Amqp\Event\AfterConsume;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp;
|
namespace Hyperf\Amqp;
|
||||||
|
|
||||||
use Hyperf\Contract\StdoutLoggerInterface;
|
use Hyperf\Contract\StdoutLoggerInterface;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp;
|
namespace Hyperf\Amqp;
|
||||||
|
|
||||||
use Hyperf\Amqp\Annotation\Consumer as ConsumerAnnotation;
|
use Hyperf\Amqp\Annotation\Consumer as ConsumerAnnotation;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp\Event;
|
namespace Hyperf\Amqp\Event;
|
||||||
|
|
||||||
use Hyperf\Amqp\Message\ConsumerMessageInterface;
|
use Hyperf\Amqp\Message\ConsumerMessageInterface;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp\Event;
|
namespace Hyperf\Amqp\Event;
|
||||||
|
|
||||||
use Hyperf\Amqp\Message\ConsumerMessageInterface;
|
use Hyperf\Amqp\Message\ConsumerMessageInterface;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp\Event;
|
namespace Hyperf\Amqp\Event;
|
||||||
|
|
||||||
use Hyperf\Amqp\Message\ConsumerMessageInterface;
|
use Hyperf\Amqp\Message\ConsumerMessageInterface;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp\Event;
|
namespace Hyperf\Amqp\Event;
|
||||||
|
|
||||||
use Hyperf\Amqp\Message\ConsumerMessageInterface;
|
use Hyperf\Amqp\Message\ConsumerMessageInterface;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp\Event;
|
namespace Hyperf\Amqp\Event;
|
||||||
|
|
||||||
class WaitTimeout extends ConsumeEvent
|
class WaitTimeout extends ConsumeEvent
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp\Exception;
|
namespace Hyperf\Amqp\Exception;
|
||||||
|
|
||||||
use RuntimeException;
|
use RuntimeException;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp\Exception;
|
namespace Hyperf\Amqp\Exception;
|
||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp\Exception;
|
namespace Hyperf\Amqp\Exception;
|
||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp\Exception;
|
namespace Hyperf\Amqp\Exception;
|
||||||
|
|
||||||
use RuntimeException;
|
use RuntimeException;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp\Exception;
|
namespace Hyperf\Amqp\Exception;
|
||||||
|
|
||||||
use RuntimeException;
|
use RuntimeException;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp\Exception;
|
namespace Hyperf\Amqp\Exception;
|
||||||
|
|
||||||
use RuntimeException;
|
use RuntimeException;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp\Exception;
|
namespace Hyperf\Amqp\Exception;
|
||||||
|
|
||||||
use RuntimeException;
|
use RuntimeException;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp\IO;
|
namespace Hyperf\Amqp\IO;
|
||||||
|
|
||||||
use Hyperf\Amqp\Exception\NotSupportedException;
|
use Hyperf\Amqp\Exception\NotSupportedException;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp\IO;
|
namespace Hyperf\Amqp\IO;
|
||||||
|
|
||||||
use Hyperf\Amqp\Params;
|
use Hyperf\Amqp\Params;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp\IO;
|
namespace Hyperf\Amqp\IO;
|
||||||
|
|
||||||
use InvalidArgumentException;
|
use InvalidArgumentException;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp\IO;
|
namespace Hyperf\Amqp\IO;
|
||||||
|
|
||||||
use Hyperf\Engine\Socket;
|
use Hyperf\Engine\Socket;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp\Listener;
|
namespace Hyperf\Amqp\Listener;
|
||||||
|
|
||||||
use Hyperf\Amqp\ConsumerManager;
|
use Hyperf\Amqp\ConsumerManager;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp\Listener;
|
namespace Hyperf\Amqp\Listener;
|
||||||
|
|
||||||
use Doctrine\Instantiator\Instantiator;
|
use Doctrine\Instantiator\Instantiator;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp\Message;
|
namespace Hyperf\Amqp\Message;
|
||||||
|
|
||||||
use Hyperf\Amqp\Builder\QueueBuilder;
|
use Hyperf\Amqp\Builder\QueueBuilder;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp\Message;
|
namespace Hyperf\Amqp\Message;
|
||||||
|
|
||||||
use Hyperf\Amqp\Builder\QueueBuilder;
|
use Hyperf\Amqp\Builder\QueueBuilder;
|
||||||
@ -38,7 +39,7 @@ abstract class ConsumerMessage extends Message implements ConsumerMessageInterfa
|
|||||||
|
|
||||||
protected int $maxConsumption = 0;
|
protected int $maxConsumption = 0;
|
||||||
|
|
||||||
protected int|float $waitTimeout = 0;
|
protected float|int $waitTimeout = 0;
|
||||||
|
|
||||||
protected int $nums = 1;
|
protected int $nums = 1;
|
||||||
|
|
||||||
@ -113,12 +114,12 @@ abstract class ConsumerMessage extends Message implements ConsumerMessageInterfa
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getWaitTimeout(): int|float
|
public function getWaitTimeout(): float|int
|
||||||
{
|
{
|
||||||
return $this->waitTimeout;
|
return $this->waitTimeout;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setWaitTimeout(int|float $timeout): static
|
public function setWaitTimeout(float|int $timeout): static
|
||||||
{
|
{
|
||||||
$this->waitTimeout = $timeout;
|
$this->waitTimeout = $timeout;
|
||||||
return $this;
|
return $this;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp\Message;
|
namespace Hyperf\Amqp\Message;
|
||||||
|
|
||||||
use Hyperf\Amqp\Builder\QueueBuilder;
|
use Hyperf\Amqp\Builder\QueueBuilder;
|
||||||
@ -40,9 +41,9 @@ interface ConsumerMessageInterface extends MessageInterface
|
|||||||
|
|
||||||
public function setMaxConsumption(int $maxConsumption): static;
|
public function setMaxConsumption(int $maxConsumption): static;
|
||||||
|
|
||||||
public function getWaitTimeout(): int|float;
|
public function getWaitTimeout(): float|int;
|
||||||
|
|
||||||
public function setWaitTimeout(int|float $timeout): static;
|
public function setWaitTimeout(float|int $timeout): static;
|
||||||
|
|
||||||
public function setNums(int $nums): static;
|
public function setNums(int $nums): static;
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp\Message;
|
namespace Hyperf\Amqp\Message;
|
||||||
|
|
||||||
class DynamicRpcMessage extends RpcMessage
|
class DynamicRpcMessage extends RpcMessage
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp\Message;
|
namespace Hyperf\Amqp\Message;
|
||||||
|
|
||||||
use Hyperf\Amqp\Builder\ExchangeBuilder;
|
use Hyperf\Amqp\Builder\ExchangeBuilder;
|
||||||
@ -20,17 +21,17 @@ abstract class Message implements MessageInterface
|
|||||||
|
|
||||||
protected string $exchange = '';
|
protected string $exchange = '';
|
||||||
|
|
||||||
protected Type|string $type = Type::TOPIC;
|
protected string|Type $type = Type::TOPIC;
|
||||||
|
|
||||||
protected array|string $routingKey = '';
|
protected array|string $routingKey = '';
|
||||||
|
|
||||||
public function setType(Type|string $type): static
|
public function setType(string|Type $type): static
|
||||||
{
|
{
|
||||||
$this->type = $type;
|
$this->type = $type;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getType(): Type|string
|
public function getType(): string|Type
|
||||||
{
|
{
|
||||||
return $this->type;
|
return $this->type;
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp\Message;
|
namespace Hyperf\Amqp\Message;
|
||||||
|
|
||||||
use Hyperf\Amqp\Builder\ExchangeBuilder;
|
use Hyperf\Amqp\Builder\ExchangeBuilder;
|
||||||
@ -22,9 +23,9 @@ interface MessageInterface
|
|||||||
*/
|
*/
|
||||||
public function getPoolName(): string;
|
public function getPoolName(): string;
|
||||||
|
|
||||||
public function setType(Type|string $type);
|
public function setType(string|Type $type);
|
||||||
|
|
||||||
public function getType(): Type|string;
|
public function getType(): string|Type;
|
||||||
|
|
||||||
public function setExchange(string $exchange);
|
public function setExchange(string $exchange);
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp\Message;
|
namespace Hyperf\Amqp\Message;
|
||||||
|
|
||||||
use Hyperf\Amqp\Builder\ExchangeBuilder;
|
use Hyperf\Amqp\Builder\ExchangeBuilder;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp\Message;
|
namespace Hyperf\Amqp\Message;
|
||||||
|
|
||||||
use Hyperf\Amqp\Constants;
|
use Hyperf\Amqp\Constants;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp\Message;
|
namespace Hyperf\Amqp\Message;
|
||||||
|
|
||||||
interface ProducerMessageInterface extends MessageInterface
|
interface ProducerMessageInterface extends MessageInterface
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp\Message;
|
namespace Hyperf\Amqp\Message;
|
||||||
|
|
||||||
use Hyperf\Amqp\Builder\QueueBuilder;
|
use Hyperf\Amqp\Builder\QueueBuilder;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp\Message;
|
namespace Hyperf\Amqp\Message;
|
||||||
|
|
||||||
use Hyperf\Amqp\Builder\QueueBuilder;
|
use Hyperf\Amqp\Builder\QueueBuilder;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp\Message;
|
namespace Hyperf\Amqp\Message;
|
||||||
|
|
||||||
enum Type: string
|
enum Type: string
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp\Packer;
|
namespace Hyperf\Amqp\Packer;
|
||||||
|
|
||||||
use Hyperf\Contract\PackerInterface;
|
use Hyperf\Contract\PackerInterface;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp;
|
namespace Hyperf\Amqp;
|
||||||
|
|
||||||
class Params
|
class Params
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp;
|
namespace Hyperf\Amqp;
|
||||||
|
|
||||||
use Hyperf\Amqp\Message\ProducerMessageInterface;
|
use Hyperf\Amqp\Message\ProducerMessageInterface;
|
||||||
@ -64,7 +65,7 @@ class Producer extends Builder
|
|||||||
private function injectMessageProperty(ProducerMessageInterface $producerMessage): void
|
private function injectMessageProperty(ProducerMessageInterface $producerMessage): void
|
||||||
{
|
{
|
||||||
if (class_exists(AnnotationCollector::class)) {
|
if (class_exists(AnnotationCollector::class)) {
|
||||||
/** @var null|\Hyperf\Amqp\Annotation\Producer $annotation */
|
/** @var null|Annotation\Producer $annotation */
|
||||||
$annotation = AnnotationCollector::getClassAnnotation(get_class($producerMessage), Annotation\Producer::class);
|
$annotation = AnnotationCollector::getClassAnnotation(get_class($producerMessage), Annotation\Producer::class);
|
||||||
if ($annotation) {
|
if ($annotation) {
|
||||||
$annotation->routingKey && $producerMessage->setRoutingKey($annotation->routingKey);
|
$annotation->routingKey && $producerMessage->setRoutingKey($annotation->routingKey);
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp;
|
namespace Hyperf\Amqp;
|
||||||
|
|
||||||
enum Result: string
|
enum Result: string
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp;
|
namespace Hyperf\Amqp;
|
||||||
|
|
||||||
use Hyperf\Engine\Channel;
|
use Hyperf\Engine\Channel;
|
||||||
@ -61,7 +62,7 @@ class RpcChannel
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function wait(int $timeout): bool|AMQPMessage
|
public function wait(int $timeout): AMQPMessage|bool
|
||||||
{
|
{
|
||||||
$this->channel->wait(null, false, $timeout);
|
$this->channel->wait(null, false, $timeout);
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\Amqp;
|
namespace Hyperf\Amqp;
|
||||||
|
|
||||||
use Hyperf\Amqp\Builder\QueueBuilder;
|
use Hyperf\Amqp\Builder\QueueBuilder;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace HyperfTest\Amqp;
|
namespace HyperfTest\Amqp;
|
||||||
|
|
||||||
use Hyperf\Amqp\ConnectionFactory;
|
use Hyperf\Amqp\ConnectionFactory;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace HyperfTest\Amqp;
|
namespace HyperfTest\Amqp;
|
||||||
|
|
||||||
use Hyperf\Amqp\Annotation\Consumer;
|
use Hyperf\Amqp\Annotation\Consumer;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace HyperfTest\Amqp;
|
namespace HyperfTest\Amqp;
|
||||||
|
|
||||||
use Hyperf\Amqp\ConnectionFactory;
|
use Hyperf\Amqp\ConnectionFactory;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace HyperfTest\Amqp;
|
namespace HyperfTest\Amqp;
|
||||||
|
|
||||||
use HyperfTest\Amqp\Stub\DelayProducerStub;
|
use HyperfTest\Amqp\Stub\DelayProducerStub;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace HyperfTest\Amqp\Listener;
|
namespace HyperfTest\Amqp\Listener;
|
||||||
|
|
||||||
use Hyperf\Amqp\ConsumerManager;
|
use Hyperf\Amqp\ConsumerManager;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace HyperfTest\Amqp\Listener;
|
namespace HyperfTest\Amqp\Listener;
|
||||||
|
|
||||||
use Doctrine\Instantiator\Instantiator;
|
use Doctrine\Instantiator\Instantiator;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace HyperfTest\Amqp\Message;
|
namespace HyperfTest\Amqp\Message;
|
||||||
|
|
||||||
use Hyperf\Amqp\ConnectionFactory;
|
use Hyperf\Amqp\ConnectionFactory;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace HyperfTest\Amqp\Message;
|
namespace HyperfTest\Amqp\Message;
|
||||||
|
|
||||||
use HyperfTest\Amqp\Stub\DemoConsumer;
|
use HyperfTest\Amqp\Stub\DemoConsumer;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace HyperfTest\Amqp;
|
namespace HyperfTest\Amqp;
|
||||||
|
|
||||||
use Hyperf\Amqp\Params;
|
use Hyperf\Amqp\Params;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace HyperfTest\Amqp\Stub;
|
namespace HyperfTest\Amqp\Stub;
|
||||||
|
|
||||||
use Hyperf\Amqp\AMQPConnection;
|
use Hyperf\Amqp\AMQPConnection;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace HyperfTest\Amqp\Stub;
|
namespace HyperfTest\Amqp\Stub;
|
||||||
|
|
||||||
use Hyperf\Amqp\ConnectionFactory;
|
use Hyperf\Amqp\ConnectionFactory;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace HyperfTest\Amqp\Stub;
|
namespace HyperfTest\Amqp\Stub;
|
||||||
|
|
||||||
use Hyperf\Amqp\Message\ConsumerDelayedMessageTrait;
|
use Hyperf\Amqp\Message\ConsumerDelayedMessageTrait;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace HyperfTest\Amqp\Stub;
|
namespace HyperfTest\Amqp\Stub;
|
||||||
|
|
||||||
use Hyperf\Amqp\Message\ConsumerDelayedMessageTrait;
|
use Hyperf\Amqp\Message\ConsumerDelayedMessageTrait;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace HyperfTest\Amqp\Stub;
|
namespace HyperfTest\Amqp\Stub;
|
||||||
|
|
||||||
use Hyperf\Amqp\Annotation\Producer;
|
use Hyperf\Amqp\Annotation\Producer;
|
||||||
@ -23,7 +24,7 @@ class DelayProducerStub extends ProducerMessage
|
|||||||
|
|
||||||
protected string $exchange = 'ext.hyperf.delay';
|
protected string $exchange = 'ext.hyperf.delay';
|
||||||
|
|
||||||
protected Type|string $type = Type::DIRECT;
|
protected string|Type $type = Type::DIRECT;
|
||||||
|
|
||||||
protected array|string $routingKey = '';
|
protected array|string $routingKey = '';
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace HyperfTest\Amqp\Stub;
|
namespace HyperfTest\Amqp\Stub;
|
||||||
|
|
||||||
use Hyperf\Amqp\Message\ConsumerMessage;
|
use Hyperf\Amqp\Message\ConsumerMessage;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace HyperfTest\Amqp\Stub;
|
namespace HyperfTest\Amqp\Stub;
|
||||||
|
|
||||||
use Hyperf\Amqp\Message\ProducerMessage;
|
use Hyperf\Amqp\Message\ProducerMessage;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace HyperfTest\Amqp\Stub;
|
namespace HyperfTest\Amqp\Stub;
|
||||||
|
|
||||||
use Hyperf\Amqp\Message\ConsumerMessage;
|
use Hyperf\Amqp\Message\ConsumerMessage;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace HyperfTest\Amqp\Stub;
|
namespace HyperfTest\Amqp\Stub;
|
||||||
|
|
||||||
use Hyperf\Amqp\Message\ConsumerMessage;
|
use Hyperf\Amqp\Message\ConsumerMessage;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\AsyncQueue\Annotation;
|
namespace Hyperf\AsyncQueue\Annotation;
|
||||||
|
|
||||||
use Attribute;
|
use Attribute;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\AsyncQueue;
|
namespace Hyperf\AsyncQueue;
|
||||||
|
|
||||||
use Hyperf\Context\ApplicationContext;
|
use Hyperf\Context\ApplicationContext;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\AsyncQueue\Aspect;
|
namespace Hyperf\AsyncQueue\Aspect;
|
||||||
|
|
||||||
use Hyperf\AsyncQueue\Annotation\AsyncQueueMessage;
|
use Hyperf\AsyncQueue\Annotation\AsyncQueueMessage;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\AsyncQueue\Command;
|
namespace Hyperf\AsyncQueue\Command;
|
||||||
|
|
||||||
use Hyperf\AsyncQueue\Driver\DriverFactory;
|
use Hyperf\AsyncQueue\Driver\DriverFactory;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\AsyncQueue\Command;
|
namespace Hyperf\AsyncQueue\Command;
|
||||||
|
|
||||||
use Hyperf\AsyncQueue\Driver\DriverFactory;
|
use Hyperf\AsyncQueue\Driver\DriverFactory;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\AsyncQueue\Command;
|
namespace Hyperf\AsyncQueue\Command;
|
||||||
|
|
||||||
use Hyperf\AsyncQueue\Driver\DriverFactory;
|
use Hyperf\AsyncQueue\Driver\DriverFactory;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\AsyncQueue;
|
namespace Hyperf\AsyncQueue;
|
||||||
|
|
||||||
use Hyperf\AsyncQueue\Aspect\AsyncQueueAspect;
|
use Hyperf\AsyncQueue\Aspect\AsyncQueueAspect;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\AsyncQueue\Driver;
|
namespace Hyperf\AsyncQueue\Driver;
|
||||||
|
|
||||||
use Hyperf\AsyncQueue\Exception\InvalidQueueException;
|
use Hyperf\AsyncQueue\Exception\InvalidQueueException;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\AsyncQueue\Driver;
|
namespace Hyperf\AsyncQueue\Driver;
|
||||||
|
|
||||||
use Hyperf\AsyncQueue\Event\AfterHandle;
|
use Hyperf\AsyncQueue\Event\AfterHandle;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\AsyncQueue\Driver;
|
namespace Hyperf\AsyncQueue\Driver;
|
||||||
|
|
||||||
use Hyperf\AsyncQueue\Exception\InvalidDriverException;
|
use Hyperf\AsyncQueue\Exception\InvalidDriverException;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\AsyncQueue\Driver;
|
namespace Hyperf\AsyncQueue\Driver;
|
||||||
|
|
||||||
use Hyperf\AsyncQueue\JobInterface;
|
use Hyperf\AsyncQueue\JobInterface;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\AsyncQueue\Driver;
|
namespace Hyperf\AsyncQueue\Driver;
|
||||||
|
|
||||||
use Hyperf\AsyncQueue\Exception\InvalidQueueException;
|
use Hyperf\AsyncQueue\Exception\InvalidQueueException;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\AsyncQueue;
|
namespace Hyperf\AsyncQueue;
|
||||||
|
|
||||||
use Hyperf\Context\Context;
|
use Hyperf\Context\Context;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\AsyncQueue\Event;
|
namespace Hyperf\AsyncQueue\Event;
|
||||||
|
|
||||||
class AfterHandle extends Event
|
class AfterHandle extends Event
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\AsyncQueue\Event;
|
namespace Hyperf\AsyncQueue\Event;
|
||||||
|
|
||||||
class BeforeHandle extends Event
|
class BeforeHandle extends Event
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\AsyncQueue\Event;
|
namespace Hyperf\AsyncQueue\Event;
|
||||||
|
|
||||||
use Hyperf\AsyncQueue\MessageInterface;
|
use Hyperf\AsyncQueue\MessageInterface;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\AsyncQueue\Event;
|
namespace Hyperf\AsyncQueue\Event;
|
||||||
|
|
||||||
use Hyperf\AsyncQueue\MessageInterface;
|
use Hyperf\AsyncQueue\MessageInterface;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\AsyncQueue\Event;
|
namespace Hyperf\AsyncQueue\Event;
|
||||||
|
|
||||||
use Hyperf\AsyncQueue\Driver\DriverInterface;
|
use Hyperf\AsyncQueue\Driver\DriverInterface;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\AsyncQueue\Event;
|
namespace Hyperf\AsyncQueue\Event;
|
||||||
|
|
||||||
use Hyperf\AsyncQueue\MessageInterface;
|
use Hyperf\AsyncQueue\MessageInterface;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\AsyncQueue\Exception;
|
namespace Hyperf\AsyncQueue\Exception;
|
||||||
|
|
||||||
use RuntimeException;
|
use RuntimeException;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\AsyncQueue\Exception;
|
namespace Hyperf\AsyncQueue\Exception;
|
||||||
|
|
||||||
use RuntimeException;
|
use RuntimeException;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\AsyncQueue\Exception;
|
namespace Hyperf\AsyncQueue\Exception;
|
||||||
|
|
||||||
use RuntimeException;
|
use RuntimeException;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\AsyncQueue;
|
namespace Hyperf\AsyncQueue;
|
||||||
|
|
||||||
use Hyperf\AsyncQueue\Driver\DriverFactory;
|
use Hyperf\AsyncQueue\Driver\DriverFactory;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\AsyncQueue;
|
namespace Hyperf\AsyncQueue;
|
||||||
|
|
||||||
use Hyperf\Contract\CompressInterface;
|
use Hyperf\Contract\CompressInterface;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\AsyncQueue;
|
namespace Hyperf\AsyncQueue;
|
||||||
|
|
||||||
use Throwable;
|
use Throwable;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\AsyncQueue;
|
namespace Hyperf\AsyncQueue;
|
||||||
|
|
||||||
use Hyperf\Contract\CompressInterface;
|
use Hyperf\Contract\CompressInterface;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\AsyncQueue\Listener;
|
namespace Hyperf\AsyncQueue\Listener;
|
||||||
|
|
||||||
use Hyperf\AsyncQueue\AnnotationJob;
|
use Hyperf\AsyncQueue\AnnotationJob;
|
||||||
|
@ -9,6 +9,7 @@ declare(strict_types=1);
|
|||||||
* @contact group@hyperf.io
|
* @contact group@hyperf.io
|
||||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Hyperf\AsyncQueue\Listener;
|
namespace Hyperf\AsyncQueue\Listener;
|
||||||
|
|
||||||
use Hyperf\AsyncQueue\Event\QueueLength;
|
use Hyperf\AsyncQueue\Event\QueueLength;
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user