From 3e2e8996859fe880eb772e9ace13d03b3f432d96 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Wed, 21 Aug 2024 12:14:18 +1200 Subject: [PATCH] API Deprecate extension to be replaced with config --- src/CampaignAdminExtension.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/CampaignAdminExtension.php b/src/CampaignAdminExtension.php index 70ecbb5..4d2ea60 100644 --- a/src/CampaignAdminExtension.php +++ b/src/CampaignAdminExtension.php @@ -4,13 +4,23 @@ use SilverStripe\Admin\LeftAndMain; use SilverStripe\Core\Extension; +use SilverStripe\Dev\Deprecation; use SilverStripe\View\Requirements; /** * @extends Extension + * @deprecated 5.3.0 Will be replaced with YAML configuration */ class CampaignAdminExtension extends Extension { + 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::add_i18n_javascript('silverstripe/campaign-admin: client/lang', false);