]> BookStack Code Mirror - bookstack/commitdiff
Moved config dir into app dir
authorDan Brown <redacted>
Sat, 6 Jul 2019 12:44:50 +0000 (13:44 +0100)
committerDan Brown <redacted>
Sat, 6 Jul 2019 12:44:50 +0000 (13:44 +0100)
Closes #1506

18 files changed:
app/Application.php [new file with mode: 0644]
app/Config/app.php [moved from config/app.php with 100% similarity]
app/Config/auth.php [moved from config/auth.php with 100% similarity]
app/Config/broadcasting.php [moved from config/broadcasting.php with 100% similarity]
app/Config/cache.php [moved from config/cache.php with 100% similarity]
app/Config/database.php [moved from config/database.php with 100% similarity]
app/Config/debugbar.php [moved from config/debugbar.php with 100% similarity]
app/Config/dompdf.php [moved from config/dompdf.php with 100% similarity]
app/Config/filesystems.php [moved from config/filesystems.php with 100% similarity]
app/Config/mail.php [moved from config/mail.php with 100% similarity]
app/Config/queue.php [moved from config/queue.php with 100% similarity]
app/Config/services.php [moved from config/services.php with 100% similarity]
app/Config/session.php [moved from config/session.php with 100% similarity]
app/Config/setting-defaults.php [moved from config/setting-defaults.php with 100% similarity]
app/Config/snappy.php [moved from config/snappy.php with 100% similarity]
app/Config/view.php [moved from config/view.php with 100% similarity]
app/Providers/AppServiceProvider.php
bootstrap/app.php

diff --git a/app/Application.php b/app/Application.php
new file mode 100644 (file)
index 0000000..8c56e9d
--- /dev/null
@@ -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
similarity index 100%
rename from config/app.php
rename to app/Config/app.php
similarity index 100%
rename from config/auth.php
rename to app/Config/auth.php
similarity index 100%
rename from config/cache.php
rename to app/Config/cache.php
similarity index 100%
rename from config/database.php
rename to app/Config/database.php
similarity index 100%
rename from config/debugbar.php
rename to app/Config/debugbar.php
similarity index 100%
rename from config/dompdf.php
rename to app/Config/dompdf.php
similarity index 100%
rename from config/mail.php
rename to app/Config/mail.php
similarity index 100%
rename from config/queue.php
rename to app/Config/queue.php
similarity index 100%
rename from config/services.php
rename to app/Config/services.php
similarity index 100%
rename from config/session.php
rename to app/Config/session.php
similarity index 100%
rename from config/snappy.php
rename to app/Config/snappy.php
similarity index 100%
rename from config/view.php
rename to app/Config/view.php
index 9b91ba126c5878801a82f71f201a9dbbb753706a..fa10d4874ca25178211a82888633fc8e4a781268 100644 (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;
index 371f93913b7a409ce03e33cf084b286d54e009ff..516980cc10c745783b9668fcf7d144ffa683556b 100644 (file)
@@ -11,7 +11,7 @@
 |
 */
 
-$app = new Illuminate\Foundation\Application(
+$app = new \BookStack\Application(
     realpath(__DIR__.'/../')
 );