We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43251f6 commit 7315c65Copy full SHA for 7315c65
src/SteerApiServiceProvider.php
@@ -6,13 +6,23 @@ class SteerApiServiceProvider extends \Illuminate\Support\ServiceProvider
6
{
7
public function register(): void
8
9
+ // For Facade
10
$this->app->singleton('steerapi', function (\Illuminate\Contracts\Foundation\Application $app) {
11
return new SteerConnector(
12
config('steer.api_key'),
13
config('steer.sub_id'),
14
config('steer.base_url')
15
);
16
});
17
+
18
+ // For Dependency Injection
19
+ $this->app->singleton(SteerConnector::class, function (\Illuminate\Contracts\Foundation\Application $app) {
20
+ return new SteerConnector(
21
+ config('steer.api_key'),
22
+ config('steer.sub_id'),
23
+ config('steer.base_url')
24
+ );
25
+ });
26
}
27
28
public function boot(): void
0 commit comments