mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-16 02:03:16 +05:30
Added PasswordGrantProvider to container
This commit is contained in:
parent
8fcf93c489
commit
1f1f0d8f15
@ -44,7 +44,8 @@ abstract class AbstractServer implements ContainerAwareInterface, EmitterAwareIn
|
|||||||
{
|
{
|
||||||
$this->setContainer(new Container());
|
$this->setContainer(new Container());
|
||||||
$this->getContainer()->singleton('emitter', $this->getEmitter());
|
$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');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user