Separate text filter decorators.

This commit is contained in:
kplaczek
2019-03-01 07:58:22 +01:00
parent ba3f2e954a
commit 246f410953
16 changed files with 357 additions and 109 deletions

View File

@@ -5,9 +5,7 @@ namespace App\Paper;
use Illuminate\Support\Facades\DB;
use Mike42\Escpos\PrintConnectors\FilePrintConnector;
use Mike42\Escpos\Printer;
use App\Paper\HtmlToPos;
use Mike42\Escpos\EscposImage;
use Mockery\Exception;
class Paper
{
@@ -23,7 +21,7 @@ class Paper
try {
$this->connector = new FilePrintConnector("/dev/usb/lp0");
$this->printer = new Printer($this->connector);
} catch (Exception $e) {
} catch (\Exception $e) {
die($e->getMessage());
}
}