diff --git a/src/Anouar/Fpdf/FpdfServiceProvider.php b/src/Anouar/Fpdf/FpdfServiceProvider.php index fe9f135..14801ac 100644 --- a/src/Anouar/Fpdf/FpdfServiceProvider.php +++ b/src/Anouar/Fpdf/FpdfServiceProvider.php @@ -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; }); } @@ -34,4 +33,4 @@ public function provides() return array('fpdf'); } -} \ No newline at end of file +}