Commit bca3e95c by Carsten Brandt

reverted commit about aliases in debug and gii module

not needed when installed via composer and application config loads composer extensions correctly
parent f6ba1f00
...@@ -53,7 +53,6 @@ class Module extends \yii\base\Module ...@@ -53,7 +53,6 @@ class Module extends \yii\base\Module
public function init() public function init()
{ {
Yii::setAlias('@yii/debug', __DIR__);
parent::init(); parent::init();
$this->dataPath = Yii::getAlias($this->dataPath); $this->dataPath = Yii::getAlias($this->dataPath);
$this->logTarget = Yii::$app->getLog()->targets['debug'] = new LogTarget($this); $this->logTarget = Yii::$app->getLog()->targets['debug'] = new LogTarget($this);
......
...@@ -96,7 +96,6 @@ class Module extends \yii\base\Module ...@@ -96,7 +96,6 @@ class Module extends \yii\base\Module
*/ */
public function init() public function init()
{ {
Yii::setAlias('@yii/gii', __DIR__);
parent::init(); parent::init();
foreach (array_merge($this->coreGenerators(), $this->generators) as $id => $config) { foreach (array_merge($this->coreGenerators(), $this->generators) as $id => $config) {
$this->generators[$id] = Yii::createObject($config); $this->generators[$id] = Yii::createObject($config);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment