mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-05 20:57:12 +00:00
[UPGRADE] Mention locale requirement change in UPGRADE-1.5
This commit is contained in:
parent
8ad03b5ae7
commit
c92e6a5f4e
1 changed files with 12 additions and 0 deletions
|
|
@ -11,3 +11,15 @@ Copy [a new migration file](https://raw.githubusercontent.com/Sylius/Sylius-Stan
|
|||
```bash
|
||||
bin/console doctrine:migrations:migrate
|
||||
```
|
||||
|
||||
### Routing
|
||||
|
||||
- If you want to support extended locale codes, as introduced in [#10178](https://github.com/Sylius/Sylius/pull/10178), you should modify `_locale` requirement in `config/routes/sylius_shop.yml`
|
||||
|
||||
```yaml
|
||||
sylius_shop:
|
||||
resource: "@SyliusShopBundle/Resources/config/routing.yml"
|
||||
prefix: /{_locale}
|
||||
requirements:
|
||||
_locale: ^[A-Za-z]{2,4}(_([A-Za-z]{4}|[0-9]{3}))?(_([A-Za-z]{2}|[0-9]{3}))?$
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue