mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Applied rector rules up to symfony 6.2
This commit is contained in:
parent
88ea920dfb
commit
a43af180a7
145 changed files with 563 additions and 889 deletions
|
@ -51,9 +51,7 @@ use Symfony\Component\HttpFoundation\Request;
|
|||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
|
||||
/**
|
||||
* @Route("/scan")
|
||||
*/
|
||||
#[Route(path: '/scan')]
|
||||
class ScanController extends AbstractController
|
||||
{
|
||||
protected BarcodeRedirector $barcodeParser;
|
||||
|
@ -65,9 +63,7 @@ class ScanController extends AbstractController
|
|||
$this->barcodeNormalizer = $barcodeNormalizer;
|
||||
}
|
||||
|
||||
/**
|
||||
* @Route("", name="scan_dialog")
|
||||
*/
|
||||
#[Route(path: '', name: 'scan_dialog')]
|
||||
public function dialog(Request $request): Response
|
||||
{
|
||||
$this->denyAccessUnlessGranted('@tools.label_scanner');
|
||||
|
@ -91,7 +87,7 @@ class ScanController extends AbstractController
|
|||
}
|
||||
}
|
||||
|
||||
return $this->renderForm('label_system/scanner/scanner.html.twig', [
|
||||
return $this->render('label_system/scanner/scanner.html.twig', [
|
||||
'form' => $form,
|
||||
]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue