diff --git a/.gitignore b/.gitignore index dc55505e..ac88a24a 100644 --- a/.gitignore +++ b/.gitignore @@ -10,5 +10,9 @@ /.default_queries.php /pkg /.bundle +# Ignore configuration files +config.php +config.*.php + *.pem !tests/Http/Authentication/samples/*.pem diff --git a/app/Factory/ConfigFactory.php b/app/Factory/ConfigFactory.php index e52ac0ff..0fac7945 100644 --- a/app/Factory/ConfigFactory.php +++ b/app/Factory/ConfigFactory.php @@ -5,20 +5,15 @@ namespace CultuurNet\UDB3\SearchService\Factory; use Noodlehaus\Config; -use Noodlehaus\Parser\Yaml; +use Noodlehaus\Parser\Php; final class ConfigFactory { public static function create(string $configDir): Config { $configFiles = [ - $configDir . '/config.yml', - $configDir . '/facet_mapping_facilities.yml', - $configDir . '/facet_mapping_regions.yml', - $configDir . '/facet_mapping_themes.yml', - $configDir . '/facet_mapping_types.yml', - $configDir . '/features.yml', + $configDir . '/config.php', ]; - return Config::load($configFiles, new Yaml()); + return Config::load($configFiles, new Php()); } }