You are here

private function YamlFileLoader::loadFromExtensions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dependency-injection/Loader/YamlFileLoader.php \Symfony\Component\DependencyInjection\Loader\YamlFileLoader::loadFromExtensions()

Loads from Extensions.

Parameters

array $content:

1 call to YamlFileLoader::loadFromExtensions()
YamlFileLoader::load in vendor/symfony/dependency-injection/Loader/YamlFileLoader.php

File

vendor/symfony/dependency-injection/Loader/YamlFileLoader.php, line 414

Class

YamlFileLoader
YamlFileLoader loads YAML files service definitions.

Namespace

Symfony\Component\DependencyInjection\Loader

Code

private function loadFromExtensions($content) {
  foreach ($content as $namespace => $values) {
    if (in_array($namespace, array(
      'imports',
      'parameters',
      'services',
    ))) {
      continue;
    }
    if (!is_array($values)) {
      $values = array();
    }
    $this->container
      ->loadFromExtension($namespace, $values);
  }
}