Skip to content

Commit

Permalink
Merge pull request #5 from believer-ufa/patch-1
Browse files Browse the repository at this point in the history
Update to support laravel 5.4+
  • Loading branch information
LaurentEsc authored Dec 10, 2017
2 parents b5d9412 + 11d5383 commit a0331d1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/LocalizationServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,16 @@ public function register()
$packageConfigFile, 'localization'
);

$this->app['localization.localize'] = $this->app->share(
function () {
$this->app->singleton('localization.localize', function () {
return new Localize();
}
);

$this->app['localization.router'] = $this->app->share(
function () {
$this->app->singleton('localization.router', function () {
return new Router();
}
);

}

}
}

0 comments on commit a0331d1

Please sign in to comment.