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