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

