From 4aea5a5146bdfdc8f2bc69e83f6c5601f2bfbfe3 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Fri, 13 Sep 2024 17:18:33 +1200 Subject: [PATCH] API Deprecate API that will be removed (#257) --- src/Tasks/ContentReviewOwnerMigrationTask.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/Tasks/ContentReviewOwnerMigrationTask.php b/src/Tasks/ContentReviewOwnerMigrationTask.php index f3536b6..d2b6491 100644 --- a/src/Tasks/ContentReviewOwnerMigrationTask.php +++ b/src/Tasks/ContentReviewOwnerMigrationTask.php @@ -4,13 +4,27 @@ use SilverStripe\Control\HTTPRequest; use SilverStripe\Dev\BuildTask; +use SilverStripe\Dev\Deprecation; use SilverStripe\ORM\DB; /** * Task which migrates the ContentReview Module's SiteTree->OwnerID column to a new column name. + * @deprecated 5.4.0 Will be removed without equivalent functionality to replace it */ class ContentReviewOwnerMigrationTask extends BuildTask { + public function __construct() + { + parent::__construct(); + Deprecation::withNoReplacement(function () { + Deprecation::notice( + '5.4.0', + 'Will be removed without equivalent functionality to replace it', + Deprecation::SCOPE_CLASS + ); + }); + } + /** * @param HTTPRequest $request */