Skip to content

Commit f38297f

Browse files
committed
Move BackgroundTaskDeactivator to shared instances
1 parent e2588ec commit f38297f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/AmpWpPlugin.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
use AmpProject\AmpWP\Admin;
1111
use AmpProject\AmpWP\BackgroundTask;
12-
use AmpProject\AmpWP\BackgroundTask\BackgroundTaskDeactivator;
1312
use AmpProject\AmpWP\Infrastructure\Injector;
1413
use AmpProject\AmpWP\Infrastructure\ServiceBasedPlugin;
1514
use AmpProject\AmpWP\Instrumentation;
@@ -86,7 +85,6 @@ final class AmpWpPlugin extends ServiceBasedPlugin {
8685
'validated_url_stylesheet_gc' => BackgroundTask\ValidatedUrlStylesheetDataGarbageCollection::class,
8786
'url_validation_cron' => URLValidationCron::class,
8887
'save_post_validation_single_event' => SavePostValidationEvent::class,
89-
'background_task_deactivator' => BackgroundTaskDeactivator::class,
9088
];
9189

9290
/**
@@ -169,6 +167,7 @@ protected function get_shared_instances() {
169167
DevTools\FileReflection::class,
170168
ReaderThemeLoader::class,
171169
Injector::class,
170+
BackgroundTask\BackgroundTaskDeactivator::class,
172171
];
173172
}
174173

0 commit comments

Comments
 (0)