| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 9 | final class LaravelCognitoServiceProvider extends ServiceProvider |
||
| 10 | { |
||
| 11 | public function register() |
||
| 16 | } |
||
| 17 | |||
| 18 | private function registerIssuer(): void |
||
| 19 | { |
||
| 20 | $this->app->bind(Issuer::class, function () { |
||
| 21 | $config = $this->app->get('config'); |
||
| 22 | |||
| 23 | $pool = $config->get('auth.cognito.pool'); |
||
| 24 | |||
| 25 | $region = $config->get('auth.cognito.region'); |
||
| 26 | |||
| 27 | return new Issuer($pool, $region); |
||
| 28 | }); |
||
| 29 | } |
||
| 30 | |||
| 31 | private function registerCognitoUserProvider(): void |
||
| 35 | }); |
||
| 36 | } |
||
| 38 |