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

