Skip to content

Commit

Permalink
Fix package auto-discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhamp committed May 2, 2024
1 parent 4181ef9 commit 485835c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/NativeServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ public function packageRegistered()
{
$this->mergeConfigFrom($this->package->basePath('/../config/nativephp-internal.php'), 'nativephp-internal');

$this->app->singleton(FreshCommand::class, function ($app) {
return new FreshCommand($app['migrator']);
});

$this->app->singleton(MigrateCommand::class, function ($app) {
return new MigrateCommand($app['migrator'], $app['events']);
});
Expand Down

0 comments on commit 485835c

Please sign in to comment.