You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the ManifestFileFinder only looks for files that are inside a directory with either a _config/ directory or _config.php file, because that's how it detects if something is "a module".
They need to have a _config.php file or a _config/ directory present
We should allow for directories with a composer.json file where the type is set to either silverstripe-vendormodule or silverstripe-theme to also count, since that's the type we say is necessary for modules and themes and some may not have a need for config.
Acceptance criteria
modules and themes don't need to have a _config/ directory or _config.php file to be detected as modules, including full manifest detection
the _config/ directory and _config.php file detection is left in place as a fallback
Any reason why we would wait for CMS 6 to do this change
Who knows if someone has a module that has the silverstripe-vendormodule type but they don't want to be considered a module, so their hacky way to do that was to not have the dir/file needed to pick it up?
Seems unlikely, but I'd take a risk-averse approach. There's very little risk for sure, but I'd argue that in this case the benefit of doing it in CMS 5 is so low that there's no harm in doing it for 6 and just not upsetting the few people that might be upset by it.
Currently the
ManifestFileFinder
only looks for files that are inside a directory with either a_config/
directory or_config.php
file, because that's how it detects if something is "a module".https://docs.silverstripe.org/en/5/getting_started/directory_structure/#module-structure also says
We should allow for directories with a
composer.json
file where the type is set to eithersilverstripe-vendormodule
orsilverstripe-theme
to also count, since that's the type we say is necessary for modules and themes and some may not have a need for config.Acceptance criteria
_config/
directory or_config.php
file to be detected as modules, including full manifest detection_config/
directory and_config.php
file detection is left in place as a fallbackPRs
The text was updated successfully, but these errors were encountered: