Refactored Databa config customizer so that it uses new structure

This commit is contained in:
Alejandro Celaya
2018-10-05 18:43:39 +02:00
parent 1b5081ae21
commit ebf2e459e8
5 changed files with 90 additions and 31 deletions

View File

@@ -40,3 +40,8 @@ function env($key, $default = null)
return trim($value);
}
function contains($needle, array $haystack)
{
return \in_array($needle, $haystack, true);
}