Skip to content

Commit

Permalink
完善中英文 README
Browse files Browse the repository at this point in the history
  • Loading branch information
calchen committed Sep 22, 2019
1 parent dfa5658 commit 8ccd724
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
12 changes: 1 addition & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,7 @@ $ composer require calchen/laravel-queue-aliyun-mns:^2.0

### Laravel

如果您的 Laravel 版本为 5.5 及以上,您不需要手动的配置文件中添加 `AliyunMnsServiceProvider` Laravel 自带的扩展包发现机制会处理好一切。如是小于 5.5 版本那么需要您进行如下操作:

打开位于 `app/Providers``AppServiceProvider.php` 文件并在 `register` 函数中添加如下内容:
```php
$this->app->register(\Calchen\LaravelQueueAliyunMns\AliyunMnsServiceProvider::class);
```
您也可以在配置文件 `config/app.php` 中的 `providers` 中添加如下内容:
```php
Calchen\LaravelQueueAliyunMns\AliyunMnsServiceProvider::class,
```
只需选择以上操作中的一种,即可加载本扩招包。
Laravel 5.5+ 已经实现了扩展包发现机制,您不需要进行额外的加载操作

### Lumen

Expand Down
10 changes: 1 addition & 9 deletions README_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,8 @@ $ composer require calchen/laravel-queue-aliyun-mns:^2.0

### Laravel

For Laravel >=5.5, no need to manually add `AliyunMnsServiceProvider` into config. It uses package auto discovery feature. Skip this if you are on >=5.5, if not:
For Laravel 5.5+ package auto discovery feature will help you loading everything you need

Open your `AppServiceProvider` (located in `app/Providers`) and add this line in `register` function
```php
$this->app->register(\Calchen\LaravelQueueAliyunMns\AliyunMnsServiceProvider::class);
```
or open your `config/app.php` and add this line in `providers` section
```php
Calchen\LaravelQueueAliyunMns\AliyunMnsServiceProvider::class,
```
### Lumen

Open your `bootstrap/app.php` and add this line
Expand Down

0 comments on commit 8ccd724

Please sign in to comment.