mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-25 20:39:31 +00:00
Removed sensio/framework-extra-bundle as it was abandoned and is not needed anymore
This commit is contained in:
parent
3d7cf8f7f3
commit
8f424f3273
6 changed files with 38 additions and 115 deletions
16
config/routes/attributes.yaml
Normal file
16
config/routes/attributes.yaml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
controllers:
|
||||
resource:
|
||||
path: ../../src/Controller/
|
||||
namespace: App\Controller
|
||||
type: attribute
|
||||
prefix: '{_locale}'
|
||||
|
||||
defaults:
|
||||
_locale: '%kernel.default_locale%'
|
||||
requirements:
|
||||
# Match only locales like de_DE or de
|
||||
_locale: "^[a-z]{2}(_[A-Z]{2})?$"
|
||||
|
||||
kernel:
|
||||
resource: ../../src/Kernel.php
|
||||
type: attribute
|
||||
Loading…
Add table
Add a link
Reference in a new issue