Skip to content

Commit

Permalink
+ reinclude main config in StartController
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Oct 17, 2016
1 parent a6b26f5 commit 9e02ac4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/controllers/StartController.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ class StartController extends CommonController
*/
public function actionMake()
{
self::$started = true;
$this->getRootDir();
$this->takeConfig()->includeConfig('.hidev/config.yml');
$this->includeMainConfig();
if (file_exists('.hidev/config-local.yml')) {
$this->takeConfig()->includeConfig('.hidev/config-local.yml');
}
Expand All @@ -47,7 +48,12 @@ public function actionMake()
$this->requireAll();
$this->includeAll();
$this->loadConfig();
self::$started = true;
$this->includeMainConfig();
}

public function includeMainConfig()
{
$this->takeConfig()->includeConfig('.hidev/config.yml');
}

public function addAutoloader()
Expand Down

0 comments on commit 9e02ac4

Please sign in to comment.