Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions config/routes/shop/partial/product.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ sylius_shop_partial_product_index_latest:
- "expr:service('sylius.context.locale').getLocaleCode()"
- '!!int $count'

#sylius_shop_partial_product_show_by_slug:
# path: /{slug}
# methods: [GET]
# defaults:
# _controller: sylius.controller.product::showAction
# _sylius:
# template: $template
# repository:
# method: findOneByChannelAndSlug
# arguments:
# - "expr:service('sylius.context.channel').getChannel()"
# - "expr:service('sylius.context.locale').getLocaleCode()"
# - $slug
sylius_shop_partial_product_show_by_slug:
path: /{slug}
methods: [GET]
defaults:
_controller: sylius.controller.product::showAction
_sylius:
template: $template
repository:
method: findOneByChannelAndSlug
arguments:
- "expr:service('sylius.context.channel').getChannel()"
- "expr:service('sylius.context.locale').getLocaleCode()"
- $slug