Skip to content

Commit 4374737

Browse files
author
Roumen Damianoff
authored
Merge pull request #121 from hackel/patch-1
Add sitemap service alias to provides method to prevent BindingResolutionException
2 parents 00f9920 + 7a69806 commit 4374737

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Roumen/Sitemap/SitemapServiceProvider.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php namespace Roumen\Sitemap;
22

33
use Illuminate\Support\ServiceProvider;
4+
use Roumen\Sitemap\Sitemap;
45

56
class SitemapServiceProvider extends ServiceProvider
67
{
@@ -51,7 +52,7 @@ public function register()
5152
return new Sitemap($config);
5253
});
5354

54-
$this->app->alias('sitemap','Roumen\Sitemap\Sitemap');
55+
$this->app->alias('sitemap', Sitemap::class);
5556
}
5657

5758
/**
@@ -61,6 +62,6 @@ public function register()
6162
*/
6263
public function provides()
6364
{
64-
return ['sitemap'];
65+
return ['sitemap', Sitemap::class];
6566
}
6667
}

0 commit comments

Comments
 (0)