Skip to content

Commit

Permalink
Fixed conflicting PDF facade namespace and corrected php version
Browse files Browse the repository at this point in the history
Updated composer to have the correct config to install dependancies that
work for 7.0
  • Loading branch information
ssddanbrown committed Dec 4, 2017
1 parent 7668a99 commit 6ebe8bf
Show file tree
Hide file tree
Showing 5 changed files with 163 additions and 151 deletions.
2 changes: 1 addition & 1 deletion app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ class Handler extends ExceptionHandler

/**
* Report or log an exception.
*
* This is a great spot to send exceptions to Sentry, Bugsnag, etc.
*
* @param \Exception $e
* @return mixed
*/
public function report(Exception $e)
{
Expand Down
2 changes: 1 addition & 1 deletion app/Services/ExportService.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ protected function htmlToPdf($html)
$pdf = \SnappyPDF::loadHTML($containedHtml);
$pdf->setOption('print-media-type', true);
} else {
$pdf = \PDF::loadHTML($containedHtml);
$pdf = \DomPDF::loadHTML($containedHtml);
}
return $pdf->output();
}
Expand Down
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"php": "7.0"
"platform": {
"php": "7.0"
}
}
}
Loading

0 comments on commit 6ebe8bf

Please sign in to comment.