Skip to content

Commit ac46ca2

Browse files
authored
Merge pull request #79 from DrowningElysium/patch-1
Make the factory Injectable
2 parents 18abbf5 + 5fd0b00 commit ac46ca2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/FeedsServiceProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function boot()
3030
*/
3131
public function register()
3232
{
33-
$this->app->singleton('Feeds', function () {
33+
$this->app->singleton(FeedsFactory::class, function () {
3434
$config = config('feeds');
3535

3636
if (! $config) {
@@ -39,6 +39,7 @@ public function register()
3939

4040
return new FeedsFactory($config);
4141
});
42+
$this->app->alias(FeedsFactory::class, 'Feeds');
4243
}
4344

4445
/**

0 commit comments

Comments
 (0)