if (!
$service || !\
is_array($service)) { throw new InvalidArgumentException(sprintf('Type definition "%s" must be a non-empty array within "_instanceof" in "%s". Check your YAML syntax.',
$id,
$file));
} if (\
is_string($service) &&
str_starts_with($service, '@'
)) { throw new InvalidArgumentException(sprintf('Type definition "%s" cannot be an alias within "_instanceof" in "%s". Check your YAML syntax.',
$id,
$file));
} $this->
parseDefinition($id,
$service,
$file,
[], false,
$trackBindings);
} } $this->isLoadingInstanceof = false;
$defaults =
$this->
parseDefaults($content,
$file);
foreach ($content['services'
] as $id =>
$service) { $this->
parseDefinition($id,
$service,
$file,
$defaults, false,
$trackBindings);
} } /**
* @throws InvalidArgumentException
*/
private function parseDefaults(array &
$content, string
$file): array
{ if (!\
array_key_exists('_defaults',
$content['services'
])) {