You are here

protected function ContainerBuilder::callMethod in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/dependency-injection/ContainerBuilder.php \Symfony\Component\DependencyInjection\ContainerBuilder::callMethod()
  2. 8 core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php \Drupal\Core\DependencyInjection\ContainerBuilder::callMethod()
Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php \Drupal\Core\DependencyInjection\ContainerBuilder::callMethod()

A 1to1 copy of parent::callMethod.

Overrides ContainerBuilder::callMethod

File

core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php, line 78
Contains \Drupal\Core\DependencyInjection\ContainerBuilder.

Class

ContainerBuilder
Drupal's dependency injection container builder.

Namespace

Drupal\Core\DependencyInjection

Code

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