Skip to content

Commit

Permalink
Updated the fpdf service provider for Laravel 5.4
Browse files Browse the repository at this point in the history
The 5.4 release of Laravel dropped the `share` container method and they recommend to use the `singleton` method instead.
  • Loading branch information
CesarLanderos authored Jan 28, 2017
1 parent 54319e0 commit 833c8a3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Anouar/Fpdf/FpdfServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ class FpdfServiceProvider extends ServiceProvider {
*/
public function register()
{
$this->app['fpdf'] = $this->app->share(function($app)
{
$this->app->singleton('fpdf', function($app) {
return new Fpdf;
});
}
Expand All @@ -34,4 +33,4 @@ public function provides()
return array('fpdf');
}

}
}

0 comments on commit 833c8a3

Please sign in to comment.