function ContainerBuilder::getProxyInstantiator

Retrieves the currently set proxy instantiator or instantiates one.

Return value

InstantiatorInterface

File

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

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.