mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-23 05:29:52 +05:30
Import namespace
This commit is contained in:
parent
0115c41eea
commit
f6cc8bbb42
@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use League\OAuth2\Server\Exception\OAuthServerException;
|
use League\OAuth2\Server\Exception\OAuthServerException;
|
||||||
|
use League\OAuth2\Server\Grant\AuthCodeGrant;
|
||||||
use League\OAuth2\Server\Server;
|
use League\OAuth2\Server\Server;
|
||||||
|
|
||||||
use OAuth2ServerExamples\Repositories\AccessTokenRepository;
|
use OAuth2ServerExamples\Repositories\AccessTokenRepository;
|
||||||
@ -42,7 +43,7 @@ $app = new App([
|
|||||||
|
|
||||||
// Enable the password grant on the server with a token TTL of 1 hour
|
// Enable the password grant on the server with a token TTL of 1 hour
|
||||||
$server->enableGrantType(
|
$server->enableGrantType(
|
||||||
new \League\OAuth2\Server\Grant\AuthCodeGrant(
|
new AuthCodeGrant(
|
||||||
$authCodeRepository,
|
$authCodeRepository,
|
||||||
$refreshTokenRepository,
|
$refreshTokenRepository,
|
||||||
$userRepository,
|
$userRepository,
|
||||||
|
Loading…
Reference in New Issue
Block a user