fromholdio/silverstripe-empty-extension

Installs: 100

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:silverstripe-vendormodule

1.1.1 2024-01-06 08:47 UTC

This package is auto-updated.

Last update: 2025-01-06 11:02:36 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