Updated AuthCodeRepositoryInterface

This commit is contained in:
Alex Bilbie
2015-04-05 21:56:42 +01:00
parent be14b3a2df
commit d468cbf600
2 changed files with 10 additions and 28 deletions

View File

@@ -16,6 +16,7 @@ use League\Container\ContainerAwareInterface;
use League\Container\ContainerAwareTrait;
use League\Event\EmitterAwareInterface;
use League\Event\EmitterTrait;
use League\OAuth2\Server\Repositories\AuthCodeRepositoryInterface;
use League\OAuth2\Server\Repositories\ClientRepositoryInterface;
use League\OAuth2\Server\Repositories\RepositoryInterface;
use League\OAuth2\Server\Repositories\ScopeRepositoryInterface;
@@ -98,6 +99,9 @@ abstract class AbstractServer implements ContainerAwareInterface, EmitterAwareIn
case ($repository instanceof UserRepositoryInterface):
$this->getContainer()->add('UserRepository', $repository);
break;
case ($repository instanceof AuthCodeRepositoryInterface):
$this->getContainer()->add('AuthCodeRepository', $repository);
break;
}
}
}