|
@@ 69-74 (lines=6) @@
|
| 66 |
|
return $storage; |
| 67 |
|
}); |
| 68 |
|
|
| 69 |
|
$app->singleton(FluentAuthCode::class, function () use ($provider) { |
| 70 |
|
$storage = new FluentAuthCode($provider->app['db']); |
| 71 |
|
$storage->setConnectionName($provider->getConnectionName()); |
| 72 |
|
|
| 73 |
|
return $storage; |
| 74 |
|
}); |
| 75 |
|
|
| 76 |
|
$app->singleton(FluentClient::class, function ($app) use ($provider) { |
| 77 |
|
$limitClientsToGrants = $app['config']->get('oauth2.limit_clients_to_grants'); |
|
@@ 84-89 (lines=6) @@
|
| 81 |
|
return $storage; |
| 82 |
|
}); |
| 83 |
|
|
| 84 |
|
$app->singleton(FluentRefreshToken::class, function () use ($provider) { |
| 85 |
|
$storage = new FluentRefreshToken($provider->app['db']); |
| 86 |
|
$storage->setConnectionName($provider->getConnectionName()); |
| 87 |
|
|
| 88 |
|
return $storage; |
| 89 |
|
}); |
| 90 |
|
|
| 91 |
|
$app->singleton(FluentScope::class, function ($app) use ($provider) { |
| 92 |
|
$limitClientsToScopes = $app['config']->get('oauth2.limit_clients_to_scopes'); |
|
@@ 100-105 (lines=6) @@
|
| 97 |
|
return $storage; |
| 98 |
|
}); |
| 99 |
|
|
| 100 |
|
$app->singleton(FluentSession::class, function () use ($provider) { |
| 101 |
|
$storage = new FluentSession($provider->app['db']); |
| 102 |
|
$storage->setConnectionName($provider->getConnectionName()); |
| 103 |
|
|
| 104 |
|
return $storage; |
| 105 |
|
}); |
| 106 |
|
} |
| 107 |
|
|
| 108 |
|
/** |
|
@@ 62-67 (lines=6) @@
|
| 59 |
|
{ |
| 60 |
|
$provider = $this; |
| 61 |
|
|
| 62 |
|
$app->singleton(FluentAccessToken::class, function () use ($provider) { |
| 63 |
|
$storage = new FluentAccessToken($provider->app['db']); |
| 64 |
|
$storage->setConnectionName($provider->getConnectionName()); |
| 65 |
|
|
| 66 |
|
return $storage; |
| 67 |
|
}); |
| 68 |
|
|
| 69 |
|
$app->singleton(FluentAuthCode::class, function () use ($provider) { |
| 70 |
|
$storage = new FluentAuthCode($provider->app['db']); |