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