8000 Update JwtGuard.php by haozing · Pull Request #40 · qbhy/hyperf-auth · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Update JwtGuard.php #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 4, 2023
Merged

Update JwtGuard.php #40

merged 1 commit into from
Dec 4, 2023

Conversation

haozing
Copy link
Contributor
@haozing haozing commented Dec 4, 2023

支持hyperf 3.1

支持hyperf 3.1
@vmikhav
Copy link
vmikhav commented Dec 4, 2023

@haozing thanks for your patch. But could you extend it to fix all issues?

  • src/AuthManager.php - add use function Hyperf\Support\make;
  • src/Guard/SsoGuard.php - add use function Hyperf\Support\make;
  • src/Annotation/Auth.php - replace parent::__construct($value); with $this->value = $value; or change constructor to public function __construct(public ?string $value = null) (base constructor was deprecated)
  • src/helper.php - replace use Hyperf\Utils\ApplicationContext; with use Hyperf\Context\ApplicationContext;

@vmikhav vmikhav mentioned this pull request Dec 4, 2023
@qbhy qbhy merged commit 4129ee8 into qbhy:master Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0