Skip to content

Commit

Permalink
Config path method for lumen
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolajlovenhardt committed Nov 16, 2016
1 parent cced9ab commit 7625404
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@
"autoload": {
"psr-4": {
"LaravelGoogleAds\\": "src/LaravelGoogleAds"
}
},
"files": [
"src/helpers.php"
]
},
"autoload-dev": {
"psr-4": {
Expand Down
14 changes: 14 additions & 0 deletions src/LaravelGoogleAds/helpers.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

if (!function_exists('config_path')) {
/**
* Get the configuration path.
*
* @param string $path
* @return string
*/
function config_path($path = '')
{
return app()->basePath() . '/config' . ($path ? '/' . $path : $path);
}
}

0 comments on commit 7625404

Please sign in to comment.