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);