Dependencies Upgrade
- Upgraded
friendsofphp/php-cs-fixerto^3.0; - Upgraded
psr/containerto^1.0|^2.0; - Upgraded
egulias/email-validatorto^3.0; - Upgraded
markrogoyski/math-phpto^2.0; - 3783 Upgraded
league/flysystemto^1.0|^2.0;
Dependencies Changed
- #3577
domnikl/statsdis abandoned and no longer maintained. The author suggests using theslickdeals/statsdpackage instead.
Changed
- #3334 Changed the return value of
LengthAwarePaginator::toArray()to be consistent with that ofPaginator::toArray(). - #3550 Removed
brokerandbootstrap_serverfromkafka, please usebrokersandbootstrap_serversinstead. - #3580 Changed the default priority of aspect to 0.
- #3582 Changed the consumer tag of amqp to empty string.
- #3634 Use Fork Process strategy to replace BetterReflection strategy.
- #3676 Use
promphp/prometheus_client_phpinstead ofendclothing/prometheus_client_php. - #3694 Changed
Hyperf\CircuitBreaker\CircuitBreakerInterfaceto support php8.- Changed
CircuitBreaker::inc*Counter()toCircuitBreaker::incr*Counter(). - Changed type hint for method
AbstractHandler::switch().
- Changed
- #3706 Changed the style of writing to
#[Middlewares(FooMiddleware::class)]from@Middlewares({@Middleware(FooMiddleware::class)})in PHP8. - #3715 Restructure nacos component, be sure to reread the documents.
- #3722 Removed config
config_apollo.php, please useconfig_center.phpinstead. - #3725 Removed config
config_etcd.php, please useconfig_center.phpinstead. - #3730 Removed config
brokersandupdate_brokersfrom kafka. - #3733 Removed config
zookeeper.php, please useconfig_center.phpinstead. - #3734 Split
nacosintoconfig-nacosandservice-governance-nacos.- #3772 Fixed bug that nacos driver do not work.
- #3734 Renamed
nacos-sdkasnacos. - #3737 Refactor config-center and config driver
- Added
AbstractDriverand merge the duplicate code into the abstraction class - Added
PipeMessageInterfaceto uniform the message struct of config fetcher process
- Added
- #3817 #3818 Split
service-governance-consulfromservice-governance. - #3819 Use their own configuration below
config_center.phpfor config center component which using ETCD and Nacos.
Deprecated
- #3636
Hyperf\Utils\Resourcewill be deprecated in v2.3, please useHyperf\Utils\ResourceGeneratorinstead.
Added
- #3589 Added DAG component.
- #3606 Added RPN component.
- #3629 Added
Hyperf\Utils\Channel\ChannelManagerwhich used to manage channels. - #3631 Support multiplexing for AMQP component.
- #3635 Added
Hyperf\Utils\CodeGen\PhpParserwhich used to generate AST for reflection. - #3648 Added
Hyperf\Utils\CodeGen\PhpDocReaderManagerto managePhpDocReader. - #3679 Added Nacos SDK component.
- #3712 The input parameters of
InstanceProvider::update()are modified to make it more friendly.
- #3712 The input parameters of
- #3698 Support PHP8 Attribute which can replace doctrine annotations.
- #3714 Added ide-helper component.
- #3722 Added config-center component.
- #3728 Added support for
secretof Apollo. - #3743 Support custom register for service governance.
- #3753 Support long pulling mode for Apollo Client.
- #3759 Added
rpc-multiplexcomponent. - #3791 Support setting multiple annotations by inheriting
AbstractMultipleAnnotation, such as@Middleware. - #3806 Added heartbeat for nacos service governance.
Optimized
- #3670 Adapt database component to support php8.
- #3673 Adapt all components to support php8.
- #3730 Optimized code for kafka component.
- Support
timeoutforProducerto avoid requests not responding. - Removed useless code with pool.
- Throw exceptions when connect kafka failed.
- Support
- #3758 Optimized code for pool which get connection again when first failed.
Fixed
- #3650 Fixed bug that
ReflectionParameter::getClass()will be deprecated in php8. - #3692 Fixed bug that class proxies couldn't be included when building phar.
- #3769 Fixed bug that
config-centerconflicts withmetrics. - #3770 Fixed type error when using
Str::slug(). - #3788 Fixed type error when using
BladeCompiler::getRawPlaceholder(). - #3794 Fixed bug that
retry_intervaldoes not work forrpc-multiplex. - #3798 Fixed bug that amqp consumer couldn't restart when rabbitmq server stopped.
- #3814 Fixed bug that
libxml_disable_entity_loader()has been deprecated as of PHP 8.0.0.