You are here

private function YamlFileLoader::loadFromExtensions in Service Container 7

Same name and namespace in other branches
  1. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php \Symfony\Component\DependencyInjection\Loader\YamlFileLoader::loadFromExtensions()

Loads from Extensions.

Parameters

array $content:

1 call to YamlFileLoader::loadFromExtensions()
YamlFileLoader::load in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php, line 407

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);
  }
}