diff --git a/.github/workflows/docs-translate.yaml b/.github/workflows/docs-translate.yaml index 411f93ed1..6dff953c7 100644 --- a/.github/workflows/docs-translate.yaml +++ b/.github/workflows/docs-translate.yaml @@ -4,8 +4,8 @@ on: push: paths: - 'docs/**' - branches: - - "!main" + branches-ignore: + - "main" jobs: translate: @@ -68,6 +68,6 @@ jobs: pnpm run docs:translate - name: Commit Updated - uses: stefanzweifel/git-auto-commit-action@v4 + uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: Update docs and translate diff --git a/bin/doc-translate.js b/bin/doc-translate.js index 39aa7a723..055d04af3 100644 --- a/bin/doc-translate.js +++ b/bin/doc-translate.js @@ -4,7 +4,7 @@ import path from 'path'; const endpoint = "https://api.deepseek.com"; const token = process.env["DEEPSEEK_API_KEY"]; -const MAX_CONCURRENT = 5; // 最大并发数 +const MAX_CONCURRENT = 10; // 最大并发数 const MAX_RETRIES = 3; // 最大重试次数 const openai = new OpenAI({ diff --git a/docs/en/components/amqp-job.md b/docs/en/components/amqp-job.md index 611ce9853..9ed9632ce 100644 --- a/docs/en/components/amqp-job.md +++ b/docs/en/components/amqp-job.md @@ -2,7 +2,7 @@ ## Introduction -`friendsofhyperf/amqp-job` is an asynchronous task component based on the `hyperf/amqp` component, which supports dispatching tasks to the AMQP service and then consuming them via consumers. It encapsulates the `hyperf/amqp` component, providing a more convenient way to dispatch and consume tasks. +`friendsofhyperf/amqp-job` is an asynchronous task component based on the `hyperf/amqp` component, which supports distributing tasks to AMQP services and then consuming them via consumers. It encapsulates the `hyperf/amqp` component, providing a more convenient way to dispatch and consume tasks. ## Installation @@ -59,5 +59,4 @@ class MyConsumer extends JobConsumer { // } - ``` \ No newline at end of file diff --git a/docs/en/components/command-signals.md b/docs/en/components/command-signals.md index 462e80759..a8dc460b1 100644 --- a/docs/en/components/command-signals.md +++ b/docs/en/components/command-signals.md @@ -49,14 +49,14 @@ class FooCommand extends HyperfCommand ## Execution -- `Ctrl + C` +- Manually exit by pressing `Ctrl + C` ```shell $ hyperf foo ^CReceived signal 2, exiting... ``` -- `killall php` +- Kill the process using `killall php` ```shell $ hyperf foo diff --git a/docs/en/components/compoships.md b/docs/en/components/compoships.md index 3353461b2..d8fcb7b97 100644 --- a/docs/en/components/compoships.md +++ b/docs/en/components/compoships.md @@ -1,6 +1,6 @@ # Compoships -**Compoships** provides the ability to specify relationships based on two (or more) columns in Hyperf's Model ORM. This is particularly useful when dealing with third-party or pre-existing schemas/databases where you need to match multiple columns in the definition of Eloquent relationships. +**Compoships** provides the ability to specify relationships based on two (or more) columns in the Model ORM of Hyperf. When dealing with third-party or pre-existing schemas/databases, it is common to encounter situations where you need to match multiple columns in the definition of Eloquent relationships. ## The Problem @@ -23,7 +23,7 @@ class User extends Model ## Installation -It is recommended to install **Compoships** via [Composer](http://getcomposer.org/). +It is recommended to install the **Compoships** component via [Composer](http://getcomposer.org/). ```shell composer require friendsofhyperf/compoships @@ -107,7 +107,7 @@ class User extends Model } ``` -The same syntax can be used to define the inverse of the relationship: +The same syntax can define the inverse of the relationship: ```php namespace App; diff --git a/docs/en/components/confd.md b/docs/en/components/confd.md index e9bc05539..81cff9f40 100644 --- a/docs/en/components/confd.md +++ b/docs/en/components/confd.md @@ -53,7 +53,7 @@ class ConfigChangedListener implements ListenerInterface } ``` -## Supported +## Supported Drivers - [x] Etcd - [x] Nacos diff --git a/docs/en/components/config-consul.md b/docs/en/components/config-consul.md index 589fd2a96..5030ecf1a 100644 --- a/docs/en/components/config-consul.md +++ b/docs/en/components/config-consul.md @@ -1,6 +1,6 @@ # Config Consul -A Consul configuration component for Hyperf. +A Consul configuration center engine for Hyperf. ## Installation diff --git a/docs/en/components/console-spinner.md b/docs/en/components/console-spinner.md index 0f4b35e0c..13082b395 100644 --- a/docs/en/components/console-spinner.md +++ b/docs/en/components/console-spinner.md @@ -37,7 +37,7 @@ class FooCommand extends Command } ``` -The `$spinner` is compatible with Symfony ProgressBar, so you can run any method of this class. Alternatively, you can also use the `withSpinner` method by providing an iterable object. +The `$spinner` is compatible with Symfony's ProgressBar, so you can run any method of this class. Alternatively, you can also use the `withSpinner` method by providing an iterable object. ```php $this->withSpinner(User::all(), function($user) { diff --git a/docs/en/components/fast-paginate.md b/docs/en/components/fast-paginate.md index aafdf9c76..6a80dcf50 100644 --- a/docs/en/components/fast-paginate.md +++ b/docs/en/components/fast-paginate.md @@ -8,7 +8,7 @@ This is a fast `limit`/`offset` pagination macro for Hyperf. It can replace the This package uses an SQL approach similar to "deferred joins" to achieve this speedup. Deferred joins are a technique where the requested columns are accessed only after applying the `offset` and `limit`. -In our case, we don't actually perform a join but use a `where in` with a subquery. Using this technique, we create a subquery that can be optimized with a specific index for maximum speed, and then use these results to fetch the full rows. +In our case, we don't actually perform a join but use a `where in` with a subquery. Using this technique, we create a subquery that can be optimized with specific indexes for maximum speed, and then use these results to fetch the full rows. The SQL statement looks like this: @@ -25,7 +25,7 @@ select * from contacts -- The full data that you want to show your Depending on your dataset, the performance improvement may vary, but this approach allows the database to examine as little data as possible to meet the user's needs. -While this method is unlikely to perform worse than the traditional `offset` / `limit`, it is possible, so be sure to test it on your data! +While this method is unlikely to perform worse than traditional `offset` / `limit`, it is possible, so be sure to test it on your data! > If you want to read a 3,000-word article on the theory behind this package, visit [aaronfrancis.com/2022/efficient-pagination-using-deferred-joins](https://aaronfrancis.com/2022/efficient-pagination-using-deferred-joins). @@ -41,7 +41,7 @@ No additional steps are required; the service provider will be automatically loa Anywhere you would use `Model::query()->paginate()`, you can use `Model::query()->fastPaginate()`! It's that simple! The method signature is the same. -Relations are also supported: +Relationships are also supported: ```php User::first()->posts()->fastPaginate(); diff --git a/docs/en/components/http-client.md b/docs/en/components/http-client.md index 4baa6d37b..5687059d7 100644 --- a/docs/en/components/http-client.md +++ b/docs/en/components/http-client.md @@ -1,6 +1,6 @@ # HTTP Client -An HTTP client component for Hyperf, ported from Laravel. +A HTTP client component for Hyperf, ported from Laravel. ## Installation diff --git a/docs/en/components/ide-helper.md b/docs/en/components/ide-helper.md index 0fdd128de..9ba2bb9c1 100644 --- a/docs/en/components/ide-helper.md +++ b/docs/en/components/ide-helper.md @@ -1,6 +1,6 @@ # IDE Helper -The IDE Helper component for Hyperf +The IDE Helper component for Hyperf. ## Installation diff --git a/docs/en/components/ipc-broadcaster.md b/docs/en/components/ipc-broadcaster.md index e29100320..773fe3156 100644 --- a/docs/en/components/ipc-broadcaster.md +++ b/docs/en/components/ipc-broadcaster.md @@ -1,6 +1,6 @@ # Ipc Broadcaster -Hyperf Inter-Process Communication Broadcast Component. +Hyperf Inter-Process Communication Broadcasting Component. ## Installation diff --git a/docs/en/components/lock.md b/docs/en/components/lock.md index 41c048037..d2bf3cc0d 100644 --- a/docs/en/components/lock.md +++ b/docs/en/components/lock.md @@ -30,7 +30,7 @@ if ($lock->get()) { } ``` -The `get` method can also accept a closure. The lock will be automatically released after the closure is executed: +The `get` method can also accept a closure. After the closure is executed, the lock will be automatically released: ```php lock('foo')->get(function () { @@ -38,7 +38,7 @@ lock('foo')->get(function () { }); ``` -If the lock is not available when requested, you can control the number of seconds to wait. If the lock cannot be acquired within the specified time limit, a `FriendsOfHyperf\Lock\Exception\LockTimeoutException` will be thrown: +If the lock is unavailable when requested, you can control the wait time in seconds. If the lock cannot be acquired within the specified time limit, a `FriendsOfHyperf\Lock\Exception\LockTimeoutException` will be thrown. ```php use FriendsOfHyperf\Lock\Exception\LockTimeoutException; diff --git a/docs/en/components/model-hashids.md b/docs/en/components/model-hashids.md index fb149bcc5..7d1c259fd 100644 --- a/docs/en/components/model-hashids.md +++ b/docs/en/components/model-hashids.md @@ -2,7 +2,7 @@ Using hashids instead of integer IDs in URLs and list items can be more attractive and clever. For more information, visit [hashids.org](https://hashids.org/). -This package adds hashids to Hyperf models by dynamically encoding/decoding them, rather than persisting them to the database. This eliminates the need for additional database columns and allows for higher performance by using primary keys in queries. +This package adds hashids to Hyperf models by dynamically encoding/decoding them, rather than persisting them in the database. This eliminates the need for additional database columns and allows for higher performance by using primary keys in queries. Features include: @@ -42,7 +42,7 @@ Class Item extends Model ### Customizing Hashid Settings -You can customize hashid settings for each model by overriding `getHashidsConnection()`. It must return the name of the connection in `config/autoload/hashids.php`. +Hashid settings can be customized per model by overriding `getHashidsConnection()`. It must return the name of the connection in `config/autoload/hashids.php`. ## Usage @@ -77,7 +77,7 @@ $item->getHashidsConnection(); ### Adding Hashid to Serialized Models -Set it as the default: +Setting it as default: ```php @@ -98,7 +98,7 @@ class Item extends Model ``` -Set it for a specific route: +Setting it for a specific route: `return $item->append('hashid')->toJson();` @@ -133,7 +133,7 @@ Route::get('/items/{item:slug}', function (Item $item) { #### Customizing the Default Route Key Name -If you want to resolve implicit route bindings using another field by default, you can override `getRouteKeyName()` to return the field name used in the resolution process and `getRouteKey()` to return its value in links. +If you want to resolve implicit route bindings using another field by default, you can override `getRouteKeyName()` to return the field name during resolution and `getRouteKey()` to return its value in links. ```php @@ -158,7 +158,7 @@ class Item extends Model ``` -You can still specify the hashid for specific routes. +You can still specify hashid for specific routes. ```php @@ -170,7 +170,7 @@ Route::get('/items/{item:hashid}', function (Item $item) { #### Supporting Other Laravel Implicit Route Binding Features -When using `HashidRouting`, you can still use soft-deletes and child route bindings. +When using `HashidRouting`, you can still use soft deletion and child route bindings. ```php diff --git a/docs/en/components/model-morph-addon.md b/docs/en/components/model-morph-addon.md index 388a4ecc2..7d207eb49 100644 --- a/docs/en/components/model-morph-addon.md +++ b/docs/en/components/model-morph-addon.md @@ -1,6 +1,6 @@ # Model Morph Addon -The Model Morph Addon supports polymorphic relationships in Hyperf models. +The Model Morph Addon supports polymorphic associations in Hyperf models. ## Installation diff --git a/docs/en/components/mysql-grammar-addon.md b/docs/en/components/mysql-grammar-addon.md index f8cfa32e1..df0b20b46 100644 --- a/docs/en/components/mysql-grammar-addon.md +++ b/docs/en/components/mysql-grammar-addon.md @@ -34,8 +34,8 @@ class Event extends Model * @property int $user_id User ID * @property string $group_name Event Group * @property string $event_name Event Name - * @property string $page_name Page Name - * @property string $extra Extra Information + * @property string $page_name Page + * @property string $extra Additional Information * @property string $device pc,android,ios,touch * @property string $device_id Device ID * @property \Carbon\Carbon $created_at Creation Time diff --git a/docs/en/components/notification-easysms.md b/docs/en/components/notification-easysms.md index e56aa572d..dcf8372dd 100644 --- a/docs/en/components/notification-easysms.md +++ b/docs/en/components/notification-easysms.md @@ -88,7 +88,7 @@ class TestNotification extends Notification implements Smsable ]; } - // or return custom Message + // or return customer Message // public function toSms(mixed $notifiable): array|Message // { // return new Message(); diff --git a/docs/en/components/notification.md b/docs/en/components/notification.md index 9ef4d7181..9696b6eba 100644 --- a/docs/en/components/notification.md +++ b/docs/en/components/notification.md @@ -8,7 +8,7 @@ composer require friendsofhyperf/notification:~3.1.0 ## Usage -### Using the `Notifiable` Trait in a Model +### Using `Notifiable` Trait in Model ```php make(); ``` -To use Azure, you must deploy a model, which is identified by {deployment-id}, integrated into the API call. Therefore, you do not need to provide the model during the call, as it is already included in the BaseUri. +To use Azure, you must deploy a model identified by {deployment-id}, which is integrated into the API call. Therefore, you do not need to provide the model during the call, as it is already included in the BaseUri. Thus, a basic example completion call would be: diff --git a/docs/en/components/purifier.md b/docs/en/components/purifier.md index 4e7e33ec8..d02e898cb 100644 --- a/docs/en/components/purifier.md +++ b/docs/en/components/purifier.md @@ -79,7 +79,7 @@ To use your own settings, publish the configuration. php bin/hyperf.php vendor:publish friendsofhyperf/purifier ``` -The configuration file `config/autoload/purifier.php` is as follows: +The configuration file `config/autoload/purifier.php` will look like this: ```php diff --git a/docs/en/components/redis-subscriber.md b/docs/en/components/redis-subscriber.md index 7a881ec40..b75909028 100644 --- a/docs/en/components/redis-subscriber.md +++ b/docs/en/components/redis-subscriber.md @@ -2,11 +2,11 @@ A Redis native protocol subscriber based on Swoole coroutines, forked from [mix-php/redis-subscriber](https://github.com/mix-php/redis-subscriber). -This Redis subscription library, based on Swoole coroutines, connects directly to the Redis server using sockets, without relying on the phpredis extension. The subscriber offers the following advantages: +This Redis subscription library, built on Swoole coroutines, connects directly to the Redis server using sockets without relying on the phpredis extension. The subscriber offers the following advantages: -- Smooth Modifications: You can add or cancel subscription channels at any time, enabling seamless channel switching. -- Cross-Coroutine Safe Closure: The subscription can be closed at any moment. -- Channel Message Retrieval: The library's encapsulation style is inspired by the [go-redis](https://github.com/go-redis/redis) library in Golang, retrieving subscription messages through channels. +- **Smooth Modifications**: You can add or cancel subscription channels at any time, enabling seamless channel switching. +- **Cross-Coroutine Safe Shutdown**: The subscription can be closed at any moment safely. +- **Channel Message Retrieval**: The library's encapsulation style is inspired by the [go-redis](https://github.com/go-redis/redis) library in Golang, allowing you to retrieve subscribed messages through channels. ## Installation @@ -55,5 +55,5 @@ object(FriendsOfHyperf\Redis\Subscriber\Message)#8 (2) { | unsubscribe(string ...$channels) : void | Cancel subscriptions | | psubscribe(string ...$channels) : void | Add pattern subscriptions | | punsubscribe(string ...$channels) : void | Cancel pattern subscriptions | -| channel() : Hyperf\Engine\Channel | Get message channel | -| close() : void | Close subscription | \ No newline at end of file +| channel() : Hyperf\Engine\Channel | Get the message channel | +| close() : void | Close the subscription | \ No newline at end of file diff --git a/docs/en/components/sentry.md b/docs/en/components/sentry.md index 5551b8198..2b0748117 100644 --- a/docs/en/components/sentry.md +++ b/docs/en/components/sentry.md @@ -1,6 +1,6 @@ # Sentry -Sentry component for Hyperf. +Sentry Component for Hyperf. ## Installation @@ -19,7 +19,7 @@ php bin/hyperf.php vendor:publish friendsofhyperf/sentry ```php warning('this is a test warning issue!'); return [ @@ -76,7 +76,7 @@ class Foo } ``` -## Tracing +## Distributed Tracing ```env SENTRY_TRACING_ENABLE_AMQP=true diff --git a/docs/en/components/tcp-sender.md b/docs/en/components/tcp-sender.md index 564e00f24..ea961806c 100644 --- a/docs/en/components/tcp-sender.md +++ b/docs/en/components/tcp-sender.md @@ -2,8 +2,7 @@ ## Introduction -`friendsofhyperf/tcp-sender` is a TCP service component similar to `hyperf/websocket-server`, which can be used to send messages to a specified fd. -There's no need to worry about the underlying implementation; just focus on the business logic. +`friendsofhyperf/tcp-sender` is a TCP service component similar to `hyperf/websocket-server`, designed to send messages to specified file descriptors (fd). It allows developers to focus on business logic without worrying about the underlying implementation details. ## Installation diff --git a/docs/en/components/telescope.md b/docs/en/components/telescope.md index 69d51f802..5915fb852 100644 --- a/docs/en/components/telescope.md +++ b/docs/en/components/telescope.md @@ -34,7 +34,7 @@ php bin/hyperf.php migrate ## Usage -> Listeners and middleware, choose one +> Choose either the listener or middleware ### Request Listener @@ -84,7 +84,7 @@ return [ ## Database Configuration -Manage database connection configuration in `config/autoload/telescope.php`, default uses `default` connection +Manage the database connection configuration in `config/autoload/telescope.php`, defaulting to the `default` connection ```php 'connection' => env('TELESCOPE_DB_CONNECTION', 'default'), @@ -92,11 +92,11 @@ Manage database connection configuration in `config/autoload/telescope.php`, def ## Tags -You may wish to attach your own custom tags to entries. To do this, you may use the **`Telescope::tag`** method. +You may wish to attach your own custom tags to entries. To do this, you can use the **`Telescope::tag`** method. ## Batch Filtering -You may want to record entries only under certain special conditions. To do this, you may use the **`Telescope::filter`** method. +You may want to record entries only under certain special conditions. To do this, you can use the **`Telescope::filter`** method. Example diff --git a/docs/en/components/tinker.md b/docs/en/components/tinker.md index 22fe5e410..dbb2dc21f 100644 --- a/docs/en/components/tinker.md +++ b/docs/en/components/tinker.md @@ -1,6 +1,6 @@ # Tinker -A powerful REPL tool for Hyperf. +Hyperf's powerful REPL tool. ## Installation diff --git a/docs/en/components/validated-dto.md b/docs/en/components/validated-dto.md index cb32d2ec2..c6fdd0ddf 100644 --- a/docs/en/components/validated-dto.md +++ b/docs/en/components/validated-dto.md @@ -176,7 +176,7 @@ class CreateUserCommand extends Command ## Accessing DTO Data -Once you have created a `DTO` instance, you can access any property as you would with an `object`: +After creating a `DTO` instance, you can access any property as you would with an `object`: ```php $dto = UserDTO::fromArray([ @@ -205,7 +205,7 @@ $dto->username; // This property is not available in the DTO ## Defining Default Values -Sometimes we might have some optional properties and can have default values. You can define default values for `DTO` properties in the `defaults` method: +Sometimes we may have optional properties that can have default values. You can define default values for `DTO` properties in the `defaults` method: ```php username; // 'deeka_wong' ``` -## Transforming DTO Data +## Converting DTO Data -You can transform your DTO into some formats: +You can convert your DTO to some formats: ### To Array @@ -332,7 +332,7 @@ You can easily cast your DTO properties by defining the `casts` method in your D ```php /** - * Define the type casting for the DTO properties. + * Define the type casting for DTO properties. * * @return array */ @@ -446,7 +446,7 @@ protected function casts(): array ### Collection -For JSON strings, it will first be converted to an array and then wrapped into a `Collection` object. +For JSON strings, it will first be converted to an array and then wrapped in a `Collection` object. ```php protected function casts(): array @@ -478,7 +478,7 @@ If the data is invalid for the DTO, this will throw a `Hyperf\Validation\Validat If the property is not a valid array or a valid JSON string, this will throw a `FriendsOfHyperf\ValidatedDTO\Exception\CastException`. -If the class passed to the `DTOCast` constructor is not a `ValidatedDTO` instance, this will throw a `FriendsOfHyperf\ValidatedDTO\Exception\CastTargetException`. +If the class passed to the `DTOCast` constructor is not an instance of `ValidatedDTO`, this will throw a `FriendsOfHyperf\ValidatedDTO\Exception\CastTargetException`. ```php protected function casts(): array @@ -521,7 +521,7 @@ This works for arrays and JSON strings. If the property is not a valid array or a valid JSON string, this will throw a `FriendsOfHyperf\ValidatedDTO\Exception\CastException`. -If the class passed to the `ModelCast` constructor is not a `Model` instance, this will throw a `FriendsOfHyperf\ValidatedDTO\Exception\CastTargetException`. +If the class passed to the `ModelCast` constructor is not an instance of `Model`, this will throw a `FriendsOfHyperf\ValidatedDTO\Exception\CastTargetException`. ```php protected function casts(): array diff --git a/docs/en/components/web-tinker.md b/docs/en/components/web-tinker.md index bb3b6c5aa..cc2bcae31 100644 --- a/docs/en/components/web-tinker.md +++ b/docs/en/components/web-tinker.md @@ -26,4 +26,4 @@ php bin/hyperf.php start ## Access -Visit `http://127.0.0.1:9501/tinker` to enter the Web Tinker page. \ No newline at end of file +Visit `http://127.0.0.1:9501/tinker` to access the Web Tinker page. \ No newline at end of file diff --git a/docs/en/guide/introduce/about.md b/docs/en/guide/introduce/about.md index 3b4d30f2f..148e83096 100644 --- a/docs/en/guide/introduce/about.md +++ b/docs/en/guide/introduce/about.md @@ -1 +1,3 @@ -# About FriendsOfHyperf \ No newline at end of file +# About Hyperf Fans + +Welcome to Hyperf Fans, the official documentation site for Hyperf Fans. \ No newline at end of file diff --git a/docs/en/index.md b/docs/en/index.md index a6a3d5485..f14e412d3 100644 --- a/docs/en/index.md +++ b/docs/en/index.md @@ -1,4 +1,3 @@ -```markdown --- # https://vitepress.dev/reference/default-theme-home-page layout: home @@ -20,7 +19,7 @@ features: details: This is the Hyperf SDK for Sentry. link: /en/components/sentry/ - title: Telescope - details: Telescope is an elegant debugging assistant for the Hyperf framework. + details: Telescope is an elegant debug assistant for the Hyperf framework. link: /en/components/telescope/ - title: Tinker details: Tinker is a powerful REPL for the Hyperf framework. @@ -41,10 +40,9 @@ features: details: Validated DTO provides a simple and convenient way to validate data. link: /en/components/validated-dto/ - title: Lock - details: Lock provides a simple and convenient distributed locking mechanism. + details: Lock provides a simple and convenient distributed lock functionality. link: /en/components/lock/ - title: More details: More components… link: /en/components/ ---- -``` \ No newline at end of file +--- \ No newline at end of file diff --git a/docs/zh-cn/components/amqp-job.md b/docs/zh-cn/components/amqp-job.md index a7d7b8a94..a1a48a343 100644 --- a/docs/zh-cn/components/amqp-job.md +++ b/docs/zh-cn/components/amqp-job.md @@ -59,5 +59,4 @@ class MyConsumer extends JobConsumer { // } - ``` diff --git a/docs/zh-cn/components/command-signals.md b/docs/zh-cn/components/command-signals.md index d8c5ab312..6b9aeb2a7 100644 --- a/docs/zh-cn/components/command-signals.md +++ b/docs/zh-cn/components/command-signals.md @@ -49,14 +49,14 @@ class FooCommand extends HyperfCommand ## 运行 -- `Ctrl + C` +- 执行 `Ctrl + C` 手动退出 ```shell $ hyperf foo ^CReceived signal 2, exiting... ``` -- `killall php` +- `killall php` 杀死进程 ```shell $ hyperf foo diff --git a/docs/zh-cn/components/confd.md b/docs/zh-cn/components/confd.md index 4cde3ed1b..855964c46 100644 --- a/docs/zh-cn/components/confd.md +++ b/docs/zh-cn/components/confd.md @@ -53,7 +53,7 @@ class ConfigChangedListener implements ListenerInterface } ``` -## 支持 +## 支持驱动 - [x] Etcd - [x] Nacos diff --git a/docs/zh-cn/components/config-consul.md b/docs/zh-cn/components/config-consul.md index 0792bdb26..cabfdc6ec 100644 --- a/docs/zh-cn/components/config-consul.md +++ b/docs/zh-cn/components/config-consul.md @@ -1,6 +1,6 @@ # Config Consul -适用于 Hyperf 的 Consul 配置组件。 +适用于 Hyperf 的 Consul 配置中心引擎。 ## 安装 diff --git a/docs/zh-cn/faq/index.md b/docs/zh-cn/faq/index.md index 307d253c7..b43101d19 100644 --- a/docs/zh-cn/faq/index.md +++ b/docs/zh-cn/faq/index.md @@ -1 +1 @@ -# 常见问题 \ No newline at end of file +# 常见问题 diff --git a/docs/zh-cn/guide/introduce/about.md b/docs/zh-cn/guide/introduce/about.md index 02f22fae6..efcff23dd 100644 --- a/docs/zh-cn/guide/introduce/about.md +++ b/docs/zh-cn/guide/introduce/about.md @@ -1 +1,3 @@ -# 关于 FriendsOfHyperf +# 关于 Hyperf Fans + +欢迎来到 Hyperf Fans,这里是 Hyperf Fans 的官方文档站点。 diff --git a/docs/zh-hk/components/amqp-job.md b/docs/zh-hk/components/amqp-job.md index edbb54e04..d09eb0d7d 100644 --- a/docs/zh-hk/components/amqp-job.md +++ b/docs/zh-hk/components/amqp-job.md @@ -59,5 +59,4 @@ class MyConsumer extends JobConsumer { // } - ``` diff --git a/docs/zh-hk/components/command-signals.md b/docs/zh-hk/components/command-signals.md index 6fa637f10..72d954f0b 100644 --- a/docs/zh-hk/components/command-signals.md +++ b/docs/zh-hk/components/command-signals.md @@ -49,14 +49,14 @@ class FooCommand extends HyperfCommand ## 運行 -- `Ctrl + C` +- 執行 `Ctrl + C` 手動退出 ```shell $ hyperf foo ^CReceived signal 2, exiting... ``` -- `killall php` +- `killall php` 殺死進程 ```shell $ hyperf foo diff --git a/docs/zh-hk/components/confd.md b/docs/zh-hk/components/confd.md index 460a28235..5f4793c6c 100644 --- a/docs/zh-hk/components/confd.md +++ b/docs/zh-hk/components/confd.md @@ -53,7 +53,7 @@ class ConfigChangedListener implements ListenerInterface } ``` -## 支持 +## 支持驅動 - [x] Etcd - [x] Nacos diff --git a/docs/zh-hk/components/config-consul.md b/docs/zh-hk/components/config-consul.md index d230dd080..d9ff72da6 100644 --- a/docs/zh-hk/components/config-consul.md +++ b/docs/zh-hk/components/config-consul.md @@ -1,6 +1,6 @@ # Config Consul -適用於 Hyperf 的 Consul 配置組件。 +適用於 Hyperf 的 Consul 配置中心引擎。 ## 安裝 diff --git a/docs/zh-hk/faq/index.md b/docs/zh-hk/faq/index.md index eba1c20b4..95ef2409b 100644 --- a/docs/zh-hk/faq/index.md +++ b/docs/zh-hk/faq/index.md @@ -1 +1 @@ -# 常見問題 \ No newline at end of file +# 常見問題 diff --git a/docs/zh-hk/guide/introduce/about.md b/docs/zh-hk/guide/introduce/about.md index d8790091f..d50e6e71d 100644 --- a/docs/zh-hk/guide/introduce/about.md +++ b/docs/zh-hk/guide/introduce/about.md @@ -1 +1,3 @@ -# 關於 FriendsOfHyperf +# 關於 Hyperf Fans + +歡迎來到 Hyperf Fans,這裏是 Hyperf Fans 的官方文檔站點。 diff --git a/docs/zh-tw/components/amqp-job.md b/docs/zh-tw/components/amqp-job.md index 70b45e896..ff5e1d37a 100644 --- a/docs/zh-tw/components/amqp-job.md +++ b/docs/zh-tw/components/amqp-job.md @@ -59,5 +59,4 @@ class MyConsumer extends JobConsumer { // } - ``` diff --git a/docs/zh-tw/components/command-signals.md b/docs/zh-tw/components/command-signals.md index 4682bfd97..a4a6b55b9 100644 --- a/docs/zh-tw/components/command-signals.md +++ b/docs/zh-tw/components/command-signals.md @@ -49,14 +49,14 @@ class FooCommand extends HyperfCommand ## 執行 -- `Ctrl + C` +- 執行 `Ctrl + C` 手動退出 ```shell $ hyperf foo ^CReceived signal 2, exiting... ``` -- `killall php` +- `killall php` 殺死程序 ```shell $ hyperf foo diff --git a/docs/zh-tw/components/confd.md b/docs/zh-tw/components/confd.md index 67d028abc..f2482fd60 100644 --- a/docs/zh-tw/components/confd.md +++ b/docs/zh-tw/components/confd.md @@ -53,7 +53,7 @@ class ConfigChangedListener implements ListenerInterface } ``` -## 支援 +## 支援驅動 - [x] Etcd - [x] Nacos diff --git a/docs/zh-tw/components/config-consul.md b/docs/zh-tw/components/config-consul.md index eae85a9af..d9ff72da6 100644 --- a/docs/zh-tw/components/config-consul.md +++ b/docs/zh-tw/components/config-consul.md @@ -1,6 +1,6 @@ # Config Consul -適用於 Hyperf 的 Consul 配置元件。 +適用於 Hyperf 的 Consul 配置中心引擎。 ## 安裝 diff --git a/docs/zh-tw/faq/index.md b/docs/zh-tw/faq/index.md index eba1c20b4..95ef2409b 100644 --- a/docs/zh-tw/faq/index.md +++ b/docs/zh-tw/faq/index.md @@ -1 +1 @@ -# 常見問題 \ No newline at end of file +# 常見問題 diff --git a/docs/zh-tw/guide/introduce/about.md b/docs/zh-tw/guide/introduce/about.md index d8790091f..bac5c741f 100644 --- a/docs/zh-tw/guide/introduce/about.md +++ b/docs/zh-tw/guide/introduce/about.md @@ -1 +1,3 @@ -# 關於 FriendsOfHyperf +# 關於 Hyperf Fans + +歡迎來到 Hyperf Fans,這裡是 Hyperf Fans 的官方文件站點。