2 // @codingStandardsIgnoreFile
5 * This file was generated via php core/scripts/generate-proxy-class.php 'Drupal\Core\Extension\ModuleInstaller' "core/lib/Drupal/Core".
8 namespace Drupal\Core\ProxyClass\Extension {
11 * Provides a proxy class for \Drupal\Core\Extension\ModuleInstaller.
13 * @see \Drupal\Component\ProxyBuilder
15 class ModuleInstaller implements \Drupal\Core\Extension\ModuleInstallerInterface
18 use \Drupal\Core\DependencyInjection\DependencySerializationTrait;
21 * The id of the original proxied service.
25 protected $drupalProxyOriginalServiceId;
28 * The real proxied service, after it was lazy loaded.
30 * @var \Drupal\Core\Extension\ModuleInstaller
35 * The service container.
37 * @var \Symfony\Component\DependencyInjection\ContainerInterface
42 * Constructs a ProxyClass Drupal proxy object.
44 * @param \Symfony\Component\DependencyInjection\ContainerInterface $container
46 * @param string $drupal_proxy_original_service_id
47 * The service ID of the original service.
49 public function __construct(\Symfony\Component\DependencyInjection\ContainerInterface $container, $drupal_proxy_original_service_id)
51 $this->container = $container;
52 $this->drupalProxyOriginalServiceId = $drupal_proxy_original_service_id;
56 * Lazy loads the real service from the container.
59 * Returns the constructed real service.
61 protected function lazyLoadItself()
63 if (!isset($this->service)) {
64 $this->service = $this->container->get($this->drupalProxyOriginalServiceId);
67 return $this->service;
73 public function addUninstallValidator(\Drupal\Core\Extension\ModuleUninstallValidatorInterface $uninstall_validator)
75 return $this->lazyLoadItself()->addUninstallValidator($uninstall_validator);
81 public function install(array $module_list, $enable_dependencies = true)
83 return $this->lazyLoadItself()->install($module_list, $enable_dependencies);
89 public function uninstall(array $module_list, $uninstall_dependents = true)
91 return $this->lazyLoadItself()->uninstall($module_list, $uninstall_dependents);
97 public function validateUninstall(array $module_list)
99 return $this->lazyLoadItself()->validateUninstall($module_list);