You are here

private function ContainerBuilder::getProxyInstantiator in Service Container 7.2

Same name and namespace in other branches
  1. 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/ContainerBuilder.php \Symfony\Component\DependencyInjection\ContainerBuilder::getProxyInstantiator()

Retrieves the currently set proxy instantiator or instantiates one.

Return value

InstantiatorInterface

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/ContainerBuilder.php, line 1108

Class

ContainerBuilder
ContainerBuilder is a DI container that provides an API to easily describe services.

Namespace

Symfony\Component\DependencyInjection

Code

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