Add autowire

Add logs command
Improve print jobs handling
Improve installation/documentation
This commit is contained in:
René Preuß
2025-07-29 22:16:32 +02:00
parent a152074975
commit 621b6cb5c0
17 changed files with 645 additions and 484 deletions

View File

@@ -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());
}
}