mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
API Deprecations
This commit is contained in:
parent
7d8909ac6d
commit
412b2709d2
@ -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