Skip to content
Snippets Groups Projects
Commit f2ad0c83 authored by Adam G-H's avatar Adam G-H
Browse files

hookCron -> deleteDirectories

parent 91774c5e
No related branches found
No related tags found
1 merge request!907Issue #3364958: Stages should be destroyed in the background, during cron runs
This commit is part of merge request !907. Comments created here will be created in the context of that merge request.
......@@ -120,5 +120,5 @@ function package_manager_help($route_name, RouteMatchInterface $route_match) {
* Implements hook_cron().
*/
function package_manager_cron(): void {
\Drupal::service(Cleaner::class)->hookCron();
\Drupal::service(Cleaner::class)->deleteDirectories();
}
......@@ -50,7 +50,7 @@ final class Cleaner implements EventSubscriberInterface {
/**
* Deletes defunct stage directories during cron runs.
*/
public function hookCron(): void {
public function deleteDirectories(): void {
$directories = $this->state->get(static::STATE_KEY, []);
foreach (array_splice($directories, 0, 3) as $dir) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment