|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function setCookieVisitor($response, $cookie) |
|
|
public function setCookieVisitor($response, $cookie) |
|
|
{ |
|
|
{ |
|
|
if($this->cookieChecker->isCategoryAllowedByUser('site')) { |
|
|
|
|
|
$response->headers->setCookie(Cookie::create($this->getCookieNameVisitor(), $this->cryptCookie($cookie), 0, '/', $this->utils->getCookieDomain())); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
$response->headers->setCookie(Cookie::create($this->getCookieNameVisitor(), $this->cryptCookie($cookie), 0, '/', $this->utils->getCookieDomain())); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function getVisitor($cookie) |
|
|
public function getVisitor($cookie) |