follow Uninstaller iterable stacks
This commit is contained in:
parent
c81135c13d
commit
16d67e0b43
1 changed files with 5 additions and 5 deletions
|
@ -15,8 +15,8 @@ declare(strict_types=1);
|
||||||
namespace Dotclear\Plugin\dcAdvancedCleaner;
|
namespace Dotclear\Plugin\dcAdvancedCleaner;
|
||||||
|
|
||||||
use Dotclear\Plugin\Uninstaller\{
|
use Dotclear\Plugin\Uninstaller\{
|
||||||
AbstractCleaner,
|
CleanerParent,
|
||||||
Cleaners,
|
CleanersStack,
|
||||||
Uninstaller
|
Uninstaller
|
||||||
};
|
};
|
||||||
use Exception;
|
use Exception;
|
||||||
|
@ -28,8 +28,8 @@ class ManageVars
|
||||||
*/
|
*/
|
||||||
private static $container;
|
private static $container;
|
||||||
|
|
||||||
public readonly Cleaners $cleaners;
|
public readonly CleanersStack $cleaners;
|
||||||
public readonly ?AbstractCleaner $cleaner;
|
public readonly ?CleanerParent $cleaner;
|
||||||
public readonly string $related;
|
public readonly string $related;
|
||||||
public readonly array $entries;
|
public readonly array $entries;
|
||||||
public readonly string $action;
|
public readonly string $action;
|
||||||
|
@ -45,7 +45,7 @@ class ManageVars
|
||||||
|
|
||||||
$cleaner = null;
|
$cleaner = null;
|
||||||
$combo = [];
|
$combo = [];
|
||||||
foreach ($this->cleaners->dump() as $k) {
|
foreach ($this->cleaners as $k) {
|
||||||
$combo[$k->name] = $k->id;
|
$combo[$k->name] = $k->id;
|
||||||
if ($k->id == ($_REQUEST['part'] ?? '/')) {
|
if ($k->id == ($_REQUEST['part'] ?? '/')) {
|
||||||
$cleaner = $k;
|
$cleaner = $k;
|
||||||
|
|
Loading…
Reference in a new issue