@@ -87,7 +87,7 @@ class SSViewer implements Flushable
8787 *
8888 * @config
8989 * @var string
90- * @deprecated 5.4.0 Will be moved to SilverStripe\View \SSTemplateEngine.global_key
90+ * @deprecated 5.4.0 Will be moved to SilverStripe\TemplateEngine \SSTemplateEngine.global_key
9191 */
9292 private static $ global_key = '$CurrentReadingMode, $CurrentUser.ID ' ;
9393
@@ -136,31 +136,31 @@ class SSViewer implements Flushable
136136 * List of items being processed
137137 *
138138 * @var array
139- * @deprecated 5.4.0 Will be moved to SilverStripe\View \SSTemplateEngine
139+ * @deprecated 5.4.0 Will be moved to SilverStripe\TemplateEngine \SSTemplateEngine
140140 */
141141 protected static $ topLevel = [];
142142
143143 /**
144144 * List of templates to select from
145145 *
146146 * @var array
147- * @deprecated 5.4.0 Will be moved to SilverStripe\View \SSTemplateEngine
147+ * @deprecated 5.4.0 Will be moved to SilverStripe\TemplateEngine \SSTemplateEngine
148148 */
149149 protected $ templates = null ;
150150
151151 /**
152152 * Absolute path to chosen template file
153153 *
154154 * @var string
155- * @deprecated 5.4.0 Will be moved to SilverStripe\View \SSTemplateEngine
155+ * @deprecated 5.4.0 Will be moved to SilverStripe\TemplateEngine \SSTemplateEngine
156156 */
157157 protected $ chosen = null ;
158158
159159 /**
160160 * Templates to use when looking up 'Layout' or 'Content'
161161 *
162162 * @var array
163- * @deprecated 5.4.0 Will be moved to SilverStripe\View \SSTemplateEngine
163+ * @deprecated 5.4.0 Will be moved to SilverStripe\TemplateEngine \SSTemplateEngine
164164 */
165165 protected $ subTemplates = [];
166166
@@ -171,13 +171,13 @@ class SSViewer implements Flushable
171171
172172 /**
173173 * @var TemplateParser
174- * @deprecated 5.4.0 Will be moved to SilverStripe\View \SSTemplateEngine
174+ * @deprecated 5.4.0 Will be moved to SilverStripe\TemplateEngine \SSTemplateEngine
175175 */
176176 protected $ parser ;
177177
178178 /**
179179 * @var CacheInterface
180- * @deprecated 5.4.0 Will be moved to SilverStripe\View \SSTemplateEngine
180+ * @deprecated 5.4.0 Will be moved to SilverStripe\TemplateEngine \SSTemplateEngine
181181 */
182182 protected $ partialCacheStore = null ;
183183
@@ -216,11 +216,11 @@ public function __construct($templates, TemplateParser $parser = null)
216216
217217 /**
218218 * Triggered early in the request when someone requests a flush.
219- * @deprecated 5.4.0 Will be replaced with SilverStripe\View \SSTemplateEngine::flush()
219+ * @deprecated 5.4.0 Will be replaced with SilverStripe\TemplateEngine \SSTemplateEngine::flush()
220220 */
221221 public static function flush ()
222222 {
223- Deprecation::noticeWithNoReplacment ('5.4.0 ' , 'Will be replaced with SilverStripe\View \SSTemplateEngine::flush() ' );
223+ Deprecation::noticeWithNoReplacment ('5.4.0 ' , 'Will be replaced with SilverStripe\TemplateEngine \SSTemplateEngine::flush() ' );
224224 SSViewer::flush_template_cache (true );
225225 SSViewer::flush_cacheblock_cache (true );
226226 }
@@ -231,11 +231,11 @@ public static function flush()
231231 * @param string $content The template content
232232 * @param bool|void $cacheTemplate Whether or not to cache the template from string
233233 * @return SSViewer
234- * @deprecated 5.4.0 Will be replaced with SilverStripe\View \SSTemplateEngine::renderString()
234+ * @deprecated 5.4.0 Will be replaced with SilverStripe\TemplateEngine \SSTemplateEngine::renderString()
235235 */
236236 public static function fromString ($ content , $ cacheTemplate = null )
237237 {
238- Deprecation::noticeWithNoReplacment ('5.4.0 ' , 'Will be replaced with SilverStripe\View \SSTemplateEngine::renderString() ' );
238+ Deprecation::noticeWithNoReplacment ('5.4.0 ' , 'Will be replaced with SilverStripe\TemplateEngine \SSTemplateEngine::renderString() ' );
239239 $ viewer = SSViewer_FromString::create ($ content );
240240 if ($ cacheTemplate !== null ) {
241241 $ viewer ->setCacheTemplate ($ cacheTemplate );
@@ -400,11 +400,11 @@ public static function setRewriteHashLinksDefault($rewrite)
400400
401401 /**
402402 * @param string|array $templates
403- * @deprecated 5.4.0 Will be replaced with SilverStripe\View \SSTemplateEngine::setTemplate()
403+ * @deprecated 5.4.0 Will be replaced with SilverStripe\TemplateEngine \SSTemplateEngine::setTemplate()
404404 */
405405 public function setTemplate ($ templates )
406406 {
407- Deprecation::noticeWithNoReplacment ('5.4.0 ' , 'Will be replaced with SilverStripe\View \SSTemplateEngine::setTemplate() ' );
407+ Deprecation::noticeWithNoReplacment ('5.4.0 ' , 'Will be replaced with SilverStripe\TemplateEngine \SSTemplateEngine::setTemplate() ' );
408408 $ this ->templates = $ templates ;
409409 $ this ->chosen = $ this ->chooseTemplate ($ templates );
410410 $ this ->subTemplates = [];
@@ -427,23 +427,23 @@ public static function chooseTemplate($templates)
427427 * Set the template parser that will be used in template generation
428428 *
429429 * @param TemplateParser $parser
430- * @deprecated 5.4.0 Will be replaced with SilverStripe\View \SSTemplateEngine::setParser()
430+ * @deprecated 5.4.0 Will be replaced with SilverStripe\TemplateEngine \SSTemplateEngine::setParser()
431431 */
432432 public function setParser (TemplateParser $ parser )
433433 {
434- Deprecation::noticeWithNoReplacment ('5.4.0 ' , 'Will be replaced with SilverStripe\View \SSTemplateEngine::setParser() ' );
434+ Deprecation::noticeWithNoReplacment ('5.4.0 ' , 'Will be replaced with SilverStripe\TemplateEngine \SSTemplateEngine::setParser() ' );
435435 $ this ->parser = $ parser ;
436436 }
437437
438438 /**
439439 * Returns the parser that is set for template generation
440440 *
441441 * @return TemplateParser
442- * @deprecated 5.4.0 Will be replaced with SilverStripe\View \SSTemplateEngine::getParser()
442+ * @deprecated 5.4.0 Will be replaced with SilverStripe\TemplateEngine \SSTemplateEngine::getParser()
443443 */
444444 public function getParser ()
445445 {
446- Deprecation::noticeWithNoReplacment ('5.4.0 ' , 'Will be replaced with SilverStripe\View \SSTemplateEngine::getParser() ' );
446+ Deprecation::noticeWithNoReplacment ('5.4.0 ' , 'Will be replaced with SilverStripe\TemplateEngine \SSTemplateEngine::getParser() ' );
447447 if (!$ this ->parser ) {
448448 $ this ->setParser (Injector::inst ()->get ('SilverStripe \\View \\SSTemplateParser ' ));
449449 }
@@ -456,11 +456,11 @@ public function getParser()
456456 * @param array|string $templates
457457 *
458458 * @return bool
459- * @deprecated 5.4.0 Will be replaced with SilverStripe\View \SSTemplateEngine::hasTemplate()
459+ * @deprecated 5.4.0 Will be replaced with SilverStripe\TemplateEngine \SSTemplateEngine::hasTemplate()
460460 */
461461 public static function hasTemplate ($ templates )
462462 {
463- Deprecation::noticeWithNoReplacment ('5.4.0 ' , 'Will be replaced with SilverStripe\View \SSTemplateEngine::hasTemplate() ' );
463+ Deprecation::noticeWithNoReplacment ('5.4.0 ' , 'Will be replaced with SilverStripe\TemplateEngine \SSTemplateEngine::hasTemplate() ' );
464464 return (bool )ThemeResourceLoader::inst ()->findTemplate ($ templates , SSViewer::get_themes ());
465465 }
466466
@@ -504,11 +504,11 @@ public static function getTemplateFileByType($identifier, $type = null)
504504 *
505505 * @param bool $force Set this to true to force a re-flush. If left to false, flushing
506506 * may only be performed once a request.
507- * @deprecated 5.4.0 Will be replaced with SilverStripe\View \SSTemplateEngine::flushTemplateCache()
507+ * @deprecated 5.4.0 Will be replaced with SilverStripe\TemplateEngine \SSTemplateEngine::flushTemplateCache()
508508 */
509509 public static function flush_template_cache ($ force = false )
510510 {
511- Deprecation::noticeWithNoReplacment ('5.4.0 ' , 'Will be replaced with SilverStripe\View \SSTemplateEngine::flushTemplateCache() ' );
511+ Deprecation::noticeWithNoReplacment ('5.4.0 ' , 'Will be replaced with SilverStripe\TemplateEngine \SSTemplateEngine::flushTemplateCache() ' );
512512 if (!SSViewer::$ template_cache_flushed || $ force ) {
513513 $ dir = dir (TEMP_PATH );
514514 while (false !== ($ file = $ dir ->read ())) {
@@ -527,11 +527,11 @@ public static function flush_template_cache($force = false)
527527 *
528528 * @param bool $force Set this to true to force a re-flush. If left to false, flushing
529529 * may only be performed once a request.
530- * @deprecated 5.4.0 Will be replaced with SilverStripe\View \SSTemplateEngine::flushCacheBlockCache()
530+ * @deprecated 5.4.0 Will be replaced with SilverStripe\TemplateEngine \SSTemplateEngine::flushCacheBlockCache()
531531 */
532532 public static function flush_cacheblock_cache ($ force = false )
533533 {
534- Deprecation::noticeWithNoReplacment ('5.4.0 ' , 'Will be replaced with SilverStripe\View \SSTemplateEngine::flushCacheBlockCache() ' );
534+ Deprecation::noticeWithNoReplacment ('5.4.0 ' , 'Will be replaced with SilverStripe\TemplateEngine \SSTemplateEngine::flushCacheBlockCache() ' );
535535 if (!SSViewer::$ cacheblock_cache_flushed || $ force ) {
536536 $ cache = Injector::inst ()->get (CacheInterface::class . '.cacheblock ' );
537537 $ cache ->clear ();
@@ -545,23 +545,23 @@ public static function flush_cacheblock_cache($force = false)
545545 * Set the cache object to use when storing / retrieving partial cache blocks.
546546 *
547547 * @param CacheInterface $cache
548- * @deprecated 5.4.0 Will be replaced with SilverStripe\View \SSTemplateEngine::setPartialCacheStore()
548+ * @deprecated 5.4.0 Will be replaced with SilverStripe\TemplateEngine \SSTemplateEngine::setPartialCacheStore()
549549 */
550550 public function setPartialCacheStore ($ cache )
551551 {
552- Deprecation::noticeWithNoReplacment ('5.4.0 ' , 'Will be replaced with SilverStripe\View \SSTemplateEngine::setPartialCacheStore() ' );
552+ Deprecation::noticeWithNoReplacment ('5.4.0 ' , 'Will be replaced with SilverStripe\TemplateEngine \SSTemplateEngine::setPartialCacheStore() ' );
553553 $ this ->partialCacheStore = $ cache ;
554554 }
555555
556556 /**
557557 * Get the cache object to use when storing / retrieving partial cache blocks.
558558 *
559559 * @return CacheInterface
560- * @deprecated 5.4.0 Will be replaced with SilverStripe\View \SSTemplateEngine::getPartialCacheStore()
560+ * @deprecated 5.4.0 Will be replaced with SilverStripe\TemplateEngine \SSTemplateEngine::getPartialCacheStore()
561561 */
562562 public function getPartialCacheStore ()
563563 {
564- Deprecation::noticeWithNoReplacment ('5.4.0 ' , 'Will be replaced with SilverStripe\View \SSTemplateEngine::getPartialCacheStore() ' );
564+ Deprecation::noticeWithNoReplacment ('5.4.0 ' , 'Will be replaced with SilverStripe\TemplateEngine \SSTemplateEngine::getPartialCacheStore() ' );
565565 if ($ this ->partialCacheStore ) {
566566 return $ this ->partialCacheStore ;
567567 }
@@ -591,11 +591,11 @@ public function includeRequirements($incl = true)
591591 * @param array $underlay Any variables to layer underneath the scope
592592 * @param SSViewer_Scope|null $inheritedScope The current scope of a parent template including a sub-template
593593 * @return string The result of executing the template
594- * @deprecated 5.4.0 Will be replaced with SilverStripe\View \SSTemplateEngine::includeGeneratedTemplate()
594+ * @deprecated 5.4.0 Will be replaced with SilverStripe\TemplateEngine \SSTemplateEngine::includeGeneratedTemplate()
595595 */
596596 protected function includeGeneratedTemplate ($ cacheFile , $ item , $ overlay , $ underlay , $ inheritedScope = null )
597597 {
598- Deprecation::noticeWithNoReplacment ('5.4.0 ' , 'Will be replaced with SilverStripe\View \SSTemplateEngine::includeGeneratedTemplate() ' );
598+ Deprecation::noticeWithNoReplacment ('5.4.0 ' , 'Will be replaced with SilverStripe\TemplateEngine \SSTemplateEngine::includeGeneratedTemplate() ' );
599599 if (isset ($ _GET ['showtemplate ' ]) && $ _GET ['showtemplate ' ] && Permission::check ('ADMIN ' )) {
600600 $ lines = file ($ cacheFile ?? '' );
601601 echo "<h2>Template: $ cacheFile</h2> " ;
@@ -724,11 +724,11 @@ public function process($item, $arguments = null, $inheritedScope = null)
724724 * @param string $subtemplate Sub-template to use
725725 *
726726 * @return array|null
727- * @deprecated 5.4.0 Will be replaced with SilverStripe\View \SSTemplateEngine::getSubtemplateFor()
727+ * @deprecated 5.4.0 Will be replaced with SilverStripe\TemplateEngine \SSTemplateEngine::getSubtemplateFor()
728728 */
729729 protected function getSubtemplateFor ($ subtemplate )
730730 {
731- Deprecation::noticeWithNoReplacment ('5.4.0 ' , 'Will be replaced with SilverStripe\View \SSTemplateEngine::getSubtemplateFor() ' );
731+ Deprecation::noticeWithNoReplacment ('5.4.0 ' , 'Will be replaced with SilverStripe\TemplateEngine \SSTemplateEngine::getSubtemplateFor() ' );
732732 // Get explicit subtemplate name
733733 if (isset ($ this ->subTemplates [$ subtemplate ])) {
734734 return $ this ->subTemplates [$ subtemplate ];
@@ -766,13 +766,13 @@ function ($template) {
766766 * @param bool $globalRequirements
767767 *
768768 * @return string Evaluated result
769- * @deprecated 5.4.0 Will be replaced with SilverStripe\View \SSTemplateEngine::execute_template()
769+ * @deprecated 5.4.0 Will be replaced with SilverStripe\TemplateEngine \SSTemplateEngine::execute_template()
770770 */
771771 public static function execute_template ($ template , $ data , $ arguments = null , $ scope = null , $ globalRequirements = false )
772772 {
773773 Deprecation::noticeWithNoReplacment (
774774 '5.4.0 ' ,
775- 'Will be replaced with SilverStripe\View \SSTemplateEngine::execute_template() '
775+ 'Will be replaced with SilverStripe\TemplateEngine \SSTemplateEngine::execute_template() '
776776 );
777777 $ v = SSViewer::create ($ template );
778778
@@ -803,11 +803,11 @@ public static function execute_template($template, $data, $arguments = null, $sc
803803 * @param bool $globalRequirements
804804 *
805805 * @return string Evaluated result
806- * @deprecated 5.4.0 Will be replaced with SilverStripe\View \SSTemplateEngine::renderString()
806+ * @deprecated 5.4.0 Will be replaced with SilverStripe\TemplateEngine \SSTemplateEngine::renderString()
807807 */
808808 public static function execute_string ($ content , $ data , $ arguments = null , $ globalRequirements = false )
809809 {
810- Deprecation::noticeWithNoReplacment ('5.4.0 ' , 'Will be replaced with SilverStripe\View \SSTemplateEngine::renderString() ' );
810+ Deprecation::noticeWithNoReplacment ('5.4.0 ' , 'Will be replaced with SilverStripe\TemplateEngine \SSTemplateEngine::renderString() ' );
811811 $ v = SSViewer::fromString ($ content );
812812
813813 if ($ globalRequirements ) {
@@ -832,11 +832,11 @@ public static function execute_string($content, $data, $arguments = null, $globa
832832 * @param string $content The template contents
833833 * @param string $template The template file name
834834 * @return string
835- * @deprecated 5.4.0 Will be replaced with SilverStripe\View \SSTemplateEngine::parseTemplateContent()
835+ * @deprecated 5.4.0 Will be replaced with SilverStripe\TemplateEngine \SSTemplateEngine::parseTemplateContent()
836836 */
837837 public function parseTemplateContent ($ content , $ template = "" )
838838 {
839- Deprecation::noticeWithNoReplacment ('5.4.0 ' , 'Will be replaced with SilverStripe\View \SSTemplateEngine::parseTemplateContent() ' );
839+ Deprecation::noticeWithNoReplacment ('5.4.0 ' , 'Will be replaced with SilverStripe\TemplateEngine \SSTemplateEngine::parseTemplateContent() ' );
840840 return $ this ->getParser ()->compileString (
841841 $ content ,
842842 $ template ,
0 commit comments