Skip to content

Commit

Permalink
revert Yii include hirarchy #1897
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar committed Jan 23, 2019
1 parent a8c4581 commit d15fe56
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/base/Boot.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,6 @@ public function run()
*/
public function applicationConsole()
{
$this->includeYii();

$this->setIsCli(true);
$config = $this->getConfigArray();
$config['defaultRoute'] = 'help';
Expand All @@ -226,6 +224,8 @@ public function applicationConsole()
}
}

$this->includeYii();

$baseUrl = null;
if (isset($config['consoleBaseUrl'])) {
$baseUrl = $config['consoleBaseUrl'];
Expand Down Expand Up @@ -258,8 +258,8 @@ public function applicationConsole()
*/
public function applicationWeb()
{
$this->includeYii();
$config = $this->getConfigArray();
$this->includeYii();
$mergedConfig = ArrayHelper::merge($config, ['bootstrap' => ['luya\web\Bootstrap']]);
$this->app = new WebApplication($mergedConfig);
if (!$this->mockOnly) {
Expand Down

0 comments on commit d15fe56

Please sign in to comment.