diff --git a/src/Tasks/SubsiteMigrateFileTask.php b/src/Tasks/SubsiteMigrateFileTask.php index c00c7764..2904b807 100644 --- a/src/Tasks/SubsiteMigrateFileTask.php +++ b/src/Tasks/SubsiteMigrateFileTask.php @@ -4,9 +4,25 @@ use SilverStripe\Dev\Tasks\MigrateFileTask; use SilverStripe\Subsites\Model\Subsite; +use SilverStripe\Dev\Deprecation; +/** + * @deprecated 2.8.0 Will be removed without equivalent functionality to replace it + */ class SubsiteMigrateFileTask extends MigrateFileTask { + public function __construct() + { + Deprecation::withNoReplacement(function () { + Deprecation::notice( + '2.8.0', + 'Will be removed without equivalent functionality to replace it', + Deprecation::SCOPE_CLASS + ); + }); + parent::__construct(); + } + public function run($request) { $origDisableSubsiteFilter = Subsite::$disable_subsite_filter;