diff --git a/extensions/debug/Module.php b/extensions/debug/Module.php index e75d14b..79e2db6 100644 --- a/extensions/debug/Module.php +++ b/extensions/debug/Module.php @@ -53,6 +53,7 @@ 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 ab840a0..b50847d 100644 --- a/extensions/gii/Module.php +++ b/extensions/gii/Module.php @@ -96,6 +96,7 @@ 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);