if ($argument instanceof AbstractArgument &&
$argument->
getText().'.' ===
$argument->
getTextWithContext()) { $argument->
setContext(sprintf('Argument '.
(\
is_int($key) ? 1 +
$key : '"%3$s"'
).' of '.
('__construct' ===
$method ? 'service "%s"' : 'method call "%s::%s()"'
),
$this->currentId,
$method,
$key));
} if (\
is_int($key)) { $resolvedKeys[$key] =
$key;
$resolvedArguments[$key] =
$argument;
continue;
} if (null ===
$parameters) { $r =
$this->
getReflectionMethod($value,
$method);
$class =
$r instanceof \ReflectionMethod ?
$r->class :
$this->currentId;
$method =
$r->
getName();
$parameters =
$r->
getParameters();
} if (isset($key[0
]) && '$' !==
$key[0
] && !
class_exists($key) && !
interface_exists($key, false
)) { throw new InvalidArgumentException(sprintf('Invalid service "%s": did you forget to add the "$" prefix to argument "%s"?',
$this->currentId,
$key));
} if (isset($key[0
]) && '$' ===
$key[0
]) { foreach ($parameters as $j =>
$p) {