Метод isNewGuestCandidate

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу строки 484–492
~/bitrix/modulesim/lib/V2/Guest/GuestService.php

Исходный код

PHP
private

Сигнатура метода

private function isNewGuestCandidate(?Token $token): bool

Возвращает: bool

Описание

Whether the current request would result in creating a brand-new guest user: no auth token, and nobody authorized whose session survives the join {@see self::resolveUser}. A visitor of another contour counts as nobody, or the guards that only run for newcomers would skip them.

Параметры

1
Имя Тип По умолчанию Флаги
$token ?Token -
-