Skip to content

Commit ab77700

Browse files
committed
chore: Alias GrokAI instead of GrokClient
1 parent 11beb63 commit ab77700

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/Providers/GrokServiceProvider.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,11 @@ public function register(): void
2323
);
2424
});
2525

26-
$this->app->singleton(GrokClient::class, function ($app) {
27-
return new GrokClient($app->make(GrokConfig::class));
28-
});
26+
$this->app->singleton(GrokClient::class, fn ($app) => new GrokClient($app->make(GrokConfig::class)));
2927

30-
$this->app->singleton(GrokAI::class, function ($app) {
31-
return new GrokAI($app->make(GrokClient::class));
32-
});
28+
$this->app->singleton(GrokAI::class, fn ($app) => new GrokAI($app->make(GrokClient::class)));
3329

34-
$this->app->alias(GrokClient::class, 'grok-ai');
30+
$this->app->alias(GrokAI::class, 'grok-ai');
3531
}
3632

3733
public function boot(): void

0 commit comments

Comments
 (0)