Skip to content

Commit

Permalink
added tempPath as config var
Browse files Browse the repository at this point in the history
  • Loading branch information
KuenzelIT committed Feb 4, 2015
1 parent a916899 commit 428324e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Barryvdh/Snappy/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ public function register()
if (false !== $timeout) {
$snappy->setTimeout($timeout);
}

if($app['config']->has('laravel-snappy::config.pdf.tempPath'))
$snappy->setTemporaryFolder($app['config']->get('laravel-snappy::config.pdf.tempPath'));

return $snappy;
});
Expand Down
1 change: 1 addition & 0 deletions src/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
'binary' => '/usr/local/bin/wkhtmltopdf',
'timeout' => false,
'options' => array(),
'tempPath' => base_path().'/app/storage/pdftemp'
),
'image' => array(
'enabled' => true,
Expand Down

0 comments on commit 428324e

Please sign in to comment.