|
@@ -26,8 +26,8 @@ discard block |
|
|
block discarded – undo |
|
26
|
26
|
private $cookieLifespan; |
|
27
|
27
|
|
|
28
|
28
|
/** |
|
29
|
|
- * @param Palladium\Contract\CanCreateMapper $mapperFactory Factory for creating persistence layer structures |
|
30
|
|
- * @param Psr\Log\LoggerInterface $logger PSR-3 compatible logger |
|
|
29
|
+ * @param CanCreateMapper $mapperFactory Factory for creating persistence layer structures |
|
|
30
|
+ * @param LoggerInterface $logger PSR-3 compatible logger |
|
31
|
31
|
* @param int $cookieLifespan Lifespan of the authentication cookie in seconds |
|
32
|
32
|
*/ |
|
33
|
33
|
public function __construct(CanCreateMapper $mapperFactory, LoggerInterface $logger, $cookieLifespan = self::DEFAULT_COOKIE_LIFESPAN) |
|
@@ -108,7 +108,7 @@ discard block |
|
|
block discarded – undo |
|
108
|
108
|
* @throws \Palladium\Exception\CompromisedCookie if key does not match |
|
109
|
109
|
* @throws \Palladium\Exception\IdentityExpired if cookie is too old |
|
110
|
110
|
* |
|
111
|
|
- * @return Palladium\Entity\CookieIdentity |
|
|
111
|
+ * @return Entity\CookieIdentity |
|
112
|
112
|
*/ |
|
113
|
113
|
public function loginWithCookie(Entity\CookieIdentity $identity, $key): Entity\CookieIdentity |
|
114
|
114
|
{ |
|
@@ -267,6 +267,9 @@ discard block |
|
|
block discarded – undo |
|
267
|
267
|
} |
|
268
|
268
|
|
|
269
|
269
|
|
|
|
270
|
+ /** |
|
|
271
|
+ * @param string $message |
|
|
272
|
+ */ |
|
270
|
273
|
private function logExpectedBehaviour(Entity\Identity $identity, $message) |
|
271
|
274
|
{ |
|
272
|
275
|
$this->logger->info($message, [ |
Please login to merge, or discard this patch.