/**
* Actually sets the cookies.
*
* @return void
*/
protected function sendCookies() { if ($this->pretend
) { return;
} $this->
dispatchCookies();
} private function dispatchCookies(): void
{ /** @var IncomingRequest $request */
$request = Services::
request();
foreach ($this->cookieStore->
display() as $cookie) { if ($cookie->
isSecure() && !
$request->
isSecure()) { throw SecurityException::
forDisallowedAction();
}