Skip to content

Commit

Permalink
[fix] fix output buffer on listener
Browse files Browse the repository at this point in the history
  • Loading branch information
alissn committed Aug 11, 2024
1 parent ed8f8dc commit 041da93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/LaravelModulesServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use Nwidart\Modules\Contracts\RepositoryInterface;
use Nwidart\Modules\Exceptions\InvalidActivatorClass;
use Nwidart\Modules\Support\Stub;
use Symfony\Component\Console\Output\NullOutput;

class LaravelModulesServiceProvider extends ModulesServiceProvider
{
Expand Down Expand Up @@ -124,7 +125,7 @@ private function registerEvents(): void
'modules.*.'.ModuleEvent::DISABLED,
'modules.*.'.ModuleEvent::ENABLED,
],
fn () => Artisan::call('module:clear-compiled')
fn () => Artisan::call('module:clear-compiled', outputBuffer: new NullOutput)
);
}
}

0 comments on commit 041da93

Please sign in to comment.