Moved config dir into app dir

Closes #1506
This commit is contained in:
Dan Brown 2019-07-06 13:44:50 +01:00
parent 5c70413784
commit 97fdfa6ebe
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9
18 changed files with 20 additions and 2 deletions

19
app/Application.php Normal file
View File

@ -0,0 +1,19 @@
<?php
namespace BookStack;
class Application extends \Illuminate\Foundation\Application
{
/**
* Get the path to the application configuration files.
*
* @param string $path Optionally, a path to append to the config path
* @return string
*/
public function configPath($path = '')
{
return $this->basePath.DIRECTORY_SEPARATOR.'app'.DIRECTORY_SEPARATOR.'Config'.($path ? DIRECTORY_SEPARATOR.$path : $path);
}
}

View File

@ -9,7 +9,6 @@ use BookStack\Entities\Page;
use BookStack\Settings\Setting;
use BookStack\Settings\SettingService;
use Illuminate\Database\Eloquent\Relations\Relation;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\View;
use Illuminate\Support\ServiceProvider;
use Schema;

View File

@ -11,7 +11,7 @@
|
*/
$app = new Illuminate\Foundation\Application(
$app = new \BookStack\Application(
realpath(__DIR__.'/../')
);