mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 05:24:29 -04:00
Catch EPC QR failures
This commit is contained in:
parent
aade9c8f0b
commit
79d032fa4b
@ -51,7 +51,7 @@ class EpcQrGenerator
|
||||
try {
|
||||
$qr = $writer->writeString($this->encodeMessage());
|
||||
}
|
||||
catch(\Exception $e){
|
||||
catch(BaconQrCode\Exception\WriterException $e){
|
||||
return '';
|
||||
}
|
||||
return "<svg viewBox='0 0 200 200' width='200' height='200' x='0' y='0' xmlns='http://www.w3.org/2000/svg'>
|
||||
|
@ -40,12 +40,8 @@ use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
class TaskSchedulerService
|
||||
{
|
||||
public Scheduler $scheduler;
|
||||
|
||||
public function __construct(Scheduler $scheduler)
|
||||
{
|
||||
$this->scheduler = $scheduler;
|
||||
}
|
||||
public function __construct(public Scheduler $scheduler) {}
|
||||
|
||||
public function store(Scheduler $scheduler, CreateScheduledTaskRequest $request)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user