method public final

ComponentController::run()

Класс: \Bitrix\Main\Engine\Component\ComponentController

Сигнатура

public final run(mixed $actionName, array<string|int, mixed> $sourceParametersList) : HttpResponse|mixed

Параметры

$actionName mixed
$sourceParametersList array<string|int, mixed>

Возвращаемое значение

HttpResponse|mixed

Как применяется в ComponentController

ComponentController::run() — метод класса \Bitrix\Main\Engine\Component\ComponentController модуля «Главный модуль».

Метод объекта: сначала нужен экземпляр ComponentController.

use Bitrix\Main\Engine\Component\ComponentController;

/** @var ComponentController $object */
$actionName = null;
$sourceParametersList = [];
$result = $object->run($actionName, $sourceParametersList);
// $result: HttpResponse|mixed

Другие методы ComponentController

run() есть и у других классов модуля «Главный модуль»: Application, Controller, DefaultController, HttpApplication, JsonController.

Исходный файл: source/main/lib/engine/component/componentcontroller.php:407

Что будем искать? Например,Продвижение