symfony-cmf / routing-auto

RoutingAuto component
https://cmf.symfony.com
Other
6 stars 11 forks source link

.yaml files support #117

Closed damienflament closed 6 years ago

damienflament commented 6 years ago
Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Fixed tickets n/a
License MIT
Doc PR n/a

This PR adds support for loading .yaml files in addition to .yml files using the YmlFileLoader.

Some more test cases have been added to the XmlFileLoader and YmlFileLoader supports method.

The supports methods implementation on-liners have been refactored to a more readable form (in my opinion).

damienflament commented 6 years ago

What's about this PR ?

I may seem useless. But Symfony Flex asks for a .yaml file extension for recipes.

So, this PR allows us to be consistent in the filenames within our application configuration.