Метод activate
Сигнатура метода
private function activate(Closure $publishEnabledState): void
Возвращает:
void
Описание
The single order in which the feature turns on, shared by both paths that publish the enabled state. The counter of an unfinished fast ladder is dropped first, before anything can read the feature as enabled: disable() keeps that counter deliberately, so a period of the feature that ended in the middle of the ladder leaves its value behind. A cycle of the bootstrap agent starting in the window between the publication and the reset would meet the counter of the previous period next to an enabled feature and could switch a freshly enabled feature off on its first real refusal - and the restore below would then find it disabled and create nothing.
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$publishEnabledState
|
Closure
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulescrm/lib/Feature/CallScoringV2.php