private function YamlFileLoader::parseDefinitions

Parses definitions

Parameters

array $content:

string $file:

1 call to YamlFileLoader::parseDefinitions()
YamlFileLoader::load in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php
Loads a Yaml file.

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php, line 107

Class

YamlFileLoader
YamlFileLoader loads YAML files service definitions.

Namespace

Symfony\Component\DependencyInjection\Loader

Code

private function parseDefinitions($content, $file) {
  if (!isset($content['services'])) {
    return;
  }
  foreach ($content['services'] as $id => $service) {
    $this
      ->parseDefinition($id, $service, $file);
  }
}