Browse Source

Fix up Icon helper depr

mscherer 2 years ago
parent
commit
85a1f5f76a
2 changed files with 6 additions and 6 deletions
  1. 5 5
      src/View/Helper/FormatHelper.php
  2. 1 1
      src/View/Helper/IconHelper.php

+ 5 - 5
src/View/Helper/FormatHelper.php

@@ -8,7 +8,7 @@ use Cake\View\StringTemplate;
 use Cake\View\View;
 use RuntimeException;
 use Shim\Utility\Inflector as ShimInflector;
-use Template\View\Helper\IconHelper;
+use Templating\View\Helper\IconHelper;
 
 /**
  * Format helper with basic HTML snippets
@@ -49,7 +49,7 @@ class FormatHelper extends Helper {
 	 */
 	public function __construct(View $View, array $config = []) {
 		if (class_exists(IconHelper::class)) {
-			$this->helpers[] = 'Template.Icon';
+			$this->helpers[] = 'Templating.Icon';
 		} else {
 			$this->helpers[] = 'Tools.Icon';
 		}
@@ -67,7 +67,7 @@ class FormatHelper extends Helper {
 	 *   'pro' => 'fa4:thumbs-up',
 	 *   'contra' => 'fa4:thumbs-down',
 	 *
-	 * @deprecated Use Template.IconSnippet helper instead.
+	 * @deprecated Use Templating.IconSnippet helper instead.
 	 *
 	 * @param mixed $value Boolish value
 	 * @param array<string, mixed> $options
@@ -88,7 +88,7 @@ class FormatHelper extends Helper {
 	 *   'prev' => 'fa4:arrow-left',
 	 *   'next' => 'fa4:arrow-right',
 	 *
-	 * @deprecated Use Template.IconSnippet helper instead.
+	 * @deprecated Use Templating.IconSnippet helper instead.
 	 *
 	 * @param array $neighbors (containing prev and next)
 	 * @param string $field Field as `Field` or `Model.field` syntax
@@ -201,7 +201,7 @@ class FormatHelper extends Helper {
 	 *   'yes' => 'fa4:check',
 	 *   'no' => 'fa4:times',
 	 *
-	 * @deprecated Use Template.IconSnippet helper instead.
+	 * @deprecated Use Templating.IconSnippet helper instead.
 	 *
 	 * @param int|bool $value Value
 	 * @param array<string, mixed> $options

+ 1 - 1
src/View/Helper/IconHelper.php

@@ -10,7 +10,7 @@ use Tools\View\Icon\IconCollection;
 /**
  * Font icon rendering.
  *
- * @deprecated Use Template.Icon helper instead.
+ * @deprecated Use Templating.Icon helper instead.
  *
  * @author Mark Scherer
  * @license MIT