diff --git a/src/Extensions/ShareDraftContentRequirementsExtension.php b/src/Extensions/ShareDraftContentRequirementsExtension.php index a90a510..0030cc4 100644 --- a/src/Extensions/ShareDraftContentRequirementsExtension.php +++ b/src/Extensions/ShareDraftContentRequirementsExtension.php @@ -3,14 +3,24 @@ namespace SilverStripe\ShareDraftContent\Extensions; use SilverStripe\CMS\Controllers\CMSMain; +use SilverStripe\Dev\Deprecation; use SilverStripe\ORM\DataExtension; use SilverStripe\View\Requirements; /** * @extends DataExtension + * @deprecated 5.3.0 Will be replaced with YAML configuration */ class ShareDraftContentRequirementsExtension extends DataExtension { + public function __construct() + { + Deprecation::withNoReplacement( + fn () => Deprecation::notice('5.3.0', 'Will be replaced with YAML configuration', Deprecation::SCOPE_CLASS) + ); + parent::__construct(); + } + public function init() { Requirements::css('silverstripe/sharedraftcontent: client/dist/styles/bundle-cms.css');