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

1
2
3
4
5
6
7
8
9
10
11
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
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.