Skip to content

Commit 359affd

Browse files
author
roadiz-ci
committed
Merge branch hotfix/v2.7.24
1 parent 1687cd4 commit 359affd

599 files changed

Lines changed: 76890 additions & 2211 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/run-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
strategy:
2121
matrix:
22-
php-version: ['8.2', '8.3']
22+
php-version: ['8.3', '8.4']
2323
steps:
2424
- uses: shivammathur/setup-php@v2
2525
with:

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,7 @@ modules.xml
125125
/report.txt
126126
/composer.lock
127127
/symfony.lock
128+
129+
# Vite
130+
# Ignore Vite dev manifest file
131+
/public/manifest.dev.json

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright © 2024 Ambroise Maupate, Julien Blanchet
3+
Copyright © 2025 Ambroise Maupate, Julien Blanchet
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
66

composer.json

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,22 @@
1616
}
1717
],
1818
"type": "symfony-bundle",
19-
"minimum-stability": "dev",
2019
"prefer-stable": true,
2120
"require": {
22-
"php": ">=8.2",
23-
"roadiz/compat-bundle": "2.5.*",
24-
"roadiz/core-bundle": "2.5.*",
25-
"roadiz/openid": "2.5.*",
26-
"roadiz/rozier": "2.5.*",
27-
"symfony/framework-bundle": "6.4.*"
21+
"php": ">=8.3",
22+
"roadiz/core-bundle": "2.7.*",
23+
"roadiz/openid": "2.7.*",
24+
"roadiz/doc-generator": "2.7.*",
25+
"roadiz/dts-generator": "2.7.*",
26+
"symfony/framework-bundle": "7.4.*",
27+
"deeplcom/deepl-php": "^1.12"
2828
},
2929
"require-dev": {
3030
"php-coveralls/php-coveralls": "^2.4",
31-
"phpstan/phpstan": "^1.5.3",
31+
"phpstan/phpstan": "^2.1.36",
3232
"phpstan/phpdoc-parser": "<2",
33-
"phpstan/phpstan-doctrine": "^1.3",
34-
"phpstan/phpstan-symfony": "^1.1.8"
33+
"phpstan/phpstan-doctrine": "^2.0.13",
34+
"phpstan/phpstan-symfony": "^2.0.12"
3535
},
3636
"config": {
3737
"optimize-autoloader": true,
@@ -52,8 +52,21 @@
5252
},
5353
"extra": {
5454
"branch-alias": {
55-
"dev-main": "2.5.x-dev",
56-
"dev-develop": "2.6.x-dev"
55+
"dev-main": "2.7.x-dev",
56+
"dev-develop": "2.8.x-dev"
5757
}
58+
},
59+
"scripts": {
60+
"auto-scripts": {
61+
"cache:clear": "symfony-cmd",
62+
"assets:install %PUBLIC_DIR%": "symfony-cmd",
63+
"requirements-checker": "script"
64+
},
65+
"post-install-cmd": [
66+
"@auto-scripts"
67+
],
68+
"post-update-cmd": [
69+
"@auto-scripts"
70+
]
5871
}
5972
}

config/packages/asset_mapper.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
framework:
2+
asset_mapper:
3+
# The paths to make available to the asset mapper.
4+
paths:
5+
vendor/roadiz/rozier-bundle/static/: 'bundles/roadizrozier'
6+
missing_import_mode: strict
7+
public_prefix: '/static/'
8+
9+
when@prod:
10+
framework:
11+
asset_mapper:
12+
missing_import_mode: warn

config/packages/roadiz_rozier.yaml

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@ roadiz_rozier:
111111
- 'ROLE_ACCESS_NODETYPES'
112112
- 'ROLE_ACCESS_ATTRIBUTES'
113113
- 'ROLE_ACCESS_TRANSLATIONS'
114-
- 'ROLE_ACCESS_THEMES'
115-
- 'ROLE_ACCESS_FONTS'
116114
- 'ROLE_ACCESS_REDIRECTIONS'
117115
- 'ROLE_ACCESS_WEBHOOKS'
118116
- 'ROLE_ACCESS_REALMS'
@@ -152,38 +150,24 @@ roadiz_rozier:
152150
name: 'user.system'
153151
route: ~
154152
icon: uk-icon-rz-users
155-
roles: ['ROLE_ACCESS_USERS', 'ROLE_ACCESS_ROLES', 'ROLE_ACCESS_GROUPS']
153+
roles: ['ROLE_ACCESS_USERS', 'ROLE_ACCESS_GROUPS']
156154
subentries:
157155
manage_users:
158156
name: 'manage.users'
159157
route: usersHomePage
160158
icon: uk-icon-rz-user
161159
roles: ['ROLE_ACCESS_USERS']
162-
manage_roles:
163-
name: 'manage.roles'
164-
route: rolesHomePage
165-
icon: uk-icon-rz-roles
166-
roles: ['ROLE_ACCESS_ROLES']
167160
manage_groups:
168161
name: 'manage.groups'
169162
route: groupsHomePage
170163
icon: uk-icon-rz-groups
171164
roles: ['ROLE_ACCESS_GROUPS']
172165

173-
interactions:
174-
name: 'interactions'
175-
route: ~
176-
icon: uk-icon-rz-interactions
177-
roles:
178-
- 'ROLE_ACCESS_CUSTOMFORMS'
179-
- 'ROLE_ACCESS_MANAGE_SUBSCRIBERS'
180-
- 'ROLE_ACCESS_COMMENTS'
181-
subentries:
182-
manage_customForms:
183-
name: 'manage.customForms'
184-
route: customFormsHomePage
185-
icon: uk-icon-rz-surveys
186-
roles: ['ROLE_ACCESS_CUSTOMFORMS']
166+
manage_customForms:
167+
name: 'manage.customForms'
168+
route: customFormsHomePage
169+
icon: uk-icon-rz-surveys
170+
roles: ['ROLE_ACCESS_CUSTOMFORMS']
187171

188172
settings:
189173
name: 'settings'

config/routing.yaml

Lines changed: 24 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,26 @@
1-
# Home page
2-
adminHomePage:
3-
path: /rz-admin
4-
controller: Themes\Rozier\Controllers\DashboardController::indexAction
5-
6-
loginRoutes:
7-
prefix: /rz-admin
8-
resource: "routing/login.yml"
9-
10-
ajaxSessionMessages:
11-
path: /rz-admin/session/messages
12-
methods: [GET]
13-
controller: Themes\Rozier\AjaxControllers\AjaxSessionMessages::getMessagesAction
14-
15-
#Ping
16-
ping:
17-
path: /rz-admin/ping
18-
methods: [GET]
19-
controller: RZ\Roadiz\RozierBundle\Controller\PingController::pingAction
20-
21-
# CACHES
22-
deleteDoctrineCache:
23-
path: /rz-admin/cache/delete-doctrine-cache
24-
controller: Themes\Rozier\Controllers\CacheController::deleteDoctrineCache
25-
deleteAssetsCache:
26-
path: /rz-admin/cache/delete-assets-cache
27-
controller: Themes\Rozier\Controllers\CacheController::deleteAssetsCache
1+
# enable attribute routing for this bundle
2+
controllers:
3+
resource:
4+
path: ../src/Controller/
5+
namespace: RZ\Roadiz\RozierBundle\Controller
6+
type: attribute
7+
8+
# enable attribute routing for TranslateAssistant sub-bundle
9+
translateAssistant:
10+
resource:
11+
path: ../src/TranslateAssistant/
12+
namespace: RZ\Roadiz\RozierBundle\TranslateAssistant
13+
type: attribute
2814

2915
# NODES
30-
nodesHomePage:
31-
path: /rz-admin/nodes
32-
controller: Themes\Rozier\Controllers\Nodes\NodesController::indexAction
3316
nodesRoutes:
3417
resource: "routing/nodes.yml"
3518
prefix: /rz-admin/nodes
3619

37-
## Ajax
38-
ajaxRequestsRoutes:
39-
resource: "routing/ajax.yml"
40-
prefix: /rz-admin/ajax
41-
4220
# Node TYPES
4321
nodeTypesHomePage:
4422
path: /rz-admin/node-types
45-
controller: Themes\Rozier\Controllers\NodeTypes\NodeTypesController::indexAction
23+
controller: RZ\Roadiz\RozierBundle\Controller\NodeType\NodeTypeController::indexAction
4624
nodeTypesRoutes:
4725
resource: "routing/node-types.yml"
4826
prefix: /rz-admin/node-types
@@ -60,7 +38,7 @@ nodeTypeDecoratorsRoutes:
6038
# SETTINGS
6139
settingsHomePage:
6240
path: /rz-admin/settings
63-
controller: Themes\Rozier\Controllers\SettingsController::indexAction
41+
controller: RZ\Roadiz\RozierBundle\Controller\SettingController::indexAction
6442
settingsRoutes:
6543
resource: "routing/settings.yml"
6644
prefix: /rz-admin/settings
@@ -69,32 +47,23 @@ settingsRoutes:
6947
# SETTINGS GROUPS
7048
settingGroupsHomePage:
7149
path: /rz-admin/setting-groups
72-
controller: Themes\Rozier\Controllers\SettingGroupsController::defaultAction
50+
controller: RZ\Roadiz\RozierBundle\Controller\SettingGroupController::defaultAction
7351
settingGroupsRoutes:
7452
resource: "routing/setting-groups.yml"
7553
prefix: /rz-admin/setting-groups
7654

77-
78-
# TAGS
79-
tagsHomePage:
80-
path: /rz-admin/tags
81-
controller: Themes\Rozier\Controllers\Tags\TagsController::indexAction
82-
tagsRoutes:
83-
resource: "routing/tags.yml"
84-
prefix: /rz-admin/tags
85-
8655
# USERS
8756
usersHomePage:
8857
path: /rz-admin/users
89-
controller: Themes\Rozier\Controllers\Users\UsersController::defaultAction
58+
controller: RZ\Roadiz\RozierBundle\Controller\User\UserController::defaultAction
9059
usersRoutes:
9160
resource: "routing/users.yml"
9261
prefix: /rz-admin/users
9362

9463
# ATTRIBUTES
9564
attributesHomePage:
9665
path: /rz-admin/attributes
97-
controller: Themes\Rozier\Controllers\Attributes\AttributeController::defaultAction
66+
controller: RZ\Roadiz\RozierBundle\Controller\Attribute\AttributeController::defaultAction
9867
attributesRoutes:
9968
resource: "routing/attributes.yml"
10069
prefix: /rz-admin/attributes
@@ -103,7 +72,7 @@ attributesRoutes:
10372
# FOLDERS
10473
foldersHomePage:
10574
path: /rz-admin/folders
106-
controller: Themes\Rozier\Controllers\FoldersController::indexAction
75+
controller: RZ\Roadiz\RozierBundle\Controller\FolderController::indexAction
10776
foldersRoutes:
10877
resource: "routing/folders.yml"
10978
prefix: /rz-admin/folders
@@ -112,7 +81,7 @@ foldersRoutes:
11281
# TRANSLATIONS
11382
translationsHomePage:
11483
path: /rz-admin/translations
115-
controller: Themes\Rozier\Controllers\TranslationsController::indexAction
84+
controller: RZ\Roadiz\RozierBundle\Controller\TranslationController::indexAction
11685
translationsRoutes:
11786
resource: "routing/translations.yml"
11887
prefix: /rz-admin/translations
@@ -139,7 +108,7 @@ documentsRoutes:
139108
# DOCUMENTS
140109
redirectionsHomePage:
141110
path: /rz-admin/redirections
142-
controller: Themes\Rozier\Controllers\RedirectionsController::defaultAction
111+
controller: RZ\Roadiz\RozierBundle\Controller\RedirectionController::defaultAction
143112
redirectionsRoutes:
144113
resource: "routing/redirections.yml"
145114
prefix: /rz-admin/redirections
@@ -153,36 +122,18 @@ realmsRoutes:
153122
resource: "routing/realms.yml"
154123
prefix: /rz-admin/realms
155124

156-
# ROLES
157-
rolesHomePage:
158-
path: /rz-admin/roles
159-
controller: Themes\Rozier\Controllers\RolesController::defaultAction
160-
rolesRoutes:
161-
resource: "routing/roles.yml"
162-
prefix: /rz-admin/roles
163-
164125
# GROUPS
165126
groupsHomePage:
166127
path: /rz-admin/groups
167-
controller: Themes\Rozier\Controllers\GroupsController::defaultAction
128+
controller: RZ\Roadiz\RozierBundle\Controller\GroupController::defaultAction
168129
groupsRoutes:
169130
resource: "routing/groups.yml"
170131
prefix: /rz-admin/groups
171132

172-
173-
#LOGS
174-
historyHomePage:
175-
path: /rz-admin/history
176-
controller: Themes\Rozier\Controllers\HistoryController::indexAction
177-
historyUserPage:
178-
path: /rz-admin/history/user/{userId}
179-
requirements: { userId : "[0-9]+" }
180-
controller: Themes\Rozier\Controllers\HistoryController::userAction
181-
182133
# Custom Form
183134
customFormsHomePage:
184135
path: /rz-admin/custom-forms
185-
controller: Themes\Rozier\Controllers\CustomForms\CustomFormsController::defaultAction
136+
controller: RZ\Roadiz\RozierBundle\Controller\CustomForm\CustomFormController::defaultAction
186137
customFormsRoutes:
187138
resource: "routing/custom-forms.yml"
188139
prefix: /rz-admin/custom-forms
@@ -198,28 +149,9 @@ customFormFieldsRoutes:
198149
prefix: /rz-admin/custom-forms/fields
199150

200151

201-
# SEARCH
202-
searchNodePage:
203-
path: /rz-admin/search
204-
controller: Themes\Rozier\Controllers\SearchController::searchNodeAction
205-
searchNodeSourcePage:
206-
path: /rz-admin/search/{nodeTypeName}
207-
controller: Themes\Rozier\Controllers\SearchController::searchNodeSourceAction
208-
requirements: { nodeTypeName : "[a-zA-Z]+" }
209-
210152
webhooksHomePage:
211153
path: /rz-admin/webhooks
212-
controller: Themes\Rozier\Controllers\WebhookController::defaultAction
154+
controller: RZ\Roadiz\RozierBundle\Controller\WebhookController::defaultAction
213155
webhooksRoutes:
214156
resource: "routing/webhooks.yml"
215157
prefix: /rz-admin/webhooks
216-
217-
218-
#
219-
# CSS to style with main color
220-
# NOT SECURED ROUTES
221-
#
222-
loginImagePage:
223-
path: /css/login/image
224-
controller: RZ\Roadiz\RozierBundle\Controller\Login\LoginImageController::imageAction
225-

0 commit comments

Comments
 (0)