Exemple #1
0
 /**
  * install plugin
  */
 public static function install()
 {
     if (!class_exists("CoreShop\\Version") || (int) \CoreShop\Version::getBuildNumber() < self::$requiredCoreShopBuild) {
         return 'You need CoreShop (at least build' . self::$requiredCoreShopBuild . ') to run this plugin.';
     }
     return 'Plugin has been successfully installed. Please reload Pimcore.';
 }
Exemple #2
0
 /**
  * Install Plugin
  */
 public static function install()
 {
     if (!class_exists("CoreShop\\Version") || (int) \CoreShop\Version::getBuildNumber() < self::$requiredCoreShopBuild) {
         return 'You need CoreShop (at least build' . self::$requiredCoreShopBuild . ') to run this plugin.';
     }
     if (class_exists("\\CoreShop\\Plugin")) {
         \CoreShop\Plugin::installPlugin(self::getShop()->getInstall());
     }
 }