Skip to content

NOW MANAGED ON CODEBERG

Moved config dir into app dir

Dan Brown97fdfa6ebe37
diff --git a/app/Application.php b/app/Application.php
new file mode 100644
index 000000000..8c56e9dac
--- /dev/null
+++ b/app/Application.php
@@ -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);
+ }
+
+}
\ No newline at end of file
diff --git a/config/app.php b/app/Config/app.php
similarity index 100%
rename from config/app.php
rename to app/Config/app.php
diff --git a/config/auth.php b/app/Config/auth.php
similarity index 100%
rename from config/auth.php
rename to app/Config/auth.php
diff --git a/config/broadcasting.php b/app/Config/broadcasting.php
similarity index 100%
rename from config/broadcasting.php
rename to app/Config/broadcasting.php
diff --git a/config/cache.php b/app/Config/cache.php
similarity index 100%
rename from config/cache.php
rename to app/Config/cache.php
diff --git a/config/database.php b/app/Config/database.php
similarity index 100%
rename from config/database.php
rename to app/Config/database.php
diff --git a/config/debugbar.php b/app/Config/debugbar.php
similarity index 100%
rename from config/debugbar.php
rename to app/Config/debugbar.php
diff --git a/config/dompdf.php b/app/Config/dompdf.php
similarity index 100%
rename from config/dompdf.php
rename to app/Config/dompdf.php
diff --git a/config/filesystems.php b/app/Config/filesystems.php
similarity index 100%
rename from config/filesystems.php
rename to app/Config/filesystems.php
diff --git a/config/mail.php b/app/Config/mail.php
similarity index 100%
rename from config/mail.php
rename to app/Config/mail.php
diff --git a/config/queue.php b/app/Config/queue.php
similarity index 100%
rename from config/queue.php
rename to app/Config/queue.php
diff --git a/config/services.php b/app/Config/services.php
similarity index 100%
rename from config/services.php
rename to app/Config/services.php
diff --git a/config/session.php b/app/Config/session.php
similarity index 100%
rename from config/session.php
rename to app/Config/session.php
diff --git a/config/setting-defaults.php b/app/Config/setting-defaults.php
similarity index 100%
rename from config/setting-defaults.php
rename to app/Config/setting-defaults.php
diff --git a/config/snappy.php b/app/Config/snappy.php
similarity index 100%
rename from config/snappy.php
rename to app/Config/snappy.php
diff --git a/config/view.php b/app/Config/view.php
similarity index 100%
rename from config/view.php
rename to app/Config/view.php
diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php
index 9b91ba126..fa10d4874 100644
--- a/app/Providers/AppServiceProvider.php
+++ b/app/Providers/AppServiceProvider.php
@@ -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;
diff --git a/bootstrap/app.php b/bootstrap/app.php
index 371f93913..516980cc1 100644
--- a/bootstrap/app.php
+++ b/bootstrap/app.php
@@ -11,7 +11,7 @@
|
*/
-$app = new Illuminate\Foundation\Application(
+$app = new \BookStack\Application(
realpath(__DIR__.'/../')
);