Skip to content

Commit b0d1640

Browse files
fix symfony support 6.3
- adjusting routing to symfonyf 6.3 - allow use new version of packages: symfony/event-dispatcher-contracts -> (added: "^3.0") twig/twig -> (added: "^3.0"")
1 parent 078f73a commit b0d1640

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"symfony/console": "^5.4 || ^6.3",
2525
"symfony/dependency-injection": "^5.4 || ^6.3",
2626
"symfony/event-dispatcher": "^5.4 || ^6.3",
27-
"symfony/event-dispatcher-contracts": "^1.1 || ^2.2",
27+
"symfony/event-dispatcher-contracts": "^1.1 || ^2.2 || ^3.0",
2828
"symfony/form": "^5.4 || ^6.3",
2929
"symfony/http-foundation": "^5.4.7 || ^6.3",
3030
"symfony/http-kernel": "^5.4 || ^6.3",
@@ -37,7 +37,7 @@
3737
"symfony/uid": "^5.4 || ^6.3",
3838
"symfony/validator": "^5.4 || ^6.3",
3939
"symfony/workflow": "^5.4 || ^6.3",
40-
"twig/twig": "^2.14",
40+
"twig/twig": "^2.14 || ^3.0",
4141
"webmozart/assert": "^1.1"
4242
},
4343
"require-dev": {

src/Resources/config/routing.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ shop:
22
resource: "routing/shop.yaml"
33
prefix: /{_locale}
44
requirements:
5-
_locale: ^[a-z]{2}(?:_[A-Z]{2})?$
5+
_locale: ^[A-Za-z]{2,4}(_([A-Za-z]{4}|[0-9]{3}))?(_([A-Za-z]{2}|[0-9]{3}))?$
66

77
admin:
88
resource: "routing/admin.yaml"

src/Resources/config/routing/admin.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ setono_sylius_feed_admin_feed:
1212
index:
1313
icon: 'file image outline'
1414
type: sylius.resource
15-
15+
1616
setono_sylius_feed_admin_feed_show:
1717
path: /feeds/{id}
1818
methods: [GET]
1919
defaults:
20-
_controller: setono_sylius_feed.controller.feed:showAction
20+
_controller: setono_sylius_feed.controller.feed::showAction
2121
_sylius:
2222
section: admin
2323
permission: true
2424
template: "@SetonoSyliusFeedPlugin/Admin/Feed/show.html.twig"
25-
25+
2626
setono_sylius_feed_admin_feed_process:
2727
path: /feeds/{id}/process
2828
methods: [GET]
@@ -33,7 +33,7 @@ setono_sylius_feed_admin_feed_violations_index:
3333
path: /feeds/{id}/violations
3434
methods: [GET]
3535
defaults:
36-
_controller: setono_sylius_feed.controller.violation:indexAction
36+
_controller: setono_sylius_feed.controller.violation::indexAction
3737
_sylius:
3838
vars:
3939
route:

0 commit comments

Comments
 (0)