protected function ConfigImporter::reInjectMe in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Config/ConfigImporter.php \Drupal\Core\Config\ConfigImporter::reInjectMe()
Gets all the service dependencies from \Drupal.
Since the ConfigImporter handles module installation the kernel and the container can be rebuilt and altered during processing. It is necessary to keep the services used by the importer in sync.
1 call to ConfigImporter::reInjectMe()
- ConfigImporter::processExtension in core/
lib/ Drupal/ Core/ Config/ ConfigImporter.php - Processes an extension change.
File
- core/
lib/ Drupal/ Core/ Config/ ConfigImporter.php, line 1065
Class
- ConfigImporter
- Defines a configuration importer.
Namespace
Drupal\Core\ConfigCode
protected function reInjectMe() {
$this->_serviceIds = [];
$vars = get_object_vars($this);
foreach ($vars as $key => $value) {
if (is_object($value) && isset($value->_serviceId)) {
$this->{$key} = \Drupal::service($value->_serviceId);
}
}
}