function BackupMigrate::__construct in Backup and Migrate 8.4
Parameters
\BackupMigrate\Core\Config\ConfigInterface $config:
\BackupMigrate\Core\Service\ServiceManagerInterface $services:
Overrides BackupMigrateInterface::__construct
File
- lib/
backup_migrate_core/ src/ Main/ BackupMigrate.php, line 39
Class
- BackupMigrate
- The core Backup and Migrate service.
Namespace
BackupMigrate\Core\MainCode
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);
}