Skip to content

Commit

Permalink
Fix up Icon helper move
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Dec 11, 2023
1 parent 6a4da76 commit aca3b29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Controller/Admin/QueueSchedulerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Cake\Utility\Hash;
use QueueScheduler\Controller\AppController;
use Templating\View\Helper\IconHelper;

class QueueSchedulerController extends AppController {

Expand All @@ -14,7 +15,7 @@ public function initialize(): void {
parent::initialize();

$this->viewBuilder()->addHelpers([
'Tools.Icon',
class_exists(IconHelper::class) ? 'Templating.Icon' : 'Tools.Icon',
'Queue.Queue',
'Queue.QueueProgress',
]);
Expand Down
3 changes: 2 additions & 1 deletion src/Controller/Admin/SchedulerRowsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace QueueScheduler\Controller\Admin;

use QueueScheduler\Controller\AppController;
use Templating\View\Helper\IconHelper;

/**
* Rows Controller
Expand All @@ -20,7 +21,7 @@ public function initialize(): void {

$this->viewBuilder()->addHelpers([
'Tools.Format',
'Tools.Icon',
class_exists(IconHelper::class) ? 'Templating.Icon' : 'Tools.Icon',
]);
}

Expand Down

0 comments on commit aca3b29

Please sign in to comment.