fromholdio / silverstripe-empty-extension
Installs: 95
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:silverstripe-vendormodule
Requires
- silverstripe/framework: ~4.1 || ~5.0
This package is auto-updated.
Last update: 2024-12-06 10:53:24 UTC
README
Sometimes third-party modules will apply extensions by default, which you would rather they didn't.
However there isn't a straight-forward mechanism to un-apply the extensions or to remove/replace the config.yml block that is applying them.
This is a super simple module, which contains an empty extension, which can then be used in inconjunction with the Injector to simply replace the extension you don't want.
Requires Silverstripe 4 or 5+.
For example:
SilverStripe\Core\Injector\Injector: Namespace\ExtensionClassToBeReplaced: class: Fromholdio\EmptyExtension\EmptyExtension