Legacy feature flags
Some modules in Front-Commerce use feature flags to enable or disable its features.
Feature flags are resolved by the
FeatureFlagLoader
which is typically overridden in the
contextEnhancer
of each module supporting a feature flag.
Creating a Feature Flag Module
To implement a feature flag in your module, you'll need to create and configure several files. In this guide, we will implement a feature flag that disable the wishlist feature, which is enabled by default by Front-Commerce's backend extensions (Magento2, Magento1 and Gezy).