Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Blair2004 committed Jan 7, 2024
1 parent b34fcd4 commit 9e78bea
Show file tree
Hide file tree
Showing 4 changed files with 1,461 additions and 1,046 deletions.
3 changes: 2 additions & 1 deletion app/Providers/ModulesServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use App\Events\ModulesBootedEvent;
use App\Events\ModulesLoadedEvent;
use App\Services\Helper;
use App\Services\ModulesService;
use Illuminate\Support\ServiceProvider;

Expand Down Expand Up @@ -47,7 +48,7 @@ public function register()
$this->app->singleton(ModulesService::class, function ($app) {
$this->modules = new ModulesService;

if (ns()->installed(true)) {
if ( Helper::installed(true)) {
$this->modules->load();

collect($this->modules->getEnabled())->each(fn($module) => $this->modules->boot($module));
Expand Down
1 change: 1 addition & 0 deletions app/Services/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ public function set( $key, $value, $expiration = null )
$option->array = false;

$this->encodeOptionValue( $option, $value );
}

$option->key = $key;
$option->array = false;
Expand Down
Loading

0 comments on commit 9e78bea

Please sign in to comment.