-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
BugConfirmed bugs or bugfixes.Confirmed bugs or bugfixes.ShopShopBundle related issues and PRs.ShopBundle related issues and PRs.
Description
Sylius version affected: 2.0.*
Description
When disabling localised urls in Sylius 2 an exception is thrown:
In CheckExceptionOnInvalidReferenceBehaviorPass.php line 116:
The service "sylius_shop.locale_switcher" has a dependency on a non-existent service "sylius_shop.locale_storage".
Steps to reproduce
- Add to
config/packages/_sylius.yaml:
sylius_shop:
locale_switcher: storage- Update
config/routes/sylius_shop.ymlfrom:
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}))?$
sylius_shop_default_locale:
path: /
methods: [GET]
defaults:
_controller: sylius_shop.controller.locale_switch::switchActionto:
sylius_shop:
resource: "@SyliusShopBundle/Resources/config/routing.yml"
- Clear cache using
bin/console cache:clear
Possible Solution
Fix configuration of the sylius_shop.locale_switcher service.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugConfirmed bugs or bugfixes.Confirmed bugs or bugfixes.ShopShopBundle related issues and PRs.ShopBundle related issues and PRs.