ConfigInstaller.php in Drupal 9
File
core/lib/Drupal/Core/ProxyClass/Config/ConfigInstaller.php
View source
<?php
namespace Drupal\Core\ProxyClass\Config;
class ConfigInstaller implements \Drupal\Core\Config\ConfigInstallerInterface {
use \Drupal\Core\DependencyInjection\DependencySerializationTrait;
protected $drupalProxyOriginalServiceId;
protected $service;
protected $container;
public function __construct(\Symfony\Component\DependencyInjection\ContainerInterface $container, $drupal_proxy_original_service_id) {
$this->container = $container;
$this->drupalProxyOriginalServiceId = $drupal_proxy_original_service_id;
}
protected function lazyLoadItself() {
if (!isset($this->service)) {
$this->service = $this->container
->get($this->drupalProxyOriginalServiceId);
}
return $this->service;
}
public function installDefaultConfig($type, $name) {
return $this
->lazyLoadItself()
->installDefaultConfig($type, $name);
}
public function installOptionalConfig(?\Drupal\Core\Config\StorageInterface $storage = NULL, $dependency = array()) {
return $this
->lazyLoadItself()
->installOptionalConfig($storage, $dependency);
}
public function installCollectionDefaultConfig($collection) {
return $this
->lazyLoadItself()
->installCollectionDefaultConfig($collection);
}
public function setSourceStorage(\Drupal\Core\Config\StorageInterface $storage) {
return $this
->lazyLoadItself()
->setSourceStorage($storage);
}
public function getSourceStorage() {
return $this
->lazyLoadItself()
->getSourceStorage();
}
public function setSyncing($status) {
return $this
->lazyLoadItself()
->setSyncing($status);
}
public function isSyncing() {
return $this
->lazyLoadItself()
->isSyncing();
}
public function checkConfigurationToInstall($type, $name) {
return $this
->lazyLoadItself()
->checkConfigurationToInstall($type, $name);
}
}