mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Use attributes as route provider (instead of annotations)
This commit is contained in:
parent
7191ece7a5
commit
34a65419c7
2 changed files with 5 additions and 9 deletions
|
@ -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
|
# Redirect every url without an locale to the locale of the user/the global base locale
|
||||||
|
|
||||||
scan_qr:
|
scan_qr:
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
controllers:
|
controllers:
|
||||||
resource: ../../src/Controller/
|
resource:
|
||||||
type: annotation
|
path: ../../src/Controller/
|
||||||
|
namespace: App\Controller
|
||||||
|
type: attribute
|
||||||
prefix: '{_locale}'
|
prefix: '{_locale}'
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
|
@ -11,4 +13,4 @@ controllers:
|
||||||
|
|
||||||
kernel:
|
kernel:
|
||||||
resource: ../../src/Kernel.php
|
resource: ../../src/Kernel.php
|
||||||
type: annotation
|
type: attribute
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue