method
public
ControllerBinder::setAutoWiredParameters()
Сигнатура
public setAutoWiredParameters(array<string|int, Parameter> $parameters) : $this
Параметры
$parameters
array<string|int, Parameter>
Возвращаемое значение
$this
Как применяется в ControllerBinder
ControllerBinder::setAutoWiredParameters() — метод класса \Bitrix\Main\Engine\AutoWire\ControllerBinder модуля «Главный модуль».
Метод объекта: сначала нужен экземпляр ControllerBinder.
use Bitrix\Main\Engine\AutoWire\ControllerBinder;
/** @var ControllerBinder $object */
$parameters = [];
$result = $object->setAutoWiredParameters($parameters);
// $result: $thisДругие методы ControllerBinder
appendAutoWiredParameter()appendSourcesParametersToMap()buildForFunction()buildForMethod()getArgs()Возвращает список параметров метода, которые возможно использовать в call_user_func_array().getAutoWiredParameters()getConfiguration()getController()getInstance()getMethod()getMethodParams()Возвращает список параметров метода.getSourcesParametersToMap()
setAutoWiredParameters() есть и у других классов модуля «Главный модуль»: Binder.
Исходный файл: source/main/lib/engine/autowire/controllerbinder.php:110

