Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. InstantiatorInterface.php

function InstantiatorInterface::instantiateProxy

Instantiates a proxy object.

Parameters

string $id Identifier of the requested service:

callable(object=) $realInstantiator A callback that is capable of producing the real service instance:

2 methods override InstantiatorInterface::instantiateProxy()
LazyServiceInstantiator::instantiateProxy in vendor/symfony/dependency-injection/LazyProxy/Instantiator/LazyServiceInstantiator.php
Instantiates a proxy object.
RealServiceInstantiator::instantiateProxy in vendor/symfony/dependency-injection/LazyProxy/Instantiator/RealServiceInstantiator.php
Instantiates a proxy object.

File

vendor/symfony/dependency-injection/LazyProxy/Instantiator/InstantiatorInterface.php, line 31

Class

InstantiatorInterface
Lazy proxy instantiator, capable of instantiating a proxy given a container, the service definitions and a callback that produces the real service instance.

Namespace

Symfony\Component\DependencyInjection\LazyProxy\Instantiator

Code

public function instantiateProxy(ContainerInterface $container, Definition $definition, string $id, callable $realInstantiator) : object;
RSS feed
Powered by Drupal