diff --git a/config/routes/annotations.yaml b/config/routes/annotations.yaml index f47690e7..892de9d5 100644 --- a/config/routes/annotations.yaml +++ b/config/routes/annotations.yaml @@ -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 diff --git a/symfony.lock b/symfony.lock index c5206fa2..96878316 100644 --- a/symfony.lock +++ b/symfony.lock @@ -35,7 +35,7 @@ "repo": "github.com/symfony/recipes", "branch": "master", "version": "1.0", - "ref": "cb4152ebcadbe620ea2261da1a1c5a9b8cea7672" + "ref": "a2759dd6123694c8d901d0ec80006e044c2e6457" }, "files": [ "./config/routes/annotations.yaml"