Skip to content

Commit 1c22fc8

Browse files
Silas JoistenNyholm
authored andcommitted
added yaml support (#106)
1 parent 2f2c23c commit 1c22fc8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Loader/LoaderFactory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public function createLoaderForSource(ContainerBuilder $container, $source)
2727

2828
switch ($extension) {
2929
case 'yml':
30+
case 'yaml':
3031
return $this->createYamlFileLoader($container);
3132
case 'xml':
3233
return $this->createXmlFileLoader($container);

Tests/Loader/LoaderFactoryTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public function fileProvider()
3737
return [
3838
['file.xml', 'Symfony\Component\DependencyInjection\Loader\XmlFileLoader'],
3939
['file.yml', 'Symfony\Component\DependencyInjection\Loader\YamlFileLoader'],
40+
['file.yaml', 'Symfony\Component\DependencyInjection\Loader\YamlFileLoader'],
4041
['file.php', 'Symfony\Component\DependencyInjection\Loader\PhpFileLoader'],
4142
];
4243
}

0 commit comments

Comments
 (0)