finally { $this->env =
$env;
} } return null;
} private function loadContent(array
$content, string
$path): void
{ // imports
$this->
parseImports($content,
$path);
// parameters
if (isset($content['parameters'
])) { if (!\
is_array($content['parameters'
])) { throw new InvalidArgumentException(sprintf('The "parameters" key should contain an array in "%s". Check your YAML syntax.',
$path));
} foreach ($content['parameters'
] as $key =>
$value) { $this->container->
setParameter($key,
$this->
resolveServices($value,
$path, true
));
} }