if (null ===
$lastWitherIndex && (true ===
$tryProxy || !
$definition->
isLazy())) { // share only if proxying failed, or if not a proxy, and if no withers are found
$this->
shareService($definition,
$service,
$id,
$inlineServices);
} $properties =
$this->
doResolveServices($parameterBag->
unescapeValue($parameterBag->
resolveValue($definition->
getProperties())),
$inlineServices);
foreach ($properties as $name =>
$value) { $service->
$name =
$value;
} foreach ($definition->
getMethodCalls() as $k =>
$call) { $service =
$this->
callMethod($service,
$call,
$inlineServices);
if ($lastWitherIndex ===
$k && (true ===
$tryProxy || !
$definition->
isLazy())) { // share only if proxying failed, or if not a proxy, and this is the last wither
$this->
shareService($definition,
$service,
$id,
$inlineServices);
} } if ($callable =
$definition->
getConfigurator()) { if (\
is_array($callable)) { $callable[0
] =
$parameterBag->
resolveValue($callable[0
]);