Метод __construct
Сигнатура метода
public function __construct(?ManagedAgentInstanceRepositoryInterface $instanceRepository = null, ?Closure $continueRemoval = null, ?LoggerInterface $logger = null, int $instanceLimit = self::INSTANCE_LIMIT, float $passSeconds = self::PASS_SECONDS)
Описание
The agent is an entry point of the platform and is constructed without arguments there, so every dependency has a default that resolves itself lazily. The removal is taken as a callable and not as the service itself: the service is final, and this way a test drives the agent without a live lifecycle.
Параметры
5| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$instanceRepository
|
?ManagedAgentInstanceRepositoryInterface
|
null
|
—
|
$continueRemoval
|
?Closure
|
null
|
—
|
$logger
|
?LoggerInterface
|
null
|
—
|
$instanceLimit
|
int
|
self::INSTANCE_LIMIT
|
—
|
$passSeconds
|
float
|
self::PASS_SECONDS
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulesbizproc/lib/Infrastructure/Agent/ManagedSystemAiAgentCleanupAgent.php
Расположение метода в файле
Строки
102–117