[L6] Temporarily hack around theme system to maintain views without having to edit tons of code

This commit is contained in:
Dane Everitt
2019-09-05 20:17:40 -07:00
parent 0d6cf54314
commit a9976c723e
5 changed files with 43 additions and 63 deletions

View File

@@ -10,6 +10,7 @@ use Pterodactyl\Models\Subuser;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\ServiceProvider;
use Pterodactyl\Observers\UserObserver;
use Pterodactyl\Extensions\Themes\Theme;
use Pterodactyl\Observers\ServerObserver;
use Pterodactyl\Observers\SubuserObserver;
@@ -40,6 +41,10 @@ class AppServiceProvider extends ServiceProvider
if (! config('pterodactyl.load_environment_only', false) && $this->app->environment() !== 'testing') {
$this->app->register(SettingsServiceProvider::class);
}
$this->app->singleton('extensions.themes', function () {
return new Theme;
});
}
/**