Skip to content

Commit 11f671b

Browse files
author
Luca Degasperi
committed
fixed a dependency injection problem
1 parent 9fe71f7 commit 11f671b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/LucaDegasperi/OAuth2Server/OAuth2ServerServiceProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public function register()
3838
$app->bind('League\OAuth2\Server\Storage\ClientInterface', 'LucaDegasperi\OAuth2Server\Repositories\FluentClient');
3939
$app->bind('League\OAuth2\Server\Storage\ScopeInterface', 'LucaDegasperi\OAuth2Server\Repositories\FluentScope');
4040
$app->bind('League\OAuth2\Server\Storage\SessionInterface', 'LucaDegasperi\OAuth2Server\Repositories\FluentSession');
41+
$app->bind('LucaDegasperi\OAuth2Server\Repositories\SessionManagementInterface', 'LucaDegasperi\OAuth2Server\Repositories\FluentSession');
4142

4243
$app['oauth2.authorization-server'] = $app->share(function ($app) {
4344

@@ -89,7 +90,7 @@ public function register()
8990

9091
$app['oauth2.expired-tokens-command'] = $app->share(function($app)
9192
{
92-
return new Commands\ExpiredTokensCommand();
93+
return $app->make('LucaDegasperi\OAuth2Server\Commands\ExpiredTokensCommand');
9394
});
9495

9596
$this->commands('oauth2.expired-tokens-command');

0 commit comments

Comments
 (0)