File tree Expand file tree Collapse file tree 5 files changed +9
-14
lines changed
templates/Shop/PushNotifications Expand file tree Collapse file tree 5 files changed +9
-14
lines changed Original file line number Diff line number Diff line change 11speardevs_push_notifications_section :
2- path : /{_locale}/ account/push-notifications
2+ path : /account/push-notifications
33 defaults :
44 _controller : ' SpearDevs\SyliusPushNotificationsPlugin\Controller\Shop\PushNotificationAction'
55 template : ' @SpearDevsSyliusPushNotificationsPlugin/Shop/Account/push_notification.html.twig'
66
77speardevs_push_notifications_history_index :
8- path : /{_locale}/ account/push-notifications-history
8+ path : /account/push-notifications-history
99 methods : [ GET ]
1010 defaults :
1111 _controller : speardevs_sylius_push_notifications_plugin.controller.push_notification_history::indexAction
@@ -23,7 +23,7 @@ speardevs_push_notifications_history_index:
2323 - " expr:service('sylius.context.customer').getCustomer()"
2424
2525speardevs_push_notifications_history_mark_as_received :
26- path : /{_locale}/ account/push-notifications-history/{id}/mark-as-received
26+ path : /account/push-notifications-history/{id}/mark-as-received
2727 methods : [ PUT ]
2828 defaults :
2929 _controller : speardevs_sylius_push_notifications_plugin.controller.push_notification_history::applyStateMachineTransitionAction
@@ -36,4 +36,4 @@ speardevs_push_notifications_history_mark_as_received:
3636
3737bentools_webpush :
3838 resource : ' @WebPushBundle/Resources/config/routing.xml'
39- prefix : /{_locale}/ webpush
39+ prefix : /webpush
Original file line number Diff line number Diff line change 22 {{ stimulus_controller(' shop/push-notifications' , {
33 publicKey : app .request .server .get (' WEBPUSH_PUBLIC_KEY' ),
44 serviceWorkerPath : ' /serviceWorker.js' ,
5- subscribeUrl : ' /' ~ app . request . locale ~ ' / webpush/'
5+ subscribeUrl : ' /webpush/'
66 }) }}
77>
88 <button
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ parameters:
1515sylius_shop :
1616 product_grid :
1717 include_all_descendants : true
18+ locale_switcher : storage
1819
1920sylius_api :
2021 enabled : true
Original file line number Diff line number Diff line change 1+ parameters :
2+ sylius.security.shop_regex : " ^(?:/(?!%sylius_admin.path_name%|api/.*|api$|media/.*)[^/]++)?"
3+
14security :
25 enable_authenticator_manager : true
36 providers :
Original file line number Diff line number Diff line change 11sylius_shop :
22 resource : " @SyliusShopBundle/Resources/config/routing.yml"
3- prefix : /{_locale}
4- requirements :
5- _locale : ^[A-Za-z]{2,4}(_([A-Za-z]{4}|[0-9]{3}))?(_([A-Za-z]{2}|[0-9]{3}))?$
63
74sylius_shop_payum :
85 resource : " @SyliusShopBundle/Resources/config/routing/payum.yml"
9-
10- sylius_shop_default_locale :
11- path : /
12- methods : [GET]
13- defaults :
14- _controller : sylius.controller.shop.locale_switch::switchAction
You can’t perform that action at this time.
0 commit comments