ContainerBuilder::callMethod

protected ContainerBuilder::callMethod($service, $call)

A 1to1 copy of parent::callMethod.

Overrides ContainerBuilder::callMethod

File

core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php, line 112

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])));
}
doc_Drupal
2016-10-29 08:56:41
Comments
Leave a Comment

Please login to continue.