diff --git a/src/Plugin.php b/src/Plugin.php index 29de0d8..3e3d459 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -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()