mirror of
https://github.com/anikeen-com/print-cli.git
synced 2026-11-01 05:09:31 +00:00
Add autowire
Add logs command Improve print jobs handling Improve installation/documentation
This commit is contained in:
1 parent
a152074975
commit
621b6cb5c0
17 files changed
+645
-484
No files matched your search
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Support;
|
||||
|
||||
use Illuminate\Support\Collection;
|
||||
use Smalot\Cups\Builder\Builder;
|
||||
use Smalot\Cups\Manager\PrinterManager as CupsPrinterManager;
|
||||
use Smalot\Cups\Transport\Client;
|
||||
use Smalot\Cups\Transport\ResponseParser;
|
||||
|
||||
class PrinterManager
|
||||
{
|
||||
protected CupsPrinterManager $printerManager;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$client = new Client();
|
||||
$builder = new Builder();
|
||||
$responseParser = new ResponseParser();
|
||||
$this->printerManager = new CupsPrinterManager($builder, $client, $responseParser);
|
||||
}
|
||||
|
||||
public function getList(): Collection
|
||||
{
|
||||
return Collection::make($this->printerManager->getList());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user