| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function register() |
||
| 27 | { |
||
| 28 | $this->app->resolving('auth', function ($auth) { |
||
| 29 | /** @var AuthManager $auth */ |
||
| 30 | $auth->provider('cache', function ($app, $config) { |
||
| 31 | return new CacheProvider( |
||
| 32 | ($config['hash'] ?? $app['hash']), |
||
| 33 | ($config['cache'] ?? $app->config->get('cache.default')), |
||
| 34 | ($config['expiresInSeconds'] ?? (7 * 24 * 3600)), |
||
| 35 | ($config['cacheKeyPrefix'] ?? 'auth'), |
||
| 36 | ($config['cacheTags'] ?? []) |
||
| 37 | ); |
||
| 42 |