$code .=
sprintf("fn () => self::%s(\$container);\n\n",
$asFile ? 'do' :
$methodName);
} else { $code .=
sprintf("self::%s(...);\n\n",
$asFile ? 'do' :
$methodName);
} } $lazyLoad =
$asGhostObject ? '$proxy' : 'false';
$factoryCode =
$asFile ?
sprintf('self::do($container, %s)',
$lazyLoad) :
sprintf('self::%s($container, %s)',
$methodName,
$lazyLoad);
$code .=
$this->
getProxyDumper()->
getProxyFactoryCode($definition,
$id,
$factoryCode);
} $c =
$this->
addServiceInclude($id,
$definition, null !==
$isProxyCandidate);
if ('' !==
$c &&
$isProxyCandidate && !
$definition->
isShared()) { $c =
implode("\n",
array_map(fn ($line) =>
$line ? ' '.
$line :
$line,
explode("\n",
$c)));
$code .= " static \$include = true;\n\n";
$code .= " if (\$include) {\n";
$code .=
$c;
$code .= " \$include = false;\n";
$code .= " }\n\n";
} else { $code .=
$c;
}