Skip to content

Commit

Permalink
added yaml support (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
Silas Joisten authored and Nyholm committed Aug 8, 2018
1 parent 2f2c23c commit 1c22fc8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Loader/LoaderFactory.php
Expand Up @@ -27,6 +27,7 @@ public function createLoaderForSource(ContainerBuilder $container, $source)

switch ($extension) {
case 'yml':
case 'yaml':
return $this->createYamlFileLoader($container);
case 'xml':
return $this->createXmlFileLoader($container);
Expand Down
1 change: 1 addition & 0 deletions Tests/Loader/LoaderFactoryTest.php
Expand Up @@ -37,6 +37,7 @@ public function fileProvider()
return [
['file.xml', 'Symfony\Component\DependencyInjection\Loader\XmlFileLoader'],
['file.yml', 'Symfony\Component\DependencyInjection\Loader\YamlFileLoader'],
['file.yaml', 'Symfony\Component\DependencyInjection\Loader\YamlFileLoader'],
['file.php', 'Symfony\Component\DependencyInjection\Loader\PhpFileLoader'],
];
}
Expand Down

0 comments on commit 1c22fc8

Please sign in to comment.