private function ContainerBuilder::callMethod

2 calls to ContainerBuilder::callMethod()
ContainerBuilder::createService in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/ContainerBuilder.php
Creates a service for a service definition.
ContainerBuilder::synchronize in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/ContainerBuilder.php
Synchronizes a service change.

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/ContainerBuilder.php, line 1126

Class

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

Namespace

Symfony\Component\DependencyInjection

Code

private function callMethod($service, $call) {
  $services = self::getServiceConditionals($call[1]);
  foreach ($services as $s) {
    if (!$this
      ->has($s)) {
      return;
    }
  }
  call_user_func_array(array(
    $service,
    $call[0],
  ), $this
    ->resolveServices($this
    ->getParameterBag()
    ->resolveValue($call[1])));
}