Applying a recipe includes various configuration-related tasks:
config/install
and config/optional
. Since the recipe itself can change the conditions for optional configuration, calculation of installable optional configuration needs to take into account all configuration provided or installed by the recipe.There are two potentially applicable core classes: ConfigInstaller
, used for installing extension-provided config, and ConfigImporter
), used mainly in staging configuration between environments. Which is the better choice here?
In some ways ConfigInstaller
seems like the more obvious choice, since it's already specialized for installing from extensions. For example, it includes logic for determining what optional config is installable.
But it also lacks key functionality. Built to a more comprehensive spec, ConfigImporter
has robust support for updating existing config. And for optional config handling, there's already a use case for generalizing it: ConfigInstaller
:
#2960888: Make config/install and config/optional methods reusable for config update use case β
.
Active
11.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.