You are here

private function ContainerBuilder::callMethod in Service Container 7

Same name in this branch
  1. 7 lib/Drupal/Core/DependencyInjection/ContainerBuilder.php \Drupal\Core\DependencyInjection\ContainerBuilder::callMethod()
  2. 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/ContainerBuilder.php \Symfony\Component\DependencyInjection\ContainerBuilder::callMethod()
Same name and namespace in other branches
  1. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/ContainerBuilder.php \Symfony\Component\DependencyInjection\ContainerBuilder::callMethod()
2 calls to ContainerBuilder::callMethod()
ContainerBuilder::createService in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/ContainerBuilder.php
Creates a service for a service definition.
ContainerBuilder::synchronize in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/ContainerBuilder.php
Synchronizes a service change.
1 method overrides ContainerBuilder::callMethod()
ContainerBuilder::callMethod in lib/Drupal/Core/DependencyInjection/ContainerBuilder.php
A 1to1 copy of parent::callMethod.

File

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

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