Refactored LCSCBarcocdeScanResult to be an value object like the other Barcode results

This commit is contained in:
Jan Böhmer 2026-02-21 23:26:25 +01:00
parent 76584c3d99
commit 338c5ebf0b
7 changed files with 74 additions and 47 deletions

View file

@ -170,7 +170,7 @@ class ScanController extends AbstractController
{
// LCSC
if ($scanResult instanceof LCSCBarcodeScanResult) {
$lcscCode = $scanResult->getPC();
$lcscCode = $scanResult->lcscCode;
if ($lcscCode !== null && $lcscCode !== '') {
return $this->generateUrl('info_providers_create_part', [
'providerKey' => 'lcsc',