Added knowledge of UserRepository

This commit is contained in:
Alex Bilbie 2015-04-05 21:13:45 +01:00
parent 77b5282b46
commit bdd71743cd

View File

@ -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;
} }
} }