Skip to content

Commit

Permalink
[revert] revert register modules
Browse files Browse the repository at this point in the history
  • Loading branch information
alissn committed Sep 19, 2024
1 parent d001c04 commit 91f6457
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/ModulesServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Nwidart\Modules;

use Illuminate\Filesystem\Filesystem;
use Illuminate\Foundation\ProviderRepository;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Str;
use Nwidart\Modules\Providers\ConsoleServiceProvider;
Expand All @@ -26,15 +24,7 @@ public function register() {}
*/
protected function registerModules()
{
// $this->app->register(\Nwidart\Modules\Providers\BootstrapServiceProvider::class);

$manifest = app()->make(ModuleManifest::class);

(new ProviderRepository($this->app, new Filesystem, $this->getCachedModulePath()))
->load($manifest->providersArray());

$manifest->registerFiles();

$this->app->register(\Nwidart\Modules\Providers\BootstrapServiceProvider::class);
}

/**
Expand Down

0 comments on commit 91f6457

Please sign in to comment.