Skip to content

Commit

Permalink
Merge pull request silverstripe#507 from creative-commoners/pulls/2/depr
Browse files Browse the repository at this point in the history
API Deprecations
  • Loading branch information
GuySartorelli authored Feb 7, 2023
2 parents 7d8909a + 412b270 commit d11124f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/Tasks/SubsiteMigrateFileTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d11124f

Please sign in to comment.