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);