Not exactly the same case, but here is how I wrote a multi layer fallback system in my project, is tested and working: config keys
Not exactly the same case, but here is how I wrote a multi layer fallback system in my project, is tested and working: config keys