lib/Drupal/Core/DependencyInjection/YamlFileLoader.php 1 location
|
@@ 85-93 (lines=9) @@
|
| 82 |
|
//$this->parseImports($content, $file); |
| 83 |
|
|
| 84 |
|
// parameters |
| 85 |
|
if (isset($content['parameters'])) { |
| 86 |
|
if (!is_array($content['parameters'])) { |
| 87 |
|
throw new InvalidArgumentException(sprintf('The "parameters" key should contain an array in %s. Check your YAML syntax.', $file)); |
| 88 |
|
} |
| 89 |
|
|
| 90 |
|
foreach ($content['parameters'] as $key => $value) { |
| 91 |
|
$this->container->setParameter($key, $this->resolveServices($value)); |
| 92 |
|
} |
| 93 |
|
} |
| 94 |
|
|
| 95 |
|
// extensions |
| 96 |
|
// Not supported. |
modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php 1 location
|
@@ 56-64 (lines=9) @@
|
| 53 |
|
$this->parseImports($content, $path); |
| 54 |
|
|
| 55 |
|
// parameters |
| 56 |
|
if (isset($content['parameters'])) { |
| 57 |
|
if (!is_array($content['parameters'])) { |
| 58 |
|
throw new InvalidArgumentException(sprintf('The "parameters" key should contain an array in %s. Check your YAML syntax.', $resource)); |
| 59 |
|
} |
| 60 |
|
|
| 61 |
|
foreach ($content['parameters'] as $key => $value) { |
| 62 |
|
$this->container->setParameter($key, $this->resolveServices($value)); |
| 63 |
|
} |
| 64 |
|
} |
| 65 |
|
|
| 66 |
|
// extensions |
| 67 |
|
$this->loadFromExtensions($content); |