Skip to content

Commit 876522e

Browse files
committed
参考使用
1 parent 389483d commit 876522e

26 files changed

+65
-65
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "96qbhy/hyperf-auth",
2+
"name": "irooit/hyperf-auth",
33
"description": "hyperf 的 auth 组件",
44
"type": "library",
55
"license": "MIT",
@@ -11,7 +11,7 @@
1111
],
1212
"autoload": {
1313
"psr-4": {
14-
"Qbhy\\HyperfAuth\\": "src/"
14+
"Irooit\\HyperfAuth\\": "src/"
1515
},
1616
"files": [
1717
"src/helper.php"

publish/auth.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
// 自定义 redis key,必须包含 {uid},{uid} 会被替换成用户ID
3131
'redis_key' => 'u:token:{uid}',
3232

33-
'driver' => Qbhy\HyperfAuth\Guard\SsoGuard::class,
33+
'driver' => Irooit\HyperfAuth\Guard\SsoGuard::class,
3434
'provider' => 'users',
3535

3636
/*
@@ -99,7 +99,7 @@
9999
'prefix' => env('SIMPLE_JWT_PREFIX', 'default'),
100100
],
101101
'jwt' => [
102-
'driver' => Qbhy\HyperfAuth\Guard\JwtGuard::class,
102+
'driver' => Irooit\HyperfAuth\Guard\JwtGuard::class,
103103
'provider' => 'users',
104104

105105
/*
@@ -168,7 +168,7 @@
168168
'prefix' => env('SIMPLE_JWT_PREFIX', 'default'),
169169
],
170170
'session' => [
171-
'driver' => Qbhy\HyperfAuth\Guard\SessionGuard::class,
171+
'driver' => Irooit\HyperfAuth\Guard\SessionGuard::class,
172172
'provider' => 'users',
173173
],
174174
],

src/Annotation/Auth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/qbhy/hyperf-auth/blob/master/LICENSE
1111
*/
12-
namespace Qbhy\HyperfAuth\Annotation;
12+
namespace Irooit\HyperfAuth\Annotation;
1313

1414
use Doctrine\Common\Annotations\Annotation\Target;
1515
use Hyperf\Di\Annotation\AbstractAnnotation;

src/AuthAbility.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/qbhy/hyperf-auth/blob/master/LICENSE
1111
*/
12-
namespace Qbhy\HyperfAuth;
12+
namespace Irooit\HyperfAuth;
1313

1414
use Hyperf\Database\Model\Model;
1515

src/AuthAspect.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
* @contact [email protected]
1010
* @license https://github.com/qbhy/hyperf-auth/blob/master/LICENSE
1111
*/
12-
namespace Qbhy\HyperfAuth;
12+
namespace Irooit\HyperfAuth;
1313

1414
use Hyperf\Di\Annotation\Aspect;
1515
use Hyperf\Di\Annotation\Inject;
1616
use Hyperf\Di\Aop\AbstractAspect;
1717
use Hyperf\Di\Aop\ProceedingJoinPoint;
18-
use Qbhy\HyperfAuth\Annotation\Auth;
19-
use Qbhy\HyperfAuth\Exception\UnauthorizedException;
18+
use Irooit\HyperfAuth\Annotation\Auth;
19+
use Irooit\HyperfAuth\Exception\UnauthorizedException;
2020

2121
/**
2222
* @Aspect

src/AuthCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/qbhy/hyperf-auth/blob/master/LICENSE
1111
*/
12-
namespace Qbhy\HyperfAuth;
12+
namespace Irooit\HyperfAuth;
1313

1414
use Hyperf\Command\Annotation\Command;
1515
use Hyperf\Command\Command as HyperfCommand;

src/AuthExceptionHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
* @contact [email protected]
1010
* @license https://github.com/qbhy/hyperf-auth/blob/master/LICENSE
1111
*/
12-
namespace Qbhy\HyperfAuth;
12+
namespace Irooit\HyperfAuth;
1313

1414
use Hyperf\ExceptionHandler\ExceptionHandler;
1515
use Hyperf\HttpMessage\Stream\SwooleStream;
1616
use Psr\Http\Message\ResponseInterface;
17-
use Qbhy\HyperfAuth\Exception\UnauthorizedException;
17+
use Irooit\HyperfAuth\Exception\UnauthorizedException;
1818
use Throwable;
1919

2020
class AuthExceptionHandler extends ExceptionHandler

src/AuthGuard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* @contact [email protected]
1010
* @license https://github.com/qbhy/hyperf-auth/blob/master/LICENSE
1111
*/
12-
namespace Qbhy\HyperfAuth;
12+
namespace Irooit\HyperfAuth;
1313

1414
interface AuthGuard
1515
{

src/AuthManager.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
* @contact [email protected]
1010
* @license https://github.com/qbhy/hyperf-auth/blob/master/LICENSE
1111
*/
12-
namespace Qbhy\HyperfAuth;
12+
namespace Irooit\HyperfAuth;
1313

1414
use Hyperf\Contract\ConfigInterface;
15-
use Qbhy\HyperfAuth\Exception\GuardException;
16-
use Qbhy\HyperfAuth\Exception\UserProviderException;
15+
use Irooit\HyperfAuth\Exception\GuardException;
16+
use Irooit\HyperfAuth\Exception\UserProviderException;
1717

1818
/**
1919
* Class AuthManager.

src/AuthMiddleware.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
* @contact [email protected]
1010
* @license https://github.com/qbhy/hyperf-auth/blob/master/LICENSE
1111
*/
12-
namespace Qbhy\HyperfAuth;
12+
namespace Irooit\HyperfAuth;
1313

1414
use Hyperf\Di\Annotation\Inject;
1515
use Psr\Http\Message\ResponseInterface;
1616
use Psr\Http\Message\ServerRequestInterface;
1717
use Psr\Http\Server\MiddlewareInterface;
1818
use Psr\Http\Server\RequestHandlerInterface;
19-
use Qbhy\HyperfAuth\Exception\UnauthorizedException;
19+
use Irooit\HyperfAuth\Exception\UnauthorizedException;
2020

2121
/**
2222
* Class AuthMiddleware.

0 commit comments

Comments
 (0)