W3cubDocs

/Drupal 8

private function ContainerBuilder::getProxyInstantiator

private ContainerBuilder::getProxyInstantiator()

Retrieves the currently set proxy instantiator or instantiates one.

Return value

InstantiatorInterface

Overrides ContainerBuilder::getProxyInstantiator

File

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

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;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!DependencyInjection!ContainerBuilder.php/function/ContainerBuilder::getProxyInstantiator/8.1.x