@@ 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'); |
|
@@ 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']); |
|
@@ 85-90 (lines=6) @@ | ||
82 | return $storage; |
|
83 | }); |
|
84 | ||
85 | $app->singleton(FluentRefreshToken::class, function () use ($provider) { |
|
86 | $storage = new FluentRefreshToken($provider->app['db']); |
|
87 | $storage->setConnectionName($provider->getConnectionName()); |
|
88 | ||
89 | return $storage; |
|
90 | }); |
|
91 | ||
92 | $app->singleton(FluentScope::class, function ($app) use ($provider) { |
|
93 | $limitClientsToScopes = $app['config']->get('oauth2.limit_clients_to_scopes'); |
|
@@ 101-106 (lines=6) @@ | ||
98 | return $storage; |
|
99 | }); |
|
100 | ||
101 | $app->singleton(FluentSession::class, function () use ($provider) { |
|
102 | $storage = new FluentSession($provider->app['db']); |
|
103 | $storage->setConnectionName($provider->getConnectionName()); |
|
104 | ||
105 | return $storage; |
|
106 | }); |
|
107 | } |
|
108 | ||
109 | /** |