Current Path : /var/www/www-root/data/www/monolith-realty.ru/bitrix/modules/main/lib/engine/ |
Current File : /var/www/www-root/data/www/monolith-realty.ru/bitrix/modules/main/lib/engine/fallbackaction.php |
<?php namespace Bitrix\Main\Engine; final class FallbackAction extends Action { public const ACTION_NAME = 'fallback'; public const ACTION_METHOD = 'fallbackAction'; /** @var string */ private $originalActionName; public function __construct($name, Controller $controller, $config = []) { $this->originalActionName = $name; parent::__construct(self::ACTION_NAME, $controller, $config); } protected function buildBinder() { if ($this->binder === null) { $controller = $this->getController(); $this->binder = AutoWire\ControllerBinder::buildForMethod($controller, self::ACTION_METHOD) ->setController($controller) ->setSourcesParametersToMap([ ['actionName' => $this->originalActionName] ]) ; } return $this; } }