1 | <?php |
||
22 | class CookieAuthenticationService |
||
23 | { |
||
24 | use EventManagerAwareTrait; |
||
25 | |||
26 | /** |
||
27 | * @var ServiceLocatorInterface |
||
28 | */ |
||
29 | protected $serviceLocator; |
||
30 | |||
31 | /** |
||
32 | * @var AuthenticationService |
||
33 | */ |
||
34 | protected $authService; |
||
35 | |||
36 | /** |
||
37 | * @var RememberMeService |
||
38 | */ |
||
39 | protected $rememberMeService; |
||
40 | |||
41 | /** |
||
42 | * @var CookieService |
||
43 | */ |
||
44 | protected $cookieService; |
||
45 | |||
46 | /** |
||
47 | * @var ZfcUserMapper |
||
48 | */ |
||
49 | protected $userMapper; |
||
50 | |||
51 | /** |
||
52 | * @param ServiceLocatorInterface $serviceLocator |
||
53 | */ |
||
54 | 1 | public function __construct(ServiceLocatorInterface $serviceLocator) |
|
58 | |||
59 | /** |
||
60 | * @param RequestInterface $request |
||
61 | * @param ResponseInterface $response |
||
62 | */ |
||
63 | 1 | public function loginFrom(RequestInterface $request, ResponseInterface $response) |
|
101 | |||
102 | /** |
||
103 | * @param Response $response |
||
104 | */ |
||
105 | protected function invalidAttempt(Response $response) |
||
111 | |||
112 | /** |
||
113 | * @return AuthenticationService |
||
114 | */ |
||
115 | 1 | public function getAuthService() |
|
123 | |||
124 | /** |
||
125 | * @param AuthenticationService $authService |
||
126 | * @return $this |
||
127 | */ |
||
128 | 1 | public function setAuthService($authService) |
|
133 | |||
134 | /** |
||
135 | * @return RememberMeService |
||
136 | */ |
||
137 | 1 | public function getRememberMeService() |
|
145 | |||
146 | /** |
||
147 | * @param RememberMeService $rememberMeService |
||
148 | * @return $this |
||
149 | */ |
||
150 | 1 | public function setRememberMeService($rememberMeService) |
|
155 | |||
156 | /** |
||
157 | * @return CookieService |
||
158 | */ |
||
159 | 1 | public function getCookieService() |
|
166 | |||
167 | /** |
||
168 | * @param CookieService $cookieService |
||
169 | * @return $this |
||
170 | */ |
||
171 | 1 | public function setCookieService($cookieService) |
|
176 | |||
177 | /** |
||
178 | * @return ZfcUserMapper |
||
179 | */ |
||
180 | 1 | public function getUserMapper() |
|
188 | |||
189 | /** |
||
190 | * @param ZfcUserMapper $mapper |
||
191 | */ |
||
192 | 1 | public function setUserMapper(ZfcUserMapper $mapper) |
|
196 | } |
||
197 |