Skip to content

Commit 4b65b32

Browse files
author
Max
committed
cleanup config_path
1 parent 59965a1 commit 4b65b32

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

helpers.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
/**
44
* Get the configuration path.
55
*
6+
* This is a polyfill for the missing shorthand function in lumen.
7+
*
68
* @param string $path
79
* @return string
810
*/
911
function config_path($path = '')
1012
{
11-
return app()->basePath() . DIRECTORY_SEPARATOR . 'config' . ($path ? DIRECTORY_SEPARATOR . $path : $path);
13+
return app()->basePath('config') . ($path ? DIRECTORY_SEPARATOR . $path : $path);
1214
}
1315
}

0 commit comments

Comments
 (0)