Skip to content

Commit

Permalink
API Deprecate API that will be removed (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Sep 13, 2024
1 parent 9bba9ba commit 4aea5a5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Tasks/ContentReviewOwnerMigrationTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 4aea5a5

Please sign in to comment.