1 | <?php |
||
16 | class MultiAuthenticate |
||
17 | { |
||
18 | /** |
||
19 | * The authentication factory instance. |
||
20 | * |
||
21 | * @var \Illuminate\Contracts\Auth\Factory |
||
22 | */ |
||
23 | protected $auth; |
||
24 | /** |
||
25 | * The application instance. |
||
26 | * |
||
27 | * @var \Illuminate\Foundation\Application |
||
28 | */ |
||
29 | private $app; |
||
30 | |||
31 | /** |
||
32 | * @var \League\OAuth2\Server\ResourceServer |
||
33 | */ |
||
34 | private $server; |
||
35 | |||
36 | /** |
||
37 | * @var \SMartins\PassportMultiauth\ProviderRepository |
||
38 | */ |
||
39 | private $providers; |
||
40 | |||
41 | public function __construct(ResourceServer $server, ProviderRepository $providers, App $app, Auth $auth) |
||
48 | |||
49 | /** |
||
50 | * Handle an incoming request. |
||
51 | * |
||
52 | * @param \Illuminate\Http\Request $request |
||
53 | * @param \Closure $next |
||
54 | * @param string[] ...$guards |
||
55 | * |
||
56 | * @return mixed |
||
57 | */ |
||
58 | public function handle(Request $request, Closure $next, ...$guards) |
||
102 | |||
103 | /** |
||
104 | * Determine if the user is logged in to any of the given guards. |
||
105 | * |
||
106 | * @param array $guards |
||
107 | * |
||
108 | * @throws \Illuminate\Auth\AuthenticationException |
||
109 | */ |
||
110 | protected function authenticate(array $guards) |
||
124 | } |
||
125 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.