From cdafb3285beeb5fadf25a43e18fee6f80bb14575 Mon Sep 17 00:00:00 2001 From: Dave Long Date: Tue, 2 Apr 2024 18:27:29 +0100 Subject: [PATCH] Allow services.yml to contain custom tags (#743) Co-authored-by: Matt Glaman --- src/Drupal/DrupalAutoloader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Drupal/DrupalAutoloader.php b/src/Drupal/DrupalAutoloader.php index 9b681dd5..0948bd2b 100644 --- a/src/Drupal/DrupalAutoloader.php +++ b/src/Drupal/DrupalAutoloader.php @@ -182,7 +182,7 @@ public function register(Container $container): void } foreach ($this->serviceYamls as $extension => $serviceYaml) { - $yaml = Yaml::parseFile($serviceYaml); + $yaml = Yaml::parseFile($serviceYaml, Yaml::PARSE_CUSTOM_TAGS); // Weed out service files which only provide parameters. if (!isset($yaml['services']) || !is_array($yaml['services'])) { continue;