• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/engine/autowire/binder.php
  • Класс: Bitrix\Main\Engine\AutoWire\Binder
  • Вызов: Binder::invoke
public function invoke()
{
	try
	{
		if ($this->reflectionFunctionAbstract instanceof \ReflectionMethod)
		{
			return $this->reflectionFunctionAbstract->invokeArgs($this->instance, $this->getArgs());
		}

		if ($this->reflectionFunctionAbstract instanceof \ReflectionFunction)
		{
			return $this->reflectionFunctionAbstract->invokeArgs($this->getArgs());
		}
	}
	catch (\TypeError $exception)
	{
		throw $exception;
//			$this->processException($exception);
	}
	catch (\ErrorException $exception)
	{
		throw $exception;
//			$this->processException($exception);
	}

	return null;
}