Skip to content

Commit b509bcc

Browse files
committed
Update installation and import optioncors
1 parent 4cd9915 commit b509bcc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ The preferred way to install this extension is through [composer](http://getcomp
1010
Either run
1111

1212
```
13-
php composer.phar require --prefer-dist taguz91/yii2-common-rest "*"
13+
composer require --prefer-dist taguz91/yii2-common-rest
1414
```
1515

1616
or add
1717

1818
```
19-
"taguz91/yii2-common-rest": "*"
19+
"taguz91/yii2-common-rest": "^1.0.0"
2020
```
2121

2222
to the require section of your `composer.json` file.

src/traits/ControllerBehavior.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace taguz91\CommonRest\traits;
44

5+
use taguz91\CommonRest\OptionsCors;
56
use yii\filters\AccessControl;
67
use yii\filters\auth\CompositeAuth;
78
use yii\filters\RateLimiter;

0 commit comments

Comments
 (0)