Use attributes as route provider (instead of annotations)

This commit is contained in:
Jan Böhmer 2023-05-28 01:57:49 +02:00
parent 7191ece7a5
commit 34a65419c7
2 changed files with 5 additions and 9 deletions

View file

@ -1,9 +1,3 @@
controllers:
resource:
path: ../src/Controller/
namespace: App\Controller
type: attribute
# Redirect every url without an locale to the locale of the user/the global base locale
scan_qr:

View file

@ -1,6 +1,8 @@
controllers:
resource: ../../src/Controller/
type: annotation
resource:
path: ../../src/Controller/
namespace: App\Controller
type: attribute
prefix: '{_locale}'
defaults:
@ -11,4 +13,4 @@ controllers:
kernel:
resource: ../../src/Kernel.php
type: annotation
type: attribute