Skip to content

Commit a014e84

Browse files
Merge pull request #8 from heidilux/master
Resolves #7
2 parents 15b96b4 + d3d237d commit a014e84

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ReportMedia/PdfReport.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace SamuelTerra22\ReportGenerator\ReportMedia;
44

5+
use Illuminate\Contracts\Container\BindingResolutionException;
56
use SamuelTerra22\ReportGenerator\ReportGenerator;
67

78
class PdfReport extends ReportGenerator
@@ -37,10 +38,10 @@ public function make()
3738
$pdf->setOption('footer-font-size', 10);
3839
$pdf->setOption('footer-left', 'Page [page] of [topage]');
3940
$pdf->setOption('footer-right', 'Date Printed: ' . date('d M Y H:i:s'));
40-
} catch (\ReflectionException $e) {
41+
} catch (\ReflectionException | BindingResolutionException $e) {
4142
try {
4243
$pdf = \App::make('dompdf.wrapper');
43-
} catch (\ReflectionException $e) {
44+
} catch (\ReflectionException | BindingResolutionException $e) {
4445
throw new \Exception('Please install either barryvdh/laravel-snappy or laravel-dompdf to generate PDF Report!');
4546
}
4647
}

0 commit comments

Comments
 (0)