Skip to content

Commit

Permalink
disabled require Yii.php because it sets Yii_ constants wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Sep 27, 2017
1 parent 32105a5 commit 35823f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,13 @@ public function onPostAutoloadDump(Event $event)
protected function initAutoload()
{
$dir = dirname(dirname(dirname(__DIR__)));
$yii = "$dir/yiisoft/yii2/Yii.php";
require_once "$dir/autoload.php";
/* XXX disabled because Yii.php sets YII_ constants
$yii = "$dir/yiisoft/yii2/Yii.php";
if (file_exists($yii)) {
require_once $yii;
}
*/
}

protected function scanPackages()
Expand Down

0 comments on commit 35823f1

Please sign in to comment.