Added PasswordGrantProvider to container

This commit is contained in:
Alex Bilbie 2015-04-05 21:14:06 +01:00
parent 8fcf93c489
commit 1f1f0d8f15

View File

@ -44,7 +44,8 @@ abstract class AbstractServer implements ContainerAwareInterface, EmitterAwareIn
{
$this->setContainer(new Container());
$this->getContainer()->singleton('emitter', $this->getEmitter());
$this->getContainer()->addServiceProvider('League\OAuth2\Server\ServiceProviders\ClientCredentialsGrantServerProvider');
$this->getContainer()->addServiceProvider('League\OAuth2\Server\ServiceProviders\ClientCredentialsGrantProvider');
$this->getContainer()->addServiceProvider('League\OAuth2\Server\ServiceProviders\PasswordGrantProvider');
}
/**