You've already forked Atomcms-edit
043854cf3d
- Remove whichbrowser/parser, mockery/mockery, fruitcake/laravel-debugbar,
itsgoingd/clockwork (all unused)
- Replace qirolab/laravel-themer (dev-master) with custom App\Services\ThemeService
and App\Providers\ThemeServiceProvider
- Drop doctrine/dbal: rewrite all ->change() calls in 8 migrations to raw
DB::statement('ALTER TABLE ... MODIFY ...') SQL
- RenameColumn() kept intact (works without dbal in Laravel 13)
- Fix 2026_04_04 migration: inverted column-exists logic corrected
- Clear bootstrap cache to remove stale references to removed packages
25 lines
520 B
PHP
25 lines
520 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Services\ThemeService;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class ThemeServiceProvider extends ServiceProvider
|
|
{
|
|
public function register(): void
|
|
{
|
|
$this->app->singleton(ThemeService::class, fn () => new ThemeService);
|
|
}
|
|
|
|
public function boot(): void
|
|
{
|
|
if (config('theme.active')) {
|
|
app(ThemeService::class)->set(
|
|
config('theme.active'),
|
|
config('theme.parent'),
|
|
);
|
|
}
|
|
}
|
|
}
|