You are here

public function ServiceBase::reload in Purge 8.3

Reload the service and reinstantiate all enabled plugins.

@warning Reloading a service implies that all cached data will be reset and that plugins get reinstantiated during the current request, which should normally not be used. This method is specifically used in tests.

Overrides ServiceInterface::reload

6 calls to ServiceBase::reload()
DiagnosticsService::reload in src/Plugin/Purge/DiagnosticCheck/DiagnosticsService.php
Reload the service and reinstantiate all enabled plugins.
ProcessorsService::reload in src/Plugin/Purge/Processor/ProcessorsService.php
Reload the service and reinstantiate all enabled plugins.
PurgersService::reload in src/Plugin/Purge/Purger/PurgersService.php
Reload the service and reinstantiate all enabled plugins.
QueuersService::reload in src/Plugin/Purge/Queuer/QueuersService.php
Reload the service and reinstantiate all enabled plugins.
QueueService::reload in src/Plugin/Purge/Queue/QueueService.php
Reload the service and reinstantiate all enabled plugins.

... See full list

6 methods override ServiceBase::reload()
DiagnosticsService::reload in src/Plugin/Purge/DiagnosticCheck/DiagnosticsService.php
Reload the service and reinstantiate all enabled plugins.
ProcessorsService::reload in src/Plugin/Purge/Processor/ProcessorsService.php
Reload the service and reinstantiate all enabled plugins.
PurgersService::reload in src/Plugin/Purge/Purger/PurgersService.php
Reload the service and reinstantiate all enabled plugins.
QueuersService::reload in src/Plugin/Purge/Queuer/QueuersService.php
Reload the service and reinstantiate all enabled plugins.
QueueService::reload in src/Plugin/Purge/Queue/QueueService.php
Reload the service and reinstantiate all enabled plugins.

... See full list

File

src/ServiceBase.php, line 63

Class

ServiceBase
Provides a generic service for all DIC-registered service classes by Purge.

Namespace

Drupal\purge

Code

public function reload() {
  $this->plugins = NULL;
  $this->pluginsEnabled = NULL;
}