• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/engine/action.php
  • Класс: BitrixMainEngineAction
  • Вызов: Action::buildBinder
protected function buildBinder()
{
	if ($this->binder === null)
	{
		if (!method_exists($this, 'run'))
		{
			throw new SystemException(static::className() . ' must implement run()');
		}

		$controller = $this->getController();
		$this->binder = AutoWireControllerBinder::buildForMethod($this, 'run')
			->setController($controller)
			->setSourcesParametersToMap($controller->getSourceParametersList())
			->setAutoWiredParameters(
				array_filter(array_merge(
					[$controller->getPrimaryAutoWiredParameter()],
					$controller->getAutoWiredParameters()
				))
			)
		;
	}

	return $this;
}