From 191b89e94a8e24f011380bc3aac7fd5b7b1c515b Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Mon, 4 Nov 2024 12:35:08 +1300 Subject: [PATCH] API Use class from new template engine module --- composer.json | 1 + src/Shortcodes/FileShortcodeProvider.php | 2 +- tests/php/ImageManipulationTest.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index c9b5b36d..3b3b0e64 100644 --- a/composer.json +++ b/composer.json @@ -21,6 +21,7 @@ "require": { "php": "^8.3", "silverstripe/framework": "^6", + "silverstripe/template-engine": "^1", "silverstripe/vendor-plugin": "^2", "symfony/filesystem": "^7.0", "intervention/image": "^3.7", diff --git a/src/Shortcodes/FileShortcodeProvider.php b/src/Shortcodes/FileShortcodeProvider.php index 2a9bcd27..f4b6a284 100644 --- a/src/Shortcodes/FileShortcodeProvider.php +++ b/src/Shortcodes/FileShortcodeProvider.php @@ -18,7 +18,7 @@ use SilverStripe\View\HTML; use SilverStripe\View\Parsers\ShortcodeHandler; use SilverStripe\View\Parsers\ShortcodeParser; -use SilverStripe\View\SSTemplateEngine; +use SilverStripe\TemplateEngine\SSTemplateEngine; use SilverStripe\View\SSViewer; use SilverStripe\View\ViewLayerData; diff --git a/tests/php/ImageManipulationTest.php b/tests/php/ImageManipulationTest.php index 22111d45..dfa669de 100644 --- a/tests/php/ImageManipulationTest.php +++ b/tests/php/ImageManipulationTest.php @@ -23,7 +23,7 @@ use SilverStripe\Core\Injector\Injector; use SilverStripe\Dev\SapphireTest; use PHPUnit\Framework\Attributes\DataProvider; -use SilverStripe\View\SSTemplateEngine; +use SilverStripe\TemplateEngine\SSTemplateEngine; use SilverStripe\View\ViewLayerData; /**