diff --git a/lib/basis.php b/lib/basis.php index edba5aa..8e6994d 100644 --- a/lib/basis.php +++ b/lib/basis.php @@ -96,6 +96,7 @@ final protected function executeBasis() { $this->readUsedTraits(); $this->includeModules(); + $this->configurate(); $this->checkAutomaticParams(); $this->checkParams(); $this->startAjax(); diff --git a/lib/basisrouter.php b/lib/basisrouter.php index 3fd9d95..a3cea27 100644 --- a/lib/basisrouter.php +++ b/lib/basisrouter.php @@ -163,6 +163,7 @@ protected function executeMain() final public function executeBasis() { $this->includeModules(); + $this->configurate(); $this->checkAutomaticParams(); $this->checkParams(); $this->startAjax(); diff --git a/lib/traits/common.php b/lib/traits/common.php index ab465b0..3f67e28 100644 --- a/lib/traits/common.php +++ b/lib/traits/common.php @@ -88,6 +88,16 @@ public function includeModules() } } + /** + * Configuration component before it is executed. + * + * Method called after includeModules(), before checkParams(). + */ + protected function configurate() + { + + } + /** * @throws \Bitrix\Main\ArgumentNullException */