Skip to content

Commit

Permalink
Fix deprecated share method
Browse files Browse the repository at this point in the history
  • Loading branch information
grinry authored Jan 30, 2017
1 parent 3e9362a commit 30417f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MultiLanguageServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function provides()
*/
protected function registerUrlGenerator()
{
$this->app['url'] = $this->app->share(function ($app) {
$this->app->singleton('url', function ($app) {
$routes = $app['router']->getRoutes();

// The URL generator needs the route collection that exists on the router.
Expand Down

0 comments on commit 30417f1

Please sign in to comment.