method
public
static final
ControllerBinder::buildForFunction()
Сигнатура
public final static buildForFunction(mixed $callable[, mixed $configuration = [] ]) : mixed
Параметры
$callable
mixed
$configuration
mixed
= []
Возвращаемое значение
mixed
Как применяется в ControllerBinder
ControllerBinder::buildForFunction() — метод класса \Bitrix\Main\Engine\AutoWire\ControllerBinder модуля «Главный модуль».
Статический метод — вызывается через имя класса ControllerBinder, без создания объекта.
use Bitrix\Main\Engine\AutoWire\ControllerBinder;
$callable = null;
$result = ControllerBinder::buildForFunction($callable);
// $result: mixedДругие методы ControllerBinder
appendAutoWiredParameter()appendSourcesParametersToMap()buildForMethod()getArgs()Возвращает список параметров метода, которые возможно использовать в call_user_func_array().getAutoWiredParameters()getConfiguration()getController()getInstance()getMethod()getMethodParams()Возвращает список параметров метода.getSourcesParametersToMap()invoke()Вызывает метод с привязанными параметрами.
buildForFunction() есть и у других классов модуля «Главный модуль»: Binder, Binder.
Исходный файл: source/main/lib/engine/autowire/controllerbinder.php:48

