From 833c8a3c2fb74790cda727283a2555df0df99182 Mon Sep 17 00:00:00 2001 From: Cesar Landeros Delgado Date: Sat, 28 Jan 2017 11:17:18 -0600 Subject: [PATCH] Updated the fpdf service provider for Laravel 5.4 The 5.4 release of Laravel dropped the `share` container method and they recommend to use the `singleton` method instead. --- src/Anouar/Fpdf/FpdfServiceProvider.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 +}