| @@ 30-71 (lines=42) @@ | ||
| 27 | /** |
|
| 28 | * @package Limoncello\Passport |
|
| 29 | */ |
|
| 30 | class MySqlPassportProvider implements CCI, MI, CI, MWI |
|
| 31 | { |
|
| 32 | /** |
|
| 33 | * @inheritdoc |
|
| 34 | */ |
|
| 35 | public static function getContainerConfigurators(): array |
|
| 36 | { |
|
| 37 | return [ |
|
| 38 | MySqlPassportContainerConfigurator::class, |
|
| 39 | ]; |
|
| 40 | } |
|
| 41 | ||
| 42 | /** |
|
| 43 | * @inheritdoc |
|
| 44 | */ |
|
| 45 | public static function getMigrations(): array |
|
| 46 | { |
|
| 47 | return [ |
|
| 48 | MySqlPassportMigration::class, |
|
| 49 | ]; |
|
| 50 | } |
|
| 51 | ||
| 52 | /** |
|
| 53 | * @inheritdoc |
|
| 54 | */ |
|
| 55 | public static function getRouteConfigurators(): array |
|
| 56 | { |
|
| 57 | return [ |
|
| 58 | PassportRoutesConfigurator::class, |
|
| 59 | ]; |
|
| 60 | } |
|
| 61 | ||
| 62 | /** |
|
| 63 | * @inheritdoc |
|
| 64 | */ |
|
| 65 | public static function getMiddleware(): array |
|
| 66 | { |
|
| 67 | return [ |
|
| 68 | PassportMiddleware::class, |
|
| 69 | ]; |
|
| 70 | } |
|
| 71 | } |
|
| 72 | ||
| @@ 30-71 (lines=42) @@ | ||
| 27 | /** |
|
| 28 | * @package Limoncello\Passport |
|
| 29 | */ |
|
| 30 | class PassportProvider implements CCI, MI, CI, MWI |
|
| 31 | { |
|
| 32 | /** |
|
| 33 | * @inheritdoc |
|
| 34 | */ |
|
| 35 | public static function getContainerConfigurators(): array |
|
| 36 | { |
|
| 37 | return [ |
|
| 38 | PassportContainerConfigurator::class, |
|
| 39 | ]; |
|
| 40 | } |
|
| 41 | ||
| 42 | /** |
|
| 43 | * @inheritdoc |
|
| 44 | */ |
|
| 45 | public static function getMigrations(): array |
|
| 46 | { |
|
| 47 | return [ |
|
| 48 | PassportMigration::class, |
|
| 49 | ]; |
|
| 50 | } |
|
| 51 | ||
| 52 | /** |
|
| 53 | * @inheritdoc |
|
| 54 | */ |
|
| 55 | public static function getRouteConfigurators(): array |
|
| 56 | { |
|
| 57 | return [ |
|
| 58 | PassportRoutesConfigurator::class, |
|
| 59 | ]; |
|
| 60 | } |
|
| 61 | ||
| 62 | /** |
|
| 63 | * @inheritdoc |
|
| 64 | */ |
|
| 65 | public static function getMiddleware(): array |
|
| 66 | { |
|
| 67 | return [ |
|
| 68 | PassportMiddleware::class, |
|
| 69 | ]; |
|
| 70 | } |
|
| 71 | } |
|
| 72 | ||
| @@ 30-71 (lines=42) @@ | ||
| 27 | /** |
|
| 28 | * @package Limoncello\Passport |
|
| 29 | */ |
|
| 30 | class PostgreSqlPassportProvider implements CCI, MI, CI, MWI |
|
| 31 | { |
|
| 32 | /** |
|
| 33 | * @inheritdoc |
|
| 34 | */ |
|
| 35 | public static function getContainerConfigurators(): array |
|
| 36 | { |
|
| 37 | return [ |
|
| 38 | PostgreSqlPassportContainerConfigurator::class, |
|
| 39 | ]; |
|
| 40 | } |
|
| 41 | ||
| 42 | /** |
|
| 43 | * @inheritdoc |
|
| 44 | */ |
|
| 45 | public static function getMigrations(): array |
|
| 46 | { |
|
| 47 | return [ |
|
| 48 | PostgreSqlPassportMigration::class, |
|
| 49 | ]; |
|
| 50 | } |
|
| 51 | ||
| 52 | /** |
|
| 53 | * @inheritdoc |
|
| 54 | */ |
|
| 55 | public static function getRouteConfigurators(): array |
|
| 56 | { |
|
| 57 | return [ |
|
| 58 | PassportRoutesConfigurator::class, |
|
| 59 | ]; |
|
| 60 | } |
|
| 61 | ||
| 62 | /** |
|
| 63 | * @inheritdoc |
|
| 64 | */ |
|
| 65 | public static function getMiddleware(): array |
|
| 66 | { |
|
| 67 | return [ |
|
| 68 | PassportMiddleware::class, |
|
| 69 | ]; |
|
| 70 | } |
|
| 71 | } |
|
| 72 | ||