コード例 #1
0
 public static function removeDependencyByAddonID($targetID, $requiredID)
 {
     $target = AddonManager::getFromID($targetID);
     if ($target === false) {
         return false;
     }
     $required = AddonManager::getFromID($requiredID);
     if ($required === false) {
         return false;
     }
     DependencyManager::removeDependencyByAddon($target, $required);
 }