Problem/Motivation

FeaturesManager::getExistingPackages() is used to detect existing packages. It is used in two plugins: "existing" and "packages". Both relate to packages for the current bundle.

However, ::getExistingPackages() returns all features modules, regardless of bundle.

Proposed resolution

  • Add a $bundle argument to FeaturesManagerInterface::isFeatureModule(), allowing restricting to a given bundle.
  • in FeaturesManager:getExistingPackages(), load the current bundle and pass it to ::isFeatureModule().

API changes

New $bundle argument to FeaturesManagerInterface::isFeatureModule(), allowing restricting to a given bundle.

Comments

nedjo created an issue. See original summary.

  • nedjo committed 526aeb6 on 8.x-3.x
    Issue #2596063 by nedjo: FeaturesManager::getExistingPackages() should...
nedjo’s picture

Issue summary: View changes
nedjo’s picture

Status: Active » Fixed

See summary for implemented solution.

nedjo’s picture

Issue summary: View changes

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.