Skip to content

Commit 839b29d

Browse files
committed
refactor: config() uses Factories::get()
1 parent 06e0753 commit 839b29d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

system/Common.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,10 @@ function command(string $command)
214214
*/
215215
function config(string $name, bool $getShared = true)
216216
{
217+
if ($getShared) {
218+
return Factories::get('config', $name);
219+
}
220+
217221
return Factories::config($name, ['getShared' => $getShared]);
218222
}
219223
}

0 commit comments

Comments
 (0)