Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

YAML::parseFile() with default Symfony flags #10

Merged
merged 1 commit into from Mar 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ServiceHelper.php
Expand Up @@ -29,7 +29,7 @@ public function __construct(string $servicesYml)
{
/** @var Service[] $aliases */
$aliases = [];
$yml = Yaml::parseFile($servicesYml);
$yml = Yaml::parseFile($servicesYml, Yaml::PARSE_CONSTANT | YAML::PARSE_CUSTOM_TAGS);

if (\is_array($yml) && \array_key_exists('services', $yml)) {
$services = $yml['services'];
Expand Down