瀏覽代碼

fix(src): 非sixshop包应该跳过

runphp 7 月之前
父節點
當前提交
fdf700b53b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Plugin.php

+ 1 - 1
src/Plugin.php

@@ -34,7 +34,7 @@ class Plugin implements PluginInterface, EventSubscriberInterface
         $package = $event->getOperation()->getPackage();
         $extra = $package->getExtra();
         if (!isset($extra['sixshop'])) {
-            throw new \RuntimeException('SixShop extension must have "sixshop" extra section.');
+            return true;
         }
         if (!isset($extra['sixshop']['id']) || !isset($extra['sixshop']['class'])) {
             throw new \RuntimeException('Invalid sixshop extension configuration');