1 | <?php |
||
8 | class IlluminateAuthAdapter implements AuthInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var \Illuminate\Auth\AuthManager |
||
12 | */ |
||
13 | protected $auth; |
||
14 | |||
15 | /** |
||
16 | * @param \Illuminate\Auth\AuthManager $auth |
||
17 | */ |
||
18 | 12 | public function __construct(AuthManager $auth) |
|
22 | |||
23 | /** |
||
24 | * Check a user's credentials |
||
25 | * |
||
26 | * @param array $credentials |
||
27 | * @return bool |
||
28 | */ |
||
29 | 3 | public function byCredentials(array $credentials = []) |
|
33 | |||
34 | /** |
||
35 | * Authenticate a user via the id |
||
36 | * |
||
37 | * @param mixed $id |
||
38 | * @return bool |
||
39 | */ |
||
40 | 6 | public function byId($id) |
|
48 | |||
49 | /** |
||
50 | * Get the currently authenticated user |
||
51 | * |
||
52 | * @return mixed |
||
53 | */ |
||
54 | 3 | public function user() |
|
58 | } |
||
59 |