mirror of
https://github.com/wallabag/wallabag.git
synced 2025-10-05 19:31:02 +00:00
Migrate to Symfony attributes
This commit is contained in:
parent
6a3780ce81
commit
2a60d8473d
46 changed files with 143 additions and 256 deletions
|
@ -26,9 +26,9 @@ class PocketController extends AbstractController
|
|||
}
|
||||
|
||||
/**
|
||||
* @Route("/import/pocket", name="import_pocket", methods={"GET"})
|
||||
* @IsGranted("IMPORT_ENTRIES")
|
||||
*/
|
||||
#[Route(path: '/import/pocket', name: 'import_pocket', methods: ['GET'])]
|
||||
public function indexAction(PocketImport $pocketImport)
|
||||
{
|
||||
$pocket = $this->getPocketImportService($pocketImport);
|
||||
|
@ -48,9 +48,9 @@ class PocketController extends AbstractController
|
|||
}
|
||||
|
||||
/**
|
||||
* @Route("/import/pocket/auth", name="import_pocket_auth", methods={"POST"})
|
||||
* @IsGranted("IMPORT_ENTRIES")
|
||||
*/
|
||||
#[Route(path: '/import/pocket/auth', name: 'import_pocket_auth', methods: ['POST'])]
|
||||
public function authAction(Request $request, PocketImport $pocketImport)
|
||||
{
|
||||
$requestToken = $this->getPocketImportService($pocketImport)
|
||||
|
@ -79,9 +79,9 @@ class PocketController extends AbstractController
|
|||
}
|
||||
|
||||
/**
|
||||
* @Route("/import/pocket/callback", name="import_pocket_callback", methods={"GET"})
|
||||
* @IsGranted("IMPORT_ENTRIES")
|
||||
*/
|
||||
#[Route(path: '/import/pocket/callback', name: 'import_pocket_callback', methods: ['GET'])]
|
||||
public function callbackAction(PocketImport $pocketImport, TranslatorInterface $translator)
|
||||
{
|
||||
$message = 'flashes.import.notice.failed';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue