@@ -4,11 +4,11 @@ |
||
4 | 4 | |
5 | 5 | interface Responsable |
6 | 6 | { |
7 | - /** |
|
8 | - * Create an HTTP response that represents the object. |
|
9 | - * |
|
10 | - * @param \Illuminate\Http\Request $request |
|
11 | - * @return \Symfony\Component\HttpFoundation\Response |
|
12 | - */ |
|
13 | - public function toResponse($request); |
|
7 | + /** |
|
8 | + * Create an HTTP response that represents the object. |
|
9 | + * |
|
10 | + * @param \Illuminate\Http\Request $request |
|
11 | + * @return \Symfony\Component\HttpFoundation\Response |
|
12 | + */ |
|
13 | + public function toResponse($request); |
|
14 | 14 | } |
@@ -4,10 +4,10 @@ |
||
4 | 4 | |
5 | 5 | interface DeferringDisplayableValue |
6 | 6 | { |
7 | - /** |
|
8 | - * Resolve the displayable value that the class is deferring. |
|
9 | - * |
|
10 | - * @return \Illuminate\Contracts\Support\Htmlable|string |
|
11 | - */ |
|
12 | - public function resolveDisplayableValue(); |
|
7 | + /** |
|
8 | + * Resolve the displayable value that the class is deferring. |
|
9 | + * |
|
10 | + * @return \Illuminate\Contracts\Support\Htmlable|string |
|
11 | + */ |
|
12 | + public function resolveDisplayableValue(); |
|
13 | 13 | } |
@@ -4,46 +4,46 @@ |
||
4 | 4 | |
5 | 5 | interface UserProvider |
6 | 6 | { |
7 | - /** |
|
8 | - * Retrieve a user by their unique identifier. |
|
9 | - * |
|
10 | - * @param mixed $identifier |
|
11 | - * @return \Illuminate\Contracts\Auth\Authenticatable|null |
|
12 | - */ |
|
13 | - public function retrieveById($identifier); |
|
7 | + /** |
|
8 | + * Retrieve a user by their unique identifier. |
|
9 | + * |
|
10 | + * @param mixed $identifier |
|
11 | + * @return \Illuminate\Contracts\Auth\Authenticatable|null |
|
12 | + */ |
|
13 | + public function retrieveById($identifier); |
|
14 | 14 | |
15 | - /** |
|
16 | - * Retrieve a user by their unique identifier and "remember me" token. |
|
17 | - * |
|
18 | - * @param mixed $identifier |
|
19 | - * @param string $token |
|
20 | - * @return \Illuminate\Contracts\Auth\Authenticatable|null |
|
21 | - */ |
|
22 | - public function retrieveByToken($identifier, $token); |
|
15 | + /** |
|
16 | + * Retrieve a user by their unique identifier and "remember me" token. |
|
17 | + * |
|
18 | + * @param mixed $identifier |
|
19 | + * @param string $token |
|
20 | + * @return \Illuminate\Contracts\Auth\Authenticatable|null |
|
21 | + */ |
|
22 | + public function retrieveByToken($identifier, $token); |
|
23 | 23 | |
24 | - /** |
|
25 | - * Update the "remember me" token for the given user in storage. |
|
26 | - * |
|
27 | - * @param \Illuminate\Contracts\Auth\Authenticatable $user |
|
28 | - * @param string $token |
|
29 | - * @return void |
|
30 | - */ |
|
31 | - public function updateRememberToken(Authenticatable $user, $token); |
|
24 | + /** |
|
25 | + * Update the "remember me" token for the given user in storage. |
|
26 | + * |
|
27 | + * @param \Illuminate\Contracts\Auth\Authenticatable $user |
|
28 | + * @param string $token |
|
29 | + * @return void |
|
30 | + */ |
|
31 | + public function updateRememberToken(Authenticatable $user, $token); |
|
32 | 32 | |
33 | - /** |
|
34 | - * Retrieve a user by the given credentials. |
|
35 | - * |
|
36 | - * @param array $credentials |
|
37 | - * @return \Illuminate\Contracts\Auth\Authenticatable|null |
|
38 | - */ |
|
39 | - public function retrieveByCredentials(array $credentials); |
|
33 | + /** |
|
34 | + * Retrieve a user by the given credentials. |
|
35 | + * |
|
36 | + * @param array $credentials |
|
37 | + * @return \Illuminate\Contracts\Auth\Authenticatable|null |
|
38 | + */ |
|
39 | + public function retrieveByCredentials(array $credentials); |
|
40 | 40 | |
41 | - /** |
|
42 | - * Validate a user against the given credentials. |
|
43 | - * |
|
44 | - * @param \Illuminate\Contracts\Auth\Authenticatable $user |
|
45 | - * @param array $credentials |
|
46 | - * @return bool |
|
47 | - */ |
|
48 | - public function validateCredentials(Authenticatable $user, array $credentials); |
|
41 | + /** |
|
42 | + * Validate a user against the given credentials. |
|
43 | + * |
|
44 | + * @param \Illuminate\Contracts\Auth\Authenticatable $user |
|
45 | + * @param array $credentials |
|
46 | + * @return bool |
|
47 | + */ |
|
48 | + public function validateCredentials(Authenticatable $user, array $credentials); |
|
49 | 49 | } |
@@ -4,46 +4,46 @@ |
||
4 | 4 | |
5 | 5 | interface Authenticatable |
6 | 6 | { |
7 | - /** |
|
8 | - * Get the name of the unique identifier for the user. |
|
9 | - * |
|
10 | - * @return string |
|
11 | - */ |
|
12 | - public function getAuthIdentifierName(); |
|
7 | + /** |
|
8 | + * Get the name of the unique identifier for the user. |
|
9 | + * |
|
10 | + * @return string |
|
11 | + */ |
|
12 | + public function getAuthIdentifierName(); |
|
13 | 13 | |
14 | - /** |
|
15 | - * Get the unique identifier for the user. |
|
16 | - * |
|
17 | - * @return mixed |
|
18 | - */ |
|
19 | - public function getAuthIdentifier(); |
|
14 | + /** |
|
15 | + * Get the unique identifier for the user. |
|
16 | + * |
|
17 | + * @return mixed |
|
18 | + */ |
|
19 | + public function getAuthIdentifier(); |
|
20 | 20 | |
21 | - /** |
|
22 | - * Get the password for the user. |
|
23 | - * |
|
24 | - * @return string |
|
25 | - */ |
|
26 | - public function getAuthPassword(); |
|
21 | + /** |
|
22 | + * Get the password for the user. |
|
23 | + * |
|
24 | + * @return string |
|
25 | + */ |
|
26 | + public function getAuthPassword(); |
|
27 | 27 | |
28 | - /** |
|
29 | - * Get the token value for the "remember me" session. |
|
30 | - * |
|
31 | - * @return string |
|
32 | - */ |
|
33 | - public function getRememberToken(); |
|
28 | + /** |
|
29 | + * Get the token value for the "remember me" session. |
|
30 | + * |
|
31 | + * @return string |
|
32 | + */ |
|
33 | + public function getRememberToken(); |
|
34 | 34 | |
35 | - /** |
|
36 | - * Set the token value for the "remember me" session. |
|
37 | - * |
|
38 | - * @param string $value |
|
39 | - * @return void |
|
40 | - */ |
|
41 | - public function setRememberToken($value); |
|
35 | + /** |
|
36 | + * Set the token value for the "remember me" session. |
|
37 | + * |
|
38 | + * @param string $value |
|
39 | + * @return void |
|
40 | + */ |
|
41 | + public function setRememberToken($value); |
|
42 | 42 | |
43 | - /** |
|
44 | - * Get the column name for the "remember me" token. |
|
45 | - * |
|
46 | - * @return string |
|
47 | - */ |
|
48 | - public function getRememberTokenName(); |
|
43 | + /** |
|
44 | + * Get the column name for the "remember me" token. |
|
45 | + * |
|
46 | + * @return string |
|
47 | + */ |
|
48 | + public function getRememberTokenName(); |
|
49 | 49 | } |
@@ -4,19 +4,19 @@ |
||
4 | 4 | |
5 | 5 | interface Factory |
6 | 6 | { |
7 | - /** |
|
8 | - * Get a guard instance by name. |
|
9 | - * |
|
10 | - * @param string|null $name |
|
11 | - * @return \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard |
|
12 | - */ |
|
13 | - public function guard($name = null); |
|
7 | + /** |
|
8 | + * Get a guard instance by name. |
|
9 | + * |
|
10 | + * @param string|null $name |
|
11 | + * @return \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard |
|
12 | + */ |
|
13 | + public function guard($name = null); |
|
14 | 14 | |
15 | - /** |
|
16 | - * Set the default guard the factory should serve. |
|
17 | - * |
|
18 | - * @param string $name |
|
19 | - * @return void |
|
20 | - */ |
|
21 | - public function shouldUse($name); |
|
15 | + /** |
|
16 | + * Set the default guard the factory should serve. |
|
17 | + * |
|
18 | + * @param string $name |
|
19 | + * @return void |
|
20 | + */ |
|
21 | + public function shouldUse($name); |
|
22 | 22 | } |
@@ -4,5 +4,5 @@ |
||
4 | 4 | |
5 | 5 | interface AuthenticatesRequests |
6 | 6 | { |
7 | - // |
|
7 | + // |
|
8 | 8 | } |
@@ -4,21 +4,21 @@ |
||
4 | 4 | |
5 | 5 | interface SupportsBasicAuth |
6 | 6 | { |
7 | - /** |
|
8 | - * Attempt to authenticate using HTTP Basic Auth. |
|
9 | - * |
|
10 | - * @param string $field |
|
11 | - * @param array $extraConditions |
|
12 | - * @return \Symfony\Component\HttpFoundation\Response|null |
|
13 | - */ |
|
14 | - public function basic($field = 'email', $extraConditions = []); |
|
7 | + /** |
|
8 | + * Attempt to authenticate using HTTP Basic Auth. |
|
9 | + * |
|
10 | + * @param string $field |
|
11 | + * @param array $extraConditions |
|
12 | + * @return \Symfony\Component\HttpFoundation\Response|null |
|
13 | + */ |
|
14 | + public function basic($field = 'email', $extraConditions = []); |
|
15 | 15 | |
16 | - /** |
|
17 | - * Perform a stateless HTTP Basic login attempt. |
|
18 | - * |
|
19 | - * @param string $field |
|
20 | - * @param array $extraConditions |
|
21 | - * @return \Symfony\Component\HttpFoundation\Response|null |
|
22 | - */ |
|
23 | - public function onceBasic($field = 'email', $extraConditions = []); |
|
16 | + /** |
|
17 | + * Perform a stateless HTTP Basic login attempt. |
|
18 | + * |
|
19 | + * @param string $field |
|
20 | + * @param array $extraConditions |
|
21 | + * @return \Symfony\Component\HttpFoundation\Response|null |
|
22 | + */ |
|
23 | + public function onceBasic($field = 'email', $extraConditions = []); |
|
24 | 24 | } |
@@ -6,56 +6,56 @@ |
||
6 | 6 | |
7 | 7 | interface PasswordBroker |
8 | 8 | { |
9 | - /** |
|
10 | - * Constant representing a successfully sent reminder. |
|
11 | - * |
|
12 | - * @var string |
|
13 | - */ |
|
14 | - const RESET_LINK_SENT = 'passwords.sent'; |
|
15 | - |
|
16 | - /** |
|
17 | - * Constant representing a successfully reset password. |
|
18 | - * |
|
19 | - * @var string |
|
20 | - */ |
|
21 | - const PASSWORD_RESET = 'passwords.reset'; |
|
22 | - |
|
23 | - /** |
|
24 | - * Constant representing the user not found response. |
|
25 | - * |
|
26 | - * @var string |
|
27 | - */ |
|
28 | - const INVALID_USER = 'passwords.user'; |
|
29 | - |
|
30 | - /** |
|
31 | - * Constant representing an invalid token. |
|
32 | - * |
|
33 | - * @var string |
|
34 | - */ |
|
35 | - const INVALID_TOKEN = 'passwords.token'; |
|
36 | - |
|
37 | - /** |
|
38 | - * Constant representing a throttled reset attempt. |
|
39 | - * |
|
40 | - * @var string |
|
41 | - */ |
|
42 | - const RESET_THROTTLED = 'passwords.throttled'; |
|
43 | - |
|
44 | - /** |
|
45 | - * Send a password reset link to a user. |
|
46 | - * |
|
47 | - * @param array $credentials |
|
48 | - * @param \Closure|null $callback |
|
49 | - * @return string |
|
50 | - */ |
|
51 | - public function sendResetLink(array $credentials, Closure $callback = null); |
|
52 | - |
|
53 | - /** |
|
54 | - * Reset the password for the given token. |
|
55 | - * |
|
56 | - * @param array $credentials |
|
57 | - * @param \Closure $callback |
|
58 | - * @return mixed |
|
59 | - */ |
|
60 | - public function reset(array $credentials, Closure $callback); |
|
9 | + /** |
|
10 | + * Constant representing a successfully sent reminder. |
|
11 | + * |
|
12 | + * @var string |
|
13 | + */ |
|
14 | + const RESET_LINK_SENT = 'passwords.sent'; |
|
15 | + |
|
16 | + /** |
|
17 | + * Constant representing a successfully reset password. |
|
18 | + * |
|
19 | + * @var string |
|
20 | + */ |
|
21 | + const PASSWORD_RESET = 'passwords.reset'; |
|
22 | + |
|
23 | + /** |
|
24 | + * Constant representing the user not found response. |
|
25 | + * |
|
26 | + * @var string |
|
27 | + */ |
|
28 | + const INVALID_USER = 'passwords.user'; |
|
29 | + |
|
30 | + /** |
|
31 | + * Constant representing an invalid token. |
|
32 | + * |
|
33 | + * @var string |
|
34 | + */ |
|
35 | + const INVALID_TOKEN = 'passwords.token'; |
|
36 | + |
|
37 | + /** |
|
38 | + * Constant representing a throttled reset attempt. |
|
39 | + * |
|
40 | + * @var string |
|
41 | + */ |
|
42 | + const RESET_THROTTLED = 'passwords.throttled'; |
|
43 | + |
|
44 | + /** |
|
45 | + * Send a password reset link to a user. |
|
46 | + * |
|
47 | + * @param array $credentials |
|
48 | + * @param \Closure|null $callback |
|
49 | + * @return string |
|
50 | + */ |
|
51 | + public function sendResetLink(array $credentials, Closure $callback = null); |
|
52 | + |
|
53 | + /** |
|
54 | + * Reset the password for the given token. |
|
55 | + * |
|
56 | + * @param array $credentials |
|
57 | + * @param \Closure $callback |
|
58 | + * @return mixed |
|
59 | + */ |
|
60 | + public function reset(array $credentials, Closure $callback); |
|
61 | 61 | } |
@@ -4,60 +4,60 @@ |
||
4 | 4 | |
5 | 5 | interface StatefulGuard extends Guard |
6 | 6 | { |
7 | - /** |
|
8 | - * Attempt to authenticate a user using the given credentials. |
|
9 | - * |
|
10 | - * @param array $credentials |
|
11 | - * @param bool $remember |
|
12 | - * @return bool |
|
13 | - */ |
|
14 | - public function attempt(array $credentials = [], $remember = false); |
|
15 | - |
|
16 | - /** |
|
17 | - * Log a user into the application without sessions or cookies. |
|
18 | - * |
|
19 | - * @param array $credentials |
|
20 | - * @return bool |
|
21 | - */ |
|
22 | - public function once(array $credentials = []); |
|
23 | - |
|
24 | - /** |
|
25 | - * Log a user into the application. |
|
26 | - * |
|
27 | - * @param \Illuminate\Contracts\Auth\Authenticatable $user |
|
28 | - * @param bool $remember |
|
29 | - * @return void |
|
30 | - */ |
|
31 | - public function login(Authenticatable $user, $remember = false); |
|
32 | - |
|
33 | - /** |
|
34 | - * Log the given user ID into the application. |
|
35 | - * |
|
36 | - * @param mixed $id |
|
37 | - * @param bool $remember |
|
38 | - * @return \Illuminate\Contracts\Auth\Authenticatable|bool |
|
39 | - */ |
|
40 | - public function loginUsingId($id, $remember = false); |
|
41 | - |
|
42 | - /** |
|
43 | - * Log the given user ID into the application without sessions or cookies. |
|
44 | - * |
|
45 | - * @param mixed $id |
|
46 | - * @return \Illuminate\Contracts\Auth\Authenticatable|bool |
|
47 | - */ |
|
48 | - public function onceUsingId($id); |
|
49 | - |
|
50 | - /** |
|
51 | - * Determine if the user was authenticated via "remember me" cookie. |
|
52 | - * |
|
53 | - * @return bool |
|
54 | - */ |
|
55 | - public function viaRemember(); |
|
56 | - |
|
57 | - /** |
|
58 | - * Log the user out of the application. |
|
59 | - * |
|
60 | - * @return void |
|
61 | - */ |
|
62 | - public function logout(); |
|
7 | + /** |
|
8 | + * Attempt to authenticate a user using the given credentials. |
|
9 | + * |
|
10 | + * @param array $credentials |
|
11 | + * @param bool $remember |
|
12 | + * @return bool |
|
13 | + */ |
|
14 | + public function attempt(array $credentials = [], $remember = false); |
|
15 | + |
|
16 | + /** |
|
17 | + * Log a user into the application without sessions or cookies. |
|
18 | + * |
|
19 | + * @param array $credentials |
|
20 | + * @return bool |
|
21 | + */ |
|
22 | + public function once(array $credentials = []); |
|
23 | + |
|
24 | + /** |
|
25 | + * Log a user into the application. |
|
26 | + * |
|
27 | + * @param \Illuminate\Contracts\Auth\Authenticatable $user |
|
28 | + * @param bool $remember |
|
29 | + * @return void |
|
30 | + */ |
|
31 | + public function login(Authenticatable $user, $remember = false); |
|
32 | + |
|
33 | + /** |
|
34 | + * Log the given user ID into the application. |
|
35 | + * |
|
36 | + * @param mixed $id |
|
37 | + * @param bool $remember |
|
38 | + * @return \Illuminate\Contracts\Auth\Authenticatable|bool |
|
39 | + */ |
|
40 | + public function loginUsingId($id, $remember = false); |
|
41 | + |
|
42 | + /** |
|
43 | + * Log the given user ID into the application without sessions or cookies. |
|
44 | + * |
|
45 | + * @param mixed $id |
|
46 | + * @return \Illuminate\Contracts\Auth\Authenticatable|bool |
|
47 | + */ |
|
48 | + public function onceUsingId($id); |
|
49 | + |
|
50 | + /** |
|
51 | + * Determine if the user was authenticated via "remember me" cookie. |
|
52 | + * |
|
53 | + * @return bool |
|
54 | + */ |
|
55 | + public function viaRemember(); |
|
56 | + |
|
57 | + /** |
|
58 | + * Log the user out of the application. |
|
59 | + * |
|
60 | + * @return void |
|
61 | + */ |
|
62 | + public function logout(); |
|
63 | 63 | } |