class YamlFileLoader

YamlFileLoader loads YAML files service definitions.

Drupal does not use Symfony's Config component, and Symfony's dependency on it cannot be removed easily. Therefore, this is a partial but mostly literal copy of upstream, which does not depend on the Config component.

NOTE: 98% of this code is a literal copy of Symfony's YamlFileLoader.

This file does NOT follow Drupal coding standards, so as to simplify future synchronizations.

Hierarchy

See also

\Symfony\Component\DependencyInjection\Loader\YamlFileLoader

https://github.com/symfony/symfony/pull/10920

File

core/lib/Drupal/Core/DependencyInjection/YamlFileLoader.php, line 30

Namespace

Drupal\Core\DependencyInjection

Members

Name Modifiers Type Description
YamlFileLoader::$container protected property
YamlFileLoader::$fileCache protected property File cache object.
YamlFileLoader::load public function Loads a Yaml file.
YamlFileLoader::loadFile protected function Loads a YAML file.
YamlFileLoader::parseDefinition private function Parses a definition.
YamlFileLoader::parseDefinitions private function Parses definitions
YamlFileLoader::resolveServices private function Resolves services.
YamlFileLoader::validate private function Validates a YAML file.
YamlFileLoader::__construct public function

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!DependencyInjection!YamlFileLoader.php/class/YamlFileLoader/8.1.x