follow Uninstaller iterable stacks

This commit is contained in:
Jean-Christian Denis 2023-05-01 15:49:22 +02:00
parent c81135c13d
commit 16d67e0b43
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951

View file

@ -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;