You are here

private 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 vendor/symfony/dependency-injection/ContainerBuilder.php \Symfony\Component\DependencyInjection\ContainerBuilder::callMethod()
2 calls to ContainerBuilder::callMethod()
ContainerBuilder::createService in vendor/symfony/dependency-injection/ContainerBuilder.php
Creates a service for a service definition.
ContainerBuilder::synchronize in vendor/symfony/dependency-injection/ContainerBuilder.php
Synchronizes a service change.
1 method overrides ContainerBuilder::callMethod()
ContainerBuilder::callMethod in core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php
A 1to1 copy of parent::callMethod.

File

vendor/symfony/dependency-injection/ContainerBuilder.php, line 1081

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