• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/engine/closureaction.php
  • Класс: BitrixMainEngineClosureAction
  • Вызов: ClosureAction::buildBinder
protected function buildBinder()
{
	if ($this->binder === null)
	{
		$controller = $this->getController();
		$this->binder = AutoWireControllerBinder::buildForFunction($this->callable)
			->setController($controller)
			->setSourcesParametersToMap($controller->getSourceParametersList())
			->setAutoWiredParameters(
				array_filter(array_merge(
					[$controller->getPrimaryAutoWiredParameter()],
					$controller->getAutoWiredParameters()
				))
			)
		;
	}

	return $this;
}