From d90f78fe75da21447c4e09e085b172191c1aa50e Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Tue, 29 Oct 2024 17:58:00 +1300 Subject: [PATCH] API Use updated Versioned and Staged classes --- src/Model/Subsite.php | 2 +- src/Tasks/SubsiteCopyPagesTask.php | 2 +- tests/php/SiteTreeSubsitesTest.php | 2 +- tests/php/SubsitesVirtualPageTest.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Model/Subsite.php b/src/Model/Subsite.php index 8ac132fe..a0f88897 100644 --- a/src/Model/Subsite.php +++ b/src/Model/Subsite.php @@ -32,7 +32,7 @@ use SilverStripe\Security\Security; use SilverStripe\Subsites\Service\ThemeResolver; use SilverStripe\Subsites\State\SubsiteState; -use SilverStripe\Versioned\Versioned; +use SilverStripe\Versioned\Mode\Versioned; use UnexpectedValueException; use SilverStripe\Core\ClassInfo; use SilverStripe\Forms\GridField\GridFieldAddExistingAutocompleter; diff --git a/src/Tasks/SubsiteCopyPagesTask.php b/src/Tasks/SubsiteCopyPagesTask.php index 65940662..625caa38 100644 --- a/src/Tasks/SubsiteCopyPagesTask.php +++ b/src/Tasks/SubsiteCopyPagesTask.php @@ -9,7 +9,7 @@ use SilverStripe\ORM\DataObject; use SilverStripe\Subsites\Model\Subsite; use SilverStripe\Subsites\Pages\SubsitesVirtualPage; -use SilverStripe\Versioned\Versioned; +use SilverStripe\Versioned\Mode\Versioned; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; diff --git a/tests/php/SiteTreeSubsitesTest.php b/tests/php/SiteTreeSubsitesTest.php index adb65115..c851e905 100644 --- a/tests/php/SiteTreeSubsitesTest.php +++ b/tests/php/SiteTreeSubsitesTest.php @@ -23,7 +23,7 @@ use SilverStripe\Subsites\Tests\SiteTreeSubsitesTest\TestClassA; use SilverStripe\Subsites\Tests\SiteTreeSubsitesTest\TestClassB; use SilverStripe\Subsites\Tests\SiteTreeSubsitesTest\TestErrorPage; -use SilverStripe\Versioned\Versioned; +use SilverStripe\Versioned\Mode\Versioned; use SilverStripe\View\SSViewer; use TractorCow\Fluent\Extension\FluentSiteTreeExtension; use PHPUnit\Framework\Attributes\DataProvider; diff --git a/tests/php/SubsitesVirtualPageTest.php b/tests/php/SubsitesVirtualPageTest.php index bc00cd24..d17e1e1f 100644 --- a/tests/php/SubsitesVirtualPageTest.php +++ b/tests/php/SubsitesVirtualPageTest.php @@ -12,7 +12,7 @@ use SilverStripe\ORM\DB; use SilverStripe\Subsites\Model\Subsite; use SilverStripe\Subsites\Pages\SubsitesVirtualPage; -use SilverStripe\Versioned\Versioned; +use SilverStripe\Versioned\Mode\Versioned; class SubsitesVirtualPageTest extends BaseSubsiteTest {