Skip to content

Commit

Permalink
Allow services.yml to contain custom tags (#743)
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Glaman <[email protected]>
  • Loading branch information
longwave and mglaman authored Apr 2, 2024
1 parent 5a01ff1 commit cdafb32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drupal/DrupalAutoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cdafb32

Please sign in to comment.