Skip to content

Commit

Permalink
Fix missing method
Browse files Browse the repository at this point in the history
Share method will be removed as of Laravel 5.4

laravel/framework@1a1969b#diff-52441e04e14c52275cd5d09e8f958981L300
  • Loading branch information
micaelpdias committed Jan 10, 2017
1 parent 56e5b1e commit 58534d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ServiceProvider.php
Expand Up @@ -28,7 +28,7 @@ public function boot()
$this->publishes([$configPath => config_path('snappy.php')], 'config');

if($this->app['config']->get('snappy.pdf.enabled')){
$this->app['snappy.pdf'] = $this->app->share(function($app)
$this->app->singleton('snappy.pdf', function($app)
{
$binary = $app['config']->get('snappy.pdf.binary', '/usr/local/bin/wkhtmltopdf');
$options = $app['config']->get('snappy.pdf.options', array());
Expand All @@ -43,7 +43,7 @@ public function boot()
return $snappy;
});

$this->app['snappy.pdf.wrapper'] = $this->app->share(function($app)
$this->app->singleton('snappy.pdf.wrapper', function($app)
{
return new PdfWrapper($app['snappy.pdf']);
});
Expand All @@ -52,7 +52,7 @@ public function boot()


if($this->app['config']->get('snappy.image.enabled')){
$this->app['snappy.image'] = $this->app->share(function($app)
$this->app->singleton('snappy.image', function($app)
{
$binary = $app['config']->get('snappy.image.binary', '/usr/local/bin/wkhtmltoimage');
$options = $app['config']->get('snappy.image.options', array());
Expand All @@ -67,7 +67,7 @@ public function boot()
return $image;
});

$this->app['snappy.image.wrapper'] = $this->app->share(function($app)
$this->app->singleton('snappy.image.wrapper', function($app)
{
return new ImageWrapper($app['snappy.image']);
});
Expand Down

0 comments on commit 58534d1

Please sign in to comment.