From bdd71743cde8695270448d2d58dfeacfc376c82e Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Sun, 5 Apr 2015 21:13:45 +0100 Subject: [PATCH] Added knowledge of UserRepository --- src/AbstractServer.php | 4 ++++ 1 file changed, 4 insertions(+) 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; } }