From bca3e95c86be39ac87634cf2e78bb724e26340a6 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Tue, 5 Nov 2013 14:11:42 +0100 Subject: [PATCH] reverted commit about aliases in debug and gii module not needed when installed via composer and application config loads composer extensions correctly --- extensions/debug/Module.php | 1 - extensions/gii/Module.php | 1 - 2 files changed, 2 deletions(-) diff --git a/extensions/debug/Module.php b/extensions/debug/Module.php index 79e2db6..e75d14b 100644 --- a/extensions/debug/Module.php +++ b/extensions/debug/Module.php @@ -53,7 +53,6 @@ class Module extends \yii\base\Module public function init() { - Yii::setAlias('@yii/debug', __DIR__); parent::init(); $this->dataPath = Yii::getAlias($this->dataPath); $this->logTarget = Yii::$app->getLog()->targets['debug'] = new LogTarget($this); diff --git a/extensions/gii/Module.php b/extensions/gii/Module.php index b50847d..ab840a0 100644 --- a/extensions/gii/Module.php +++ b/extensions/gii/Module.php @@ -96,7 +96,6 @@ class Module extends \yii\base\Module */ public function init() { - Yii::setAlias('@yii/gii', __DIR__); parent::init(); foreach (array_merge($this->coreGenerators(), $this->generators) as $id => $config) { $this->generators[$id] = Yii::createObject($config);