Skip to content

Commit

Permalink
[UPGRADE] Mention locale requirement change in UPGRADE-1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Zales0123 committed Jul 4, 2019
1 parent 8ad03b5 commit c92e6a5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions UPGRADE-1.5.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}))?$
```

0 comments on commit c92e6a5

Please sign in to comment.