mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
Merge pull request #507 from creative-commoners/pulls/2/depr
API Deprecations
This commit is contained in:
commit
d11124f576
@ -4,9 +4,25 @@ namespace SilverStripe\Subsites\Tasks;
|
||||
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user