Skip to content

Commit

Permalink
Merge branch '4.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
papac committed Nov 2, 2019
2 parents 3fdbf68 + 6e3d0b0 commit 2eda535
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions config/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ function public_path($path = '')
}
}

if (!function_exists('component_path')) {
if (!function_exists('frontend_path')) {
/**
* Get component directory
* Get frontend directory
*
* @param string $path
* @return string
*/
function component_path($path = '')
function frontend_path($path = '')
{
return __DIR__.'/../components/'.ltrim($path, '/');
return __DIR__.'/../frontend/'.ltrim($path, '/');
}
}

Expand All @@ -66,19 +66,6 @@ function storage_path($path = '')
}
}

if (!function_exists('db_path')) {
/**
* Get db directory
*
* @param string $path
* @return string
*/
function db_path($path = '')
{
return __DIR__.'/../db/'.ltrim($path, '/');
}
}

if (! function_exists('base_path')) {
/**
* Returns the path of the root folder of the bow framework application
Expand Down

0 comments on commit 2eda535

Please sign in to comment.