// tag attribute values must be scalars
foreach ($definition->
getTags() as $name =>
$tags) { foreach ($tags as $attributes) { $this->
validateAttributes($id,
$name,
$attributes);
} } if ($definition->
isPublic() && !
$definition->
isPrivate()) { $resolvedId =
$container->
resolveEnvPlaceholders($id, null,
$usedEnvs);
if (null !==
$usedEnvs) { throw new EnvParameterException([$resolvedId], null, 'A service name ("%s") cannot contain dynamic values.'
);
} } } foreach ($container->
getAliases() as $id =>
$alias) { if ($alias->
isPublic() && !
$alias->
isPrivate()) { $resolvedId =
$container->
resolveEnvPlaceholders($id, null,
$usedEnvs);
if (null !==
$usedEnvs) { throw new EnvParameterException([$resolvedId], null, 'An alias name ("%s") cannot contain dynamic values.'
);
} } }