From 16d67e0b4391ede12d38ae527bd8d7245c0ece32 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Mon, 1 May 2023 15:49:22 +0200 Subject: [PATCH] follow Uninstaller iterable stacks --- src/ManageVars.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ManageVars.php b/src/ManageVars.php index 6125a4e..8a844ea 100644 --- a/src/ManageVars.php +++ b/src/ManageVars.php @@ -15,8 +15,8 @@ declare(strict_types=1); namespace Dotclear\Plugin\dcAdvancedCleaner; use Dotclear\Plugin\Uninstaller\{ - AbstractCleaner, - Cleaners, + CleanerParent, + CleanersStack, Uninstaller }; use Exception; @@ -28,8 +28,8 @@ class ManageVars */ private static $container; - public readonly Cleaners $cleaners; - public readonly ?AbstractCleaner $cleaner; + public readonly CleanersStack $cleaners; + public readonly ?CleanerParent $cleaner; public readonly string $related; public readonly array $entries; public readonly string $action; @@ -45,7 +45,7 @@ class ManageVars $cleaner = null; $combo = []; - foreach ($this->cleaners->dump() as $k) { + foreach ($this->cleaners as $k) { $combo[$k->name] = $k->id; if ($k->id == ($_REQUEST['part'] ?? '/')) { $cleaner = $k;