6cfe0ded85
Changes directory structure in src Renames parameters in config Removes built in User providers Adds translations to errors Removes docker and public files
17 lines
427 B
PHP
17 lines
427 B
PHP
<?php
|
|
|
|
namespace Kavalanche\Security;
|
|
|
|
function config(string $key) {
|
|
$config = yaml_parse_file(__DIR__ . '/parameters.yaml');
|
|
$userConfigPath = __DIR__ . '/../../../../config/security.yaml';
|
|
if (file_exists($userConfigPath)) {
|
|
$userConfig = yaml_parse_file($userConfigPath);
|
|
$config = array_merge($config, $userConfig);
|
|
}
|
|
|
|
if (!empty($config[$key])) {
|
|
return $config[$key];
|
|
}
|
|
}
|