You are here

private function ContainerBuilder::getProxyInstantiator in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php \Drupal\Core\DependencyInjection\ContainerBuilder::getProxyInstantiator()

Retrieves the currently set proxy instantiator or instantiates one.

Return value

InstantiatorInterface

File

core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php, line 41

Class

ContainerBuilder
Drupal's dependency injection container builder.

Namespace

Drupal\Core\DependencyInjection

Code

private function getProxyInstantiator() {
  if (!$this->proxyInstantiator) {
    $this->proxyInstantiator = new RealServiceInstantiator();
  }
  return $this->proxyInstantiator;
}