1 | <?php |
||
9 | class PassportMultiauth |
||
10 | { |
||
11 | /** |
||
12 | * Set the current user for the application with the given scopes. |
||
13 | * |
||
14 | * @param \Illuminate\Contracts\Auth\Authenticatable $user |
||
15 | * @param array $scopes |
||
16 | * @param string $guard |
||
17 | * @return void |
||
18 | */ |
||
19 | 7 | public static function actingAs($user, $scopes = [], $guard = 'api') |
|
35 | |||
36 | /** |
||
37 | * Get the user provider on configs. |
||
38 | * |
||
39 | * @todo Move to class specialized in check auth configs. |
||
40 | * @param \Illuminate\Contracts\Auth\Authenticatable $user |
||
41 | * @return string|null |
||
42 | */ |
||
43 | 8 | public static function getUserProvider(Authenticatable $user) |
|
53 | |||
54 | /** |
||
55 | * Get the guard of specific provider to `passport` driver. |
||
56 | * |
||
57 | * @todo Move to class specialized in check auth configs. |
||
58 | * @param string $provider |
||
59 | * @return string|null |
||
60 | */ |
||
61 | 8 | public static function getProviderGuard($provider) |
|
71 | |||
72 | /** |
||
73 | * Get the user guard on provider with `passport` driver; |
||
74 | * |
||
75 | * @todo Move to class specialized in check auth configs. |
||
76 | * @param \Illuminate\Contracts\Auth\Authenticatable $user |
||
77 | * @return string|null |
||
78 | */ |
||
79 | 7 | public static function getUserGuard(Authenticatable $user) |
|
85 | } |
||
86 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.