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