Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | public function discover(string $uri): ProviderMetadata |
||
21 | { |
||
22 | $key = 'oidc_discoverer_' . base64_encode($uri); |
||
23 | |||
24 | if ($this->cache->has($key)) { |
||
25 | return $this->cache->get($key); |
||
26 | } |
||
27 | |||
28 | $metadata = $this->inner->discover($uri); |
||
29 | $this->cache->set($key, $metadata, $this->ttl); |
||
30 | |||
31 | return $metadata; |
||
32 | } |
||
34 |