Skip to content

Commit

Permalink
Method for configuration component before it is executed
Browse files Browse the repository at this point in the history
  • Loading branch information
niksamokhvalov committed Sep 14, 2015
1 parent 524ae8e commit af7a74c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/basis.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ final protected function executeBasis()
{
$this->readUsedTraits();
$this->includeModules();
$this->configurate();
$this->checkAutomaticParams();
$this->checkParams();
$this->startAjax();
Expand Down
1 change: 1 addition & 0 deletions lib/basisrouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ protected function executeMain()
final public function executeBasis()
{
$this->includeModules();
$this->configurate();
$this->checkAutomaticParams();
$this->checkParams();
$this->startAjax();
Expand Down
10 changes: 10 additions & 0 deletions lib/traits/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit af7a74c

Please sign in to comment.