src/FileLoader/Parser/Yaml/ParametersParser.php 1 location
|
@@ 50-54 (lines=5) @@
|
47 |
|
return; |
48 |
|
} |
49 |
|
|
50 |
|
if (false === is_array($content['parameters'])) { |
51 |
|
throw new InvalidArgumentException( |
52 |
|
sprintf('The "parameters" key should contain an array in %s. Check your YAML syntax.', $fileName) |
53 |
|
); |
54 |
|
} |
55 |
|
|
56 |
|
foreach ($content['parameters'] as $key => $value) { |
57 |
|
$container->setParameter(strtolower($key), $this->serviceResolver->resolve($value)); |
src/FileLoader/Parser/Yaml/ImportsParser.php 1 location
|
@@ 39-43 (lines=5) @@
|
36 |
|
return []; |
37 |
|
} |
38 |
|
|
39 |
|
if (false === is_array($content['imports'])) { |
40 |
|
throw new InvalidArgumentException( |
41 |
|
sprintf('The "imports" key should contain an array in %s. Check your YAML syntax.', $fileName) |
42 |
|
); |
43 |
|
} |
44 |
|
|
45 |
|
$imports = []; |
46 |
|
foreach ($content['imports'] as $importStatement) { |