Skip to content

Commit 52ea7a3

Browse files
committed
namespace
1 parent 218d7a9 commit 52ea7a3

13 files changed

+25
-25
lines changed

Module.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace filsh\yii2\oauth2server;
3+
namespace windhoney\yii2\oauth2server;
44

55
use \Yii;
66
use yii\i18n\PhpMessageSource;
@@ -12,7 +12,7 @@
1212
*
1313
* ```php
1414
* 'oauth2' => [
15-
* 'class' => 'filsh\yii2\oauth2server\Module',
15+
* 'class' => 'windhoney\yii2\oauth2server\Module',
1616
* 'tokenParamName' => 'accessToken',
1717
* 'tokenAccessLifetime' => 3600 * 24,
1818
* 'storageMap' => [
@@ -75,7 +75,7 @@ public function init()
7575
/**
7676
* Gets Oauth2 Server
7777
*
78-
* @return \filsh\yii2\oauth2server\Server
78+
* @return \windhoney\yii2\oauth2server\Server
7979
* @throws \yii\base\InvalidConfigException
8080
*/
8181
public function getServer()

README.md

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

1313
```
14-
php composer.phar require --prefer-dist filsh/yii2-oauth2-server "*"
14+
php composer.phar require --prefer-dist windhoney/yii2-oauth2-server "*"
1515
```
1616

1717
or add
1818

1919
```json
20-
"filsh/yii2-oauth2-server": "~2.0"
20+
"windhoney/yii2-oauth2-server": "~2.0"
2121
```
2222

2323
to the require section of your composer.json.
@@ -28,7 +28,7 @@ To use this extension, simply add the following code in your application config
2828
'modules'=>[
2929
//other modules .....
3030
'oauth2' => [
31-
'class' => 'filsh\yii2\oauth2server\Module',
31+
'class' => 'windhoney\yii2\oauth2server\Module',
3232
'tokenParamName' => 'accessToken',
3333
'tokenAccessLifetime' => 3600 * 24,
3434
'storageMap' => [
@@ -139,7 +139,7 @@ class User extends common\models\User implements \OAuth2\Storage\UserCredentials
139139
*/
140140
public static function findIdentityByAccessToken($token, $type = null)
141141
{
142-
/** @var \filsh\yii2\oauth2server\Module $module */
142+
/** @var \windhoney\yii2\oauth2server\Module $module */
143143
$module = Yii::$app->getModule('oauth2');
144144
$token = $module->getServer()->getResourceController()->getToken();
145145
return !empty($token['user_id'])
@@ -173,7 +173,7 @@ class User extends common\models\User implements \OAuth2\Storage\UserCredentials
173173
The next step your shold run migration
174174

175175
```php
176-
yii migrate --migrationPath=@vendor/filsh/yii2-oauth2-server/migrations
176+
yii migrate --migrationPath=@vendor/windhoney/yii2-oauth2-server/migrations
177177
```
178178

179179
this migration create the oauth2 database scheme and insert test user credentials ```testclient:testpass``` for ```http://fake/```
@@ -199,8 +199,8 @@ To use this extension, simply add the behaviors for your base controller:
199199
use yii\helpers\ArrayHelper;
200200
use yii\filters\auth\HttpBearerAuth;
201201
use yii\filters\auth\QueryParamAuth;
202-
use filsh\yii2\oauth2server\filters\ErrorToExceptionFilter;
203-
use filsh\yii2\oauth2server\filters\auth\CompositeAuth;
202+
use windhoney\yii2\oauth2server\filters\ErrorToExceptionFilter;
203+
use windhoney\yii2\oauth2server\filters\auth\CompositeAuth;
204204

205205
class Controller extends \yii\rest\Controller
206206
{

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
"type": "yii2-extension",
77
"license": "MIT",
88
"support": {
9-
"email": "imaliy.filsh@gmail.com",
10-
"source": "https://github.com/filsh/yii2-oauth2-server"
9+
"email": "imaliy.windhoney@gmail.com",
10+
"source": "https://github.com/windhoney/yii2-oauth2-server"
1111
},
1212
"authors": [
1313
{
1414
"name": "Igor Maliy",
15-
"email": "imaliy.filsh@gmail.com"
15+
"email": "imaliy.windhoney@gmail.com"
1616
}
1717
],
1818
"require": {
@@ -21,7 +21,7 @@
2121
},
2222
"autoload": {
2323
"psr-4": {
24-
"filsh\\yii2\\oauth2server\\": ""
24+
"windhoney\\yii2\\oauth2server\\": ""
2525
}
2626
},
2727
"extra": {

controllers/DefaultController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

3-
namespace filsh\yii2\oauth2server\controllers;
3+
namespace windhoney\yii2\oauth2server\controllers;
44

55
use Yii;
66
use yii\helpers\ArrayHelper;
7-
use filsh\yii2\oauth2server\filters\ErrorToExceptionFilter;
7+
use windhoney\yii2\oauth2server\filters\ErrorToExceptionFilter;
88

99
class DefaultController extends \yii\rest\Controller
1010
{

filters/ErrorToExceptionFilter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace filsh\yii2\oauth2server\filters;
3+
namespace windhoney\yii2\oauth2server\filters;
44

55
use Yii;
66
use yii\base\Controller;

filters/auth/CompositeAuth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace filsh\yii2\oauth2server\filters\auth;
3+
namespace windhoney\yii2\oauth2server\filters\auth;
44

55
use \Yii;
66

grants/UserAuthCredentials.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace filsh\yii2\oauth2server\grants;
3+
namespace windhoney\yii2\oauth2server\grants;
44

55
use \OAuth2\Storage\ClientCredentialsInterface;
66
use \OAuth2\Storage\UserCredentialsInterface;

models/OauthAccessTokens.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace filsh\yii2\oauth2server\models;
3+
namespace windhoney\yii2\oauth2server\models;
44

55
use Yii;
66

models/OauthAuthorizationCodes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace filsh\yii2\oauth2server\models;
3+
namespace windhoney\yii2\oauth2server\models;
44

55
use Yii;
66

models/OauthClients.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace filsh\yii2\oauth2server\models;
3+
namespace windhoney\yii2\oauth2server\models;
44

55
use Yii;
66

models/OauthRefreshTokens.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace filsh\yii2\oauth2server\models;
3+
namespace windhoney\yii2\oauth2server\models;
44

55
use Yii;
66

models/OauthScopes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace filsh\yii2\oauth2server\models;
3+
namespace windhoney\yii2\oauth2server\models;
44

55
use Yii;
66

storage/Pdo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace filsh\yii2\oauth2server\storage;
3+
namespace windhoney\yii2\oauth2server\storage;
44

55
class Pdo extends \OAuth2\Storage\Pdo
66
{

0 commit comments

Comments
 (0)