if ($this->httpCacheEnabled
) { $controller->
Response()->headers->
set( CookieRemoveHandler::COOKIE_GROUP_COLLECTION_KEY,
base64_encode(serialize($this->cookieHandler->
getCookies())) );
} $controller->
View()->
assign( 'cookieGroups',
$this->
convertToArray($this->cookieHandler->
getCookies()) );
} private function convertToArray(CookieGroupCollection
$cookieGroupCollection): array
{ return json_decode(json_encode($cookieGroupCollection), true
);
}}