public function initialize() { // Ensure that the changes have been validated.
$this->
validate();
if (!
$this->lock->
acquire(static::LOCK_NAME
)) { // Another process is synchronizing configuration.
throw new ConfigImporterException(sprintf('%s is already importing',
static::LOCK_NAME
));
} $sync_steps =
[];
$modules =
$this->
getUnprocessedExtensions('module'
);
foreach (['install', 'uninstall'
] as $op) { $this->totalExtensionsToProcess +=
count($modules[$op]);
} $themes =
$this->
getUnprocessedExtensions('theme'
);
foreach (['install', 'uninstall'
] as $op) { $this->totalExtensionsToProcess +=
count($themes[$op]);
}