lib/Drupal/Core/DependencyInjection/ContainerBuilder.php 1 location
|
@@ 105-115 (lines=11) @@
|
| 102 |
|
/** |
| 103 |
|
* A 1to1 copy of parent::callMethod. |
| 104 |
|
*/ |
| 105 |
|
protected function callMethod($service, $call) { |
| 106 |
|
$services = self::getServiceConditionals($call[1]); |
| 107 |
|
|
| 108 |
|
foreach ($services as $s) { |
| 109 |
|
if (!$this->has($s)) { |
| 110 |
|
return; |
| 111 |
|
} |
| 112 |
|
} |
| 113 |
|
|
| 114 |
|
call_user_func_array(array($service, $call[0]), $this->resolveServices($this->getParameterBag()->resolveValue($call[1]))); |
| 115 |
|
} |
| 116 |
|
|
| 117 |
|
/** |
| 118 |
|
* {@inheritdoc} |
modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/ContainerBuilder.php 1 location
|
@@ 1149-1160 (lines=12) @@
|
| 1146 |
|
} |
| 1147 |
|
} |
| 1148 |
|
|
| 1149 |
|
private function callMethod($service, $call) |
| 1150 |
|
{ |
| 1151 |
|
$services = self::getServiceConditionals($call[1]); |
| 1152 |
|
|
| 1153 |
|
foreach ($services as $s) { |
| 1154 |
|
if (!$this->has($s)) { |
| 1155 |
|
return; |
| 1156 |
|
} |
| 1157 |
|
} |
| 1158 |
|
|
| 1159 |
|
call_user_func_array(array($service, $call[0]), $this->resolveServices($this->getParameterBag()->resolveValue($call[1]))); |
| 1160 |
|
} |
| 1161 |
|
|
| 1162 |
|
/** |
| 1163 |
|
* Shares a given service in the container. |