| Server IP : 108.167.142.43 / Your IP : 216.73.217.58 Web Server : Apache System : Linux gator4174.hostgator.com 5.14.0-687.39.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Aug 18 06:09:16 EDT 2026 x86_64 User : delarice ( 2406) PHP Version : 8.3.36 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home2/delarice/www/wp-content/plugins/templately/modules/full-site-import/Cleanup/ |
Upload File : |
<?php
/**
* FSI's contribution to the shared cleanup service.
*
* @package Templately
*/
namespace Templately\Modules\FullSiteImport\Cleanup;
use Templately\Modules\Utilities\Cleanup\TaskRegistry;
/**
* The one place this module names its cleanup tasks.
*
* Contribution is inverted: `modules/utilities/` never refers to full-site-import,
* so removing or disabling this module removes its cleanups with it and the
* engine needs no edit. This module declares `'utilities'` as a dependency;
* the arrow points one way only.
*
* Four tasks, deliberately separate rather than one "clean up FSI" blob: each
* reclaims a different kind of thing, each can fail independently without
* costing the others their run, and the UI can estimate and offer them
* individually.
*/
final class CleanupTasks {
public static function register(): void {
add_action(
TaskRegistry::COLLECT_ACTION,
static function ( TaskRegistry $registry ) {
$registry->register_classes(
[
SessionsTask::class,
TmpDirsTask::class,
PreviewDirsTask::class,
LogsTask::class,
]
);
}
);
}
}