From e8396370f10656bdd4b76e605330c3c1e9704648 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Tue, 29 Oct 2024 17:58:16 +1300 Subject: [PATCH] API Use updated Versioned and Staged classes --- src/Filters/RateLimitFilter.php | 2 +- src/VersionFeed.php | 2 +- tests/VersionFeedFunctionalTest.php | 2 +- tests/VersionFeedTest.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Filters/RateLimitFilter.php b/src/Filters/RateLimitFilter.php index 12b2a1b..d46ca6b 100644 --- a/src/Filters/RateLimitFilter.php +++ b/src/Filters/RateLimitFilter.php @@ -5,7 +5,7 @@ use SilverStripe\Core\Config\Config; use SilverStripe\Control\Controller; use SilverStripe\Control\HTTPResponse_Exception; -use SilverStripe\Versioned\Versioned; +use SilverStripe\Versioned\Mode\Versioned; use SilverStripe\Core\Injector\Injector; use SilverStripe\Core\Kernel; diff --git a/src/VersionFeed.php b/src/VersionFeed.php index a412ac2..92e6836 100644 --- a/src/VersionFeed.php +++ b/src/VersionFeed.php @@ -13,7 +13,7 @@ use SilverStripe\View\Parsers\HtmlDiff; use SilverStripe\CMS\Model\SiteTree; use SilverStripe\Core\Extension; -use SilverStripe\Versioned\Versioned_Version; +use SilverStripe\Versioned\Mode\Versioned_Version; /** * @extends Extension diff --git a/tests/VersionFeedFunctionalTest.php b/tests/VersionFeedFunctionalTest.php index 91521bc..448998b 100644 --- a/tests/VersionFeedFunctionalTest.php +++ b/tests/VersionFeedFunctionalTest.php @@ -12,7 +12,7 @@ use SilverStripe\Core\Injector\Injector; use SilverStripe\Dev\FunctionalTest; use SilverStripe\SiteConfig\SiteConfig; -use SilverStripe\Versioned\Versioned; +use SilverStripe\Versioned\Mode\Versioned; use SilverStripe\VersionFeed\Filters\CachedContentFilter; use SilverStripe\VersionFeed\Filters\RateLimitFilter; use SilverStripe\VersionFeed\VersionFeed; diff --git a/tests/VersionFeedTest.php b/tests/VersionFeedTest.php index eb98dcc..c9fb176 100644 --- a/tests/VersionFeedTest.php +++ b/tests/VersionFeedTest.php @@ -6,7 +6,7 @@ use SilverStripe\CMS\Controllers\ContentController; use SilverStripe\CMS\Model\SiteTree; use SilverStripe\Dev\SapphireTest; -use SilverStripe\Versioned\Versioned; +use SilverStripe\Versioned\Mode\Versioned; use SilverStripe\VersionFeed\VersionFeed; use SilverStripe\VersionFeed\VersionFeedController;