From 4d3042e89821c1ffa9e73d3e1f7a38a04d555626 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Tue, 5 Nov 2024 18:38:58 +1300 Subject: [PATCH] API Use class from new template engine module (#654) --- 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; /**