2019-07-06 20:44:50 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace BookStack;
|
|
|
|
|
|
|
|
class Application extends \Illuminate\Foundation\Application
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Get the path to the application configuration files.
|
|
|
|
*
|
2021-06-26 23:23:15 +08:00
|
|
|
* @param string $path Optionally, a path to append to the config path
|
|
|
|
*
|
2019-07-06 20:44:50 +08:00
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function configPath($path = '')
|
|
|
|
{
|
2019-09-07 06:36:16 +08:00
|
|
|
return $this->basePath
|
|
|
|
. DIRECTORY_SEPARATOR
|
|
|
|
. 'app'
|
|
|
|
. DIRECTORY_SEPARATOR
|
|
|
|
. 'Config'
|
2021-06-26 23:23:15 +08:00
|
|
|
. ($path ? DIRECTORY_SEPARATOR . $path : $path);
|
2019-07-06 20:44:50 +08:00
|
|
|
}
|
2019-09-16 01:29:51 +08:00
|
|
|
}
|