Browse Source

reverted commit about aliases in debug and gii module

not needed when installed via composer and application config loads
composer extensions correctly
tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
bca3e95c86
  1. 1
      extensions/debug/Module.php
  2. 1
      extensions/gii/Module.php

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

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

Loading…
Cancel
Save