Updated doctrine/annotations recipe.

This commit is contained in:
Jan Böhmer 2020-05-10 15:59:29 +02:00
parent f7bc5a362b
commit c0d549967d
2 changed files with 6 additions and 2 deletions

View file

@ -1,10 +1,14 @@
controllers:
resource: ../../src/Controller/
type: annotation
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: annotation