You are here

public function BackupMigrate::__construct in Backup and Migrate 5.0.x

Backup and Migrate constructor.

Overrides BackupMigrateInterface::__construct

File

src/Core/Main/BackupMigrate.php, line 36

Class

BackupMigrate
The core Backup and Migrate service.

Namespace

Drupal\backup_migrate\Core\Main

Code

public function __construct() {
  $this
    ->setServiceManager(new ServiceManager());
  $services = $this
    ->services();
  $services
    ->add('PluginManager', new PluginManager($services));
  $services
    ->add('SourceManager', new PluginManager($services));
  $services
    ->add('DestinationManager', new PluginManager($services));

  // Add these services back into this object using the service manager.
  $services
    ->addClient($this);
}