API Deprecate API that will be removed (#257)

This commit is contained in:
Guy Sartorelli 2024-09-13 17:18:33 +12:00 committed by GitHub
parent 9bba9ba4b7
commit 4aea5a5146
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,13 +4,27 @@ namespace SilverStripe\ContentReview\Tasks;
use SilverStripe\Control\HTTPRequest; use SilverStripe\Control\HTTPRequest;
use SilverStripe\Dev\BuildTask; use SilverStripe\Dev\BuildTask;
use SilverStripe\Dev\Deprecation;
use SilverStripe\ORM\DB; use SilverStripe\ORM\DB;
/** /**
* Task which migrates the ContentReview Module's SiteTree->OwnerID column to a new column name. * 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 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 * @param HTTPRequest $request
*/ */