refactor #16954 [Shop] Deprecate unused routes (mpysiak)

This PR was merged into the 1.14 branch.

Discussion
----------

| Q               | A
|-----------------|-----
| Branch?         | 1.14
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | yes
| Related tickets | #16952
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.13 branch
 - Features and deprecations must be submitted against the 1.14 branch
 - Features, removing deprecations and BC breaks must be submitted against the 2.0 branch
 - Make sure that the correct base branch is set

 To be sure you are not breaking any Backward Compatibilities, check the documentation:
 https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->


Commits
-------

996fe292d1 Deprecate unused shop routes
This commit is contained in:
Grzegorz Sadowski 2024-09-18 07:38:50 +02:00 committed by GitHub
commit 2bec419770
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 24 additions and 0 deletions

View file

@ -143,3 +143,15 @@
- `sylius_admin_partial_taxon_show`
- `sylius_admin_partial_taxon_tree`
- `sylius_admin_render_attribute_forms`
- `sylius_shop_ajax_cart_add_item`
- `sylius_shop_ajax_cart_item_remove`
- `sylius_shop_ajax_user_check_action`
- `sylius_shop_partial_cart_summary`
- `sylius_shop_partial_cart_add_item`
- `sylius_shop_partial_channel_menu_taxon_index`
- `sylius_shop_partial_product_association_show`
- `sylius_shop_partial_product_index_latest`
- `sylius_shop_partial_product_review_latest`
- `sylius_shop_partial_product_show_by_slug`
- `sylius_shop_partial_taxon_index_by_code`
- `sylius_shop_partial_taxon_show_by_slug`

View file

@ -1,6 +1,7 @@
# This file is a part of the Sylius package.
# (c) Sylius Sp. z o.o.
# This route is deprecated since Sylius 1.14.0 and will be removed in 2.0.0.
sylius_shop_ajax_cart_add_item:
path: /add
methods: [POST]
@ -20,6 +21,7 @@ sylius_shop_ajax_cart_add_item:
parameters: {}
flash: sylius.cart.add_item
# This route is deprecated since Sylius 1.14.0 and will be removed in 2.0.0.
sylius_shop_ajax_cart_item_remove:
path: /{id}/remove
methods: [DELETE]

View file

@ -1,6 +1,7 @@
# This file is part of the Sylius package.
# (c) Sylius Sp. z o.o.
# This route is deprecated since Sylius 1.14.0 and will be removed in 2.0.0.
sylius_shop_ajax_user_check_action:
path: /check
methods: [GET]

View file

@ -1,6 +1,7 @@
# This file is part of the Sylius package.
# (c) Sylius Sp. z o.o.
# This route is deprecated since Sylius 1.14.0 and will be removed in 2.0.0.
sylius_shop_partial_cart_summary:
path: /summary
methods: [GET]
@ -9,6 +10,7 @@ sylius_shop_partial_cart_summary:
_sylius:
template: $template
# This route is deprecated since Sylius 1.14.0 and will be removed in 2.0.0.
sylius_shop_partial_cart_add_item:
path: /add-item
methods: [GET]

View file

@ -1,6 +1,7 @@
# This file is part of the Sylius package.
# (c) Sylius Sp. z o.o.
# This route is deprecated since Sylius 1.14.0 and will be removed in 2.0.0.
sylius_shop_partial_product_index_latest:
path: /latest/{count}
methods: [GET]
@ -15,6 +16,7 @@ sylius_shop_partial_product_index_latest:
- "expr:service('sylius.context.locale').getLocaleCode()"
- '!!int $count'
# This route is deprecated since Sylius 1.14.0 and will be removed in 2.0.0.
sylius_shop_partial_product_show_by_slug:
path: /{slug}
methods: [GET]

View file

@ -1,6 +1,7 @@
# This file is part of the Sylius package.
# (c) Sylius Sp. z o.o.
# This route is deprecated since Sylius 1.14.0 and will be removed in 2.0.0.
sylius_shop_partial_product_association_show:
path: /{id}
methods: [GET]

View file

@ -1,6 +1,7 @@
# This file is a part of the Sylius package.
# (c) Sylius Sp. z o.o.
# This route is deprecated since Sylius 1.14.0 and will be removed in 2.0.0.
sylius_shop_partial_product_review_latest:
path: /latest/{count}
methods: [GET]

View file

@ -1,6 +1,7 @@
# This file is part of the Sylius package.
# (c) Sylius Sp. z o.o.
# This route is deprecated since Sylius 1.14.0 and will be removed in 2.0.0.
sylius_shop_partial_taxon_show_by_slug:
path: /by-slug/{slug}
methods: [GET]
@ -16,6 +17,7 @@ sylius_shop_partial_taxon_show_by_slug:
requirements:
slug: .+
# This route is deprecated since Sylius 1.14.0 and will be removed in 2.0.0.
sylius_shop_partial_taxon_index_by_code:
path: /by-code/{code}
methods: [GET]
@ -29,6 +31,7 @@ sylius_shop_partial_taxon_index_by_code:
- $code
- "expr:service('sylius.context.locale').getLocaleCode()"
# This route is deprecated since Sylius 1.14.0 and will be removed in 2.0.0.
sylius_shop_partial_channel_menu_taxon_index:
path: /by-channel-menu-taxon/
methods: [GET]