mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-16 02:03:16 +05:30
Added knowledge of UserRepository
This commit is contained in:
parent
77b5282b46
commit
bdd71743cd
@ -20,6 +20,7 @@ use League\OAuth2\Server\Repositories\ClientRepositoryInterface;
|
|||||||
use League\OAuth2\Server\Repositories\RepositoryInterface;
|
use League\OAuth2\Server\Repositories\RepositoryInterface;
|
||||||
use League\OAuth2\Server\Repositories\ScopeRepositoryInterface;
|
use League\OAuth2\Server\Repositories\ScopeRepositoryInterface;
|
||||||
use League\OAuth2\Server\Repositories\AccessTokenRepositoryInterface;
|
use League\OAuth2\Server\Repositories\AccessTokenRepositoryInterface;
|
||||||
|
use League\OAuth2\Server\Repositories\UserRepositoryInterface;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -93,6 +94,9 @@ abstract class AbstractServer implements ContainerAwareInterface, EmitterAwareIn
|
|||||||
case ($repository instanceof ScopeRepositoryInterface):
|
case ($repository instanceof ScopeRepositoryInterface):
|
||||||
$this->getContainer()->add('ScopeRepository', $repository);
|
$this->getContainer()->add('ScopeRepository', $repository);
|
||||||
break;
|
break;
|
||||||
|
case ($repository instanceof UserRepositoryInterface):
|
||||||
|
$this->getContainer()->add('UserRepository', $repository);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user