We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f521e1c commit 8efaec5Copy full SHA for 8efaec5
src/globals/config.php
@@ -19,6 +19,7 @@ function PathsConfig($setting = null)
19
'channels' => 'app/channels',
20
'components' => 'app/components',
21
'controllers' => 'app/controllers',
22
+ 'database' => 'app/database',
23
'databaseStorage' => 'storage/app/db',
24
'exceptions' => 'app/exceptions',
25
'events' => 'app/events',
@@ -94,5 +95,5 @@ function MailConfig($setting = null)
94
95
function MvcConfig($appConfig, $setting = null)
96
{
97
$config = \Leaf\Config::getStatic("mvc.config.$appConfig");
- return !$setting ? $config : $config[$setting];
98
+ return !$setting ? $config : ($config[$setting] ?? null);
99
}
0 commit comments