Skip to content

Commit

Permalink
加入安装配置中心命令和修改包版本 (#706)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohe4966 authored Jul 12, 2024
1 parent 113b847 commit fb2f7fd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions doc/components/config/center.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,18 @@

## 使用

**配置中心必须安装:**`composer require imiphp/imi-config-center:2.1.x-dev`

### Nacos

**安装:**`composer require imiphp/imi-nacos:~2.1.0`
**安装:**`composer require imiphp/imi-nacos:2.1.x-dev`

**配置:**

`@app.beans`

```php
use Imi\Util\Imi;
[
'ConfigCenter' => [
// 'mode' => \Imi\ConfigCenter\Enum\Mode::WORKER, // 工作进程模式
Expand Down Expand Up @@ -130,7 +133,7 @@ $configCenter->getDriver('nacos')->push($name, $value, [

### Etcd

**安装:**`composer require imiphp/imi-etcd:~2.1.0`
**安装:**`composer require imiphp/imi-etcd:2.1.x-dev`

**配置:**

Expand Down Expand Up @@ -211,7 +214,7 @@ $configCenter->getDriver('etcd')->push($name, $value, $options);

* 非 Swoole 用户请安装 [php-zookeeper](<https://github.com/php-zookeeper/php-zookeeper>) 扩展。

**安装:**`composer require imiphp/imi-zookeeper:~2.1.0`
**安装:**`composer require imiphp/imi-zookeeper:2.1.x-dev`

**配置:**

Expand Down

0 comments on commit fb2f7fd

Please sign in to comment.