1 | <?php namespace Modules\User\Repositories\Sentry; |
||
14 | class SentryAuthentication implements Authentication |
||
15 | { |
||
16 | /** |
||
17 | * Authenticate a user |
||
18 | * @param array $credentials |
||
19 | * @param bool $remember Remember the user |
||
20 | * @return mixed |
||
21 | */ |
||
22 | public function login(array $credentials, $remember = false) |
||
44 | |||
45 | /** |
||
46 | * Register a new user. |
||
47 | * @param array $user |
||
48 | * @return bool |
||
49 | */ |
||
50 | public function register(array $user) |
||
54 | |||
55 | /** |
||
56 | * Activate the given used id |
||
57 | * @param int $userId |
||
58 | * @param string $code |
||
59 | * @return bool |
||
60 | */ |
||
61 | public function activate($userId, $code) |
||
76 | |||
77 | /** |
||
78 | * Assign a role to the given user. |
||
79 | * @param \Modules\User\Repositories\UserRepository $user |
||
80 | * @param \Modules\User\Repositories\RoleRepository $role |
||
81 | * @return mixed |
||
82 | */ |
||
83 | public function assignRole($user, $role) |
||
87 | |||
88 | /** |
||
89 | * Log the user out of the application. |
||
90 | * @return mixed |
||
91 | */ |
||
92 | public function logout() |
||
96 | |||
97 | /** |
||
98 | * Create an activation code for the given user |
||
99 | * @param $user |
||
100 | * @return mixed |
||
101 | */ |
||
102 | public function createActivation($user) |
||
106 | |||
107 | /** |
||
108 | * Create a reminders code for the given user |
||
109 | * @param $user |
||
110 | * @return mixed |
||
111 | */ |
||
112 | public function createReminderCode($user) |
||
116 | |||
117 | /** |
||
118 | * Completes the reset password process |
||
119 | * @param $user |
||
120 | * @param string $code |
||
121 | * @param string $password |
||
122 | * @return bool |
||
123 | */ |
||
124 | public function completeResetPassword($user, $code, $password) |
||
128 | |||
129 | /** |
||
130 | * Determines if the current user has access to given permission |
||
131 | * @param $permission |
||
132 | * @return bool |
||
133 | */ |
||
134 | public function hasAccess($permission) |
||
144 | |||
145 | /** |
||
146 | * Check if the user is logged in |
||
147 | * @return mixed |
||
148 | */ |
||
149 | public function check() |
||
157 | |||
158 | /** |
||
159 | * Get the ID for the currently authenticated user |
||
160 | * @return int |
||
161 | */ |
||
162 | public function id() |
||
170 | } |
||
171 |
Scrutinizer analyzes your
composer.json
/composer.lock
file if available to determine the classes, and functions that are defined by your dependencies.It seems like the listed class was neither found in your dependencies, nor was it found in the analyzed files in your repository. If you are using some other form of dependency management, you might want to disable this analysis.