1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-10-05 19:31:02 +00:00

Migrate to SensioLabs attributes

This commit is contained in:
Yassine Guedidi 2025-04-05 15:21:29 +02:00
parent a766826a69
commit 4e177e1778
30 changed files with 122 additions and 192 deletions

View file

@ -25,10 +25,8 @@ class PocketController extends AbstractController
) {
}
/**
* @IsGranted("IMPORT_ENTRIES")
*/
#[Route(path: '/import/pocket', name: 'import_pocket', methods: ['GET'])]
#[IsGranted('IMPORT_ENTRIES')]
public function indexAction(PocketImport $pocketImport)
{
$pocket = $this->getPocketImportService($pocketImport);
@ -47,10 +45,8 @@ class PocketController extends AbstractController
]);
}
/**
* @IsGranted("IMPORT_ENTRIES")
*/
#[Route(path: '/import/pocket/auth', name: 'import_pocket_auth', methods: ['POST'])]
#[IsGranted('IMPORT_ENTRIES')]
public function authAction(Request $request, PocketImport $pocketImport)
{
$requestToken = $this->getPocketImportService($pocketImport)
@ -78,10 +74,8 @@ class PocketController extends AbstractController
);
}
/**
* @IsGranted("IMPORT_ENTRIES")
*/
#[Route(path: '/import/pocket/callback', name: 'import_pocket_callback', methods: ['GET'])]
#[IsGranted('IMPORT_ENTRIES')]
public function callbackAction(PocketImport $pocketImport, TranslatorInterface $translator)
{
$message = 'flashes.import.notice.failed';