Skip to content

Commit

Permalink
Move BackgroundTaskDeactivator to shared instances
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwatkins0 committed Dec 22, 2020
1 parent e2588ec commit f38297f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/AmpWpPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

use AmpProject\AmpWP\Admin;
use AmpProject\AmpWP\BackgroundTask;
use AmpProject\AmpWP\BackgroundTask\BackgroundTaskDeactivator;
use AmpProject\AmpWP\Infrastructure\Injector;
use AmpProject\AmpWP\Infrastructure\ServiceBasedPlugin;
use AmpProject\AmpWP\Instrumentation;
Expand Down Expand Up @@ -86,7 +85,6 @@ final class AmpWpPlugin extends ServiceBasedPlugin {
'validated_url_stylesheet_gc' => BackgroundTask\ValidatedUrlStylesheetDataGarbageCollection::class,
'url_validation_cron' => URLValidationCron::class,
'save_post_validation_single_event' => SavePostValidationEvent::class,
'background_task_deactivator' => BackgroundTaskDeactivator::class,
];

/**
Expand Down Expand Up @@ -169,6 +167,7 @@ protected function get_shared_instances() {
DevTools\FileReflection::class,
ReaderThemeLoader::class,
Injector::class,
BackgroundTask\BackgroundTaskDeactivator::class,
];
}

Expand Down

0 comments on commit f38297f

Please sign in to comment.