diff --git a/src/AbstractServer.php b/src/AbstractServer.php index 68685fe0..6f694c69 100644 --- a/src/AbstractServer.php +++ b/src/AbstractServer.php @@ -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; } }