Skip to content

Commit 34e71aa

Browse files
author
roadiz-ci
committed
Merge branch hotfix/v2.7.10
1 parent 1c94c19 commit 34e71aa

613 files changed

Lines changed: 79039 additions & 3415 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 & 3 deletions
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.1', '8.2', '8.3']
22+
php-version: ['8.3', '8.4']
2323
steps:
2424
- uses: shivammathur/setup-php@v2
2525
with:
@@ -35,7 +35,5 @@ jobs:
3535
${{ runner.os }}-php-${{ matrix.php-version }}-
3636
- name: Install Dependencies
3737
run: composer install --no-scripts --no-ansi --no-interaction --no-progress
38-
- name: Run PHP Code Sniffer
39-
run: vendor/bin/phpcs -p ./src
4038
- name: Run PHPStan
4139
run: vendor/bin/phpstan analyse --no-progress -c phpstan.neon

.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

Makefile

Lines changed: 0 additions & 3 deletions
This file was deleted.

composer.json

Lines changed: 27 additions & 17 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.1",
23-
"symfony/framework-bundle": "6.4.*",
24-
"roadiz/core-bundle": "2.3.*",
25-
"roadiz/rozier": "2.3.*",
26-
"roadiz/compat-bundle": "2.3.*",
27-
"roadiz/openid": "2.3.*"
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",
32-
"phpstan/phpstan-symfony": "^1.1.8",
33-
"phpstan/phpstan-doctrine": "^1.3",
34-
"squizlabs/php_codesniffer": "^3.5"
31+
"phpstan/phpstan": "^2.1.36",
32+
"phpstan/phpdoc-parser": "<2",
33+
"phpstan/phpstan-doctrine": "^2.0.13",
34+
"phpstan/phpstan-symfony": "^2.0.12"
3535
},
3636
"config": {
3737
"optimize-autoloader": true,
@@ -48,15 +48,25 @@
4848
"autoload": {
4949
"psr-4": {
5050
"RZ\\Roadiz\\RozierBundle\\": "src/"
51-
},
52-
"files": [
53-
"deprecated.php"
54-
]
51+
}
5552
},
5653
"extra": {
5754
"branch-alias": {
58-
"dev-main": "2.3.x-dev",
59-
"dev-develop": "2.4.x-dev"
55+
"dev-main": "2.7.x-dev",
56+
"dev-develop": "2.8.x-dev"
6057
}
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+
]
6171
}
6272
}

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: 29 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::indexAction
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
@@ -52,10 +30,15 @@ nodeTypeFieldsRoutes:
5230
resource: "routing/node-type-fields.yml"
5331
prefix: /rz-admin/node-types/fields
5432

33+
# Node type DECORATORS
34+
nodeTypeDecoratorsRoutes:
35+
resource: "routing/node-type-decorators.yml"
36+
prefix: /rz-admin/node-types/decorators
37+
5538
# SETTINGS
5639
settingsHomePage:
5740
path: /rz-admin/settings
58-
controller: Themes\Rozier\Controllers\SettingsController::indexAction
41+
controller: RZ\Roadiz\RozierBundle\Controller\SettingController::indexAction
5942
settingsRoutes:
6043
resource: "routing/settings.yml"
6144
prefix: /rz-admin/settings
@@ -64,32 +47,23 @@ settingsRoutes:
6447
# SETTINGS GROUPS
6548
settingGroupsHomePage:
6649
path: /rz-admin/setting-groups
67-
controller: Themes\Rozier\Controllers\SettingGroupsController::defaultAction
50+
controller: RZ\Roadiz\RozierBundle\Controller\SettingGroupController::defaultAction
6851
settingGroupsRoutes:
6952
resource: "routing/setting-groups.yml"
7053
prefix: /rz-admin/setting-groups
7154

72-
73-
# TAGS
74-
tagsHomePage:
75-
path: /rz-admin/tags
76-
controller: Themes\Rozier\Controllers\Tags\TagsController::indexAction
77-
tagsRoutes:
78-
resource: "routing/tags.yml"
79-
prefix: /rz-admin/tags
80-
8155
# USERS
8256
usersHomePage:
8357
path: /rz-admin/users
84-
controller: Themes\Rozier\Controllers\Users\UsersController::defaultAction
58+
controller: RZ\Roadiz\RozierBundle\Controller\User\UserController::defaultAction
8559
usersRoutes:
8660
resource: "routing/users.yml"
8761
prefix: /rz-admin/users
8862

8963
# ATTRIBUTES
9064
attributesHomePage:
9165
path: /rz-admin/attributes
92-
controller: Themes\Rozier\Controllers\Attributes\AttributeController::defaultAction
66+
controller: RZ\Roadiz\RozierBundle\Controller\Attribute\AttributeController::defaultAction
9367
attributesRoutes:
9468
resource: "routing/attributes.yml"
9569
prefix: /rz-admin/attributes
@@ -98,7 +72,7 @@ attributesRoutes:
9872
# FOLDERS
9973
foldersHomePage:
10074
path: /rz-admin/folders
101-
controller: Themes\Rozier\Controllers\FoldersController::indexAction
75+
controller: RZ\Roadiz\RozierBundle\Controller\FolderController::indexAction
10276
foldersRoutes:
10377
resource: "routing/folders.yml"
10478
prefix: /rz-admin/folders
@@ -107,7 +81,7 @@ foldersRoutes:
10781
# TRANSLATIONS
10882
translationsHomePage:
10983
path: /rz-admin/translations
110-
controller: Themes\Rozier\Controllers\TranslationsController::indexAction
84+
controller: RZ\Roadiz\RozierBundle\Controller\TranslationController::indexAction
11185
translationsRoutes:
11286
resource: "routing/translations.yml"
11387
prefix: /rz-admin/translations
@@ -134,7 +108,7 @@ documentsRoutes:
134108
# DOCUMENTS
135109
redirectionsHomePage:
136110
path: /rz-admin/redirections
137-
controller: Themes\Rozier\Controllers\RedirectionsController::defaultAction
111+
controller: RZ\Roadiz\RozierBundle\Controller\RedirectionController::defaultAction
138112
redirectionsRoutes:
139113
resource: "routing/redirections.yml"
140114
prefix: /rz-admin/redirections
@@ -148,36 +122,18 @@ realmsRoutes:
148122
resource: "routing/realms.yml"
149123
prefix: /rz-admin/realms
150124

151-
# ROLES
152-
rolesHomePage:
153-
path: /rz-admin/roles
154-
controller: Themes\Rozier\Controllers\RolesController::defaultAction
155-
rolesRoutes:
156-
resource: "routing/roles.yml"
157-
prefix: /rz-admin/roles
158-
159125
# GROUPS
160126
groupsHomePage:
161127
path: /rz-admin/groups
162-
controller: Themes\Rozier\Controllers\GroupsController::defaultAction
128+
controller: RZ\Roadiz\RozierBundle\Controller\GroupController::defaultAction
163129
groupsRoutes:
164130
resource: "routing/groups.yml"
165131
prefix: /rz-admin/groups
166132

167-
168-
#LOGS
169-
historyHomePage:
170-
path: /rz-admin/history
171-
controller: Themes\Rozier\Controllers\HistoryController::indexAction
172-
historyUserPage:
173-
path: /rz-admin/history/user/{userId}
174-
requirements: { userId : "[0-9]+" }
175-
controller: Themes\Rozier\Controllers\HistoryController::userAction
176-
177133
# Custom Form
178134
customFormsHomePage:
179135
path: /rz-admin/custom-forms
180-
controller: Themes\Rozier\Controllers\CustomForms\CustomFormsController::defaultAction
136+
controller: RZ\Roadiz\RozierBundle\Controller\CustomForm\CustomFormController::defaultAction
181137
customFormsRoutes:
182138
resource: "routing/custom-forms.yml"
183139
prefix: /rz-admin/custom-forms
@@ -193,28 +149,9 @@ customFormFieldsRoutes:
193149
prefix: /rz-admin/custom-forms/fields
194150

195151

196-
# SEARCH
197-
searchNodePage:
198-
path: /rz-admin/search
199-
controller: Themes\Rozier\Controllers\SearchController::searchNodeAction
200-
searchNodeSourcePage:
201-
path: /rz-admin/search/{nodetypeId}
202-
controller: Themes\Rozier\Controllers\SearchController::searchNodeSourceAction
203-
requirements: { nodetypeId : "[0-9]+" }
204-
205152
webhooksHomePage:
206153
path: /rz-admin/webhooks
207-
controller: Themes\Rozier\Controllers\WebhookController::defaultAction
154+
controller: RZ\Roadiz\RozierBundle\Controller\WebhookController::defaultAction
208155
webhooksRoutes:
209156
resource: "routing/webhooks.yml"
210157
prefix: /rz-admin/webhooks
211-
212-
213-
#
214-
# CSS to style with main color
215-
# NOT SECURED ROUTES
216-
#
217-
loginImagePage:
218-
path: /css/login/image
219-
controller: Themes\Rozier\Controllers\LoginController::imageAction
220-

0 commit comments

Comments
 (0)