function YamlFileLoader::isUsingShortSyntax
1 call to YamlFileLoader::isUsingShortSyntax()
- YamlFileLoader::parseDefinition in vendor/
symfony/ dependency-injection/ Loader/ YamlFileLoader.php
File
-
vendor/
symfony/ dependency-injection/ Loader/ YamlFileLoader.php, line 326
Class
- YamlFileLoader
- YamlFileLoader loads YAML files service definitions.
Namespace
Symfony\Component\DependencyInjection\LoaderCode
private function isUsingShortSyntax(array $service) : bool {
foreach ($service as $key => $value) {
if (\is_string($key) && ('' === $key || '$' !== $key[0] && !str_contains($key, '\\'))) {
return false;
}
}
return true;
}