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

