protected function 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 239

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!DependencyInjection!ContainerBuilder.php/function/ContainerBuilder::callMethod/8.1.x