Skip to content

Commit e9f7a1c

Browse files
author
roadiz-ci
committed
chore: bumped
1 parent bc60278 commit e9f7a1c

614 files changed

Lines changed: 3417 additions & 79091 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: 3 additions & 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.3', '8.4', '8.5']
22+
php-version: ['8.1', '8.2', '8.3']
2323
steps:
2424
- uses: shivammathur/setup-php@v2
2525
with:
@@ -35,5 +35,7 @@ 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
3840
- name: Run PHPStan
3941
run: vendor/bin/phpstan analyse --no-progress -c phpstan.neon

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,3 @@ 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 © 2025 Ambroise Maupate, Julien Blanchet
3+
Copyright © 2024 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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
test:
2+
php -d "memory_limit=-1" vendor/bin/phpcbf --report=full --report-file=./report.txt -p ./src
3+
php -d "memory_limit=-1" vendor/bin/phpstan analyse -c phpstan.neon

composer.json

Lines changed: 17 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,22 @@
1616
}
1717
],
1818
"type": "symfony-bundle",
19+
"minimum-stability": "dev",
1920
"prefer-stable": true,
2021
"require": {
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"
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.*"
2828
},
2929
"require-dev": {
3030
"php-coveralls/php-coveralls": "^2.4",
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"
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"
3535
},
3636
"config": {
3737
"optimize-autoloader": true,
@@ -48,25 +48,15 @@
4848
"autoload": {
4949
"psr-4": {
5050
"RZ\\Roadiz\\RozierBundle\\": "src/"
51-
}
51+
},
52+
"files": [
53+
"deprecated.php"
54+
]
5255
},
5356
"extra": {
5457
"branch-alias": {
55-
"dev-main": "2.7.x-dev",
56-
"dev-develop": "2.8.x-dev"
58+
"dev-main": "2.3.x-dev",
59+
"dev-develop": "2.4.x-dev"
5760
}
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-
]
7161
}
7262
}

config/packages/asset_mapper.yaml

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

config/packages/roadiz_rozier.yaml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ roadiz_rozier:
111111
- 'ROLE_ACCESS_NODETYPES'
112112
- 'ROLE_ACCESS_ATTRIBUTES'
113113
- 'ROLE_ACCESS_TRANSLATIONS'
114+
- 'ROLE_ACCESS_THEMES'
115+
- 'ROLE_ACCESS_FONTS'
114116
- 'ROLE_ACCESS_REDIRECTIONS'
115117
- 'ROLE_ACCESS_WEBHOOKS'
116118
- 'ROLE_ACCESS_REALMS'
@@ -150,24 +152,38 @@ roadiz_rozier:
150152
name: 'user.system'
151153
route: ~
152154
icon: uk-icon-rz-users
153-
roles: ['ROLE_ACCESS_USERS', 'ROLE_ACCESS_GROUPS']
155+
roles: ['ROLE_ACCESS_USERS', 'ROLE_ACCESS_ROLES', 'ROLE_ACCESS_GROUPS']
154156
subentries:
155157
manage_users:
156158
name: 'manage.users'
157159
route: usersHomePage
158160
icon: uk-icon-rz-user
159161
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']
160167
manage_groups:
161168
name: 'manage.groups'
162169
route: groupsHomePage
163170
icon: uk-icon-rz-groups
164171
roles: ['ROLE_ACCESS_GROUPS']
165172

166-
manage_customForms:
167-
name: 'manage.customForms'
168-
route: customFormsHomePage
169-
icon: uk-icon-rz-surveys
170-
roles: ['ROLE_ACCESS_CUSTOMFORMS']
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']
171187

172188
settings:
173189
name: 'settings'

config/routing.yaml

Lines changed: 92 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,48 @@
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
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
1428

1529
# NODES
30+
nodesHomePage:
31+
path: /rz-admin/nodes
32+
controller: Themes\Rozier\Controllers\Nodes\NodesController::indexAction
1633
nodesRoutes:
1734
resource: "routing/nodes.yml"
1835
prefix: /rz-admin/nodes
1936

37+
## Ajax
38+
ajaxRequestsRoutes:
39+
resource: "routing/ajax.yml"
40+
prefix: /rz-admin/ajax
41+
2042
# Node TYPES
2143
nodeTypesHomePage:
2244
path: /rz-admin/node-types
23-
controller: RZ\Roadiz\RozierBundle\Controller\NodeType\NodeTypeController::indexAction
45+
controller: Themes\Rozier\Controllers\NodeTypes\NodeTypesController::indexAction
2446
nodeTypesRoutes:
2547
resource: "routing/node-types.yml"
2648
prefix: /rz-admin/node-types
@@ -30,15 +52,10 @@ nodeTypeFieldsRoutes:
3052
resource: "routing/node-type-fields.yml"
3153
prefix: /rz-admin/node-types/fields
3254

33-
# Node type DECORATORS
34-
nodeTypeDecoratorsRoutes:
35-
resource: "routing/node-type-decorators.yml"
36-
prefix: /rz-admin/node-types/decorators
37-
3855
# SETTINGS
3956
settingsHomePage:
4057
path: /rz-admin/settings
41-
controller: RZ\Roadiz\RozierBundle\Controller\SettingController::indexAction
58+
controller: Themes\Rozier\Controllers\SettingsController::indexAction
4259
settingsRoutes:
4360
resource: "routing/settings.yml"
4461
prefix: /rz-admin/settings
@@ -47,23 +64,32 @@ settingsRoutes:
4764
# SETTINGS GROUPS
4865
settingGroupsHomePage:
4966
path: /rz-admin/setting-groups
50-
controller: RZ\Roadiz\RozierBundle\Controller\SettingGroupController::defaultAction
67+
controller: Themes\Rozier\Controllers\SettingGroupsController::defaultAction
5168
settingGroupsRoutes:
5269
resource: "routing/setting-groups.yml"
5370
prefix: /rz-admin/setting-groups
5471

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+
5581
# USERS
5682
usersHomePage:
5783
path: /rz-admin/users
58-
controller: RZ\Roadiz\RozierBundle\Controller\User\UserController::defaultAction
84+
controller: Themes\Rozier\Controllers\Users\UsersController::defaultAction
5985
usersRoutes:
6086
resource: "routing/users.yml"
6187
prefix: /rz-admin/users
6288

6389
# ATTRIBUTES
6490
attributesHomePage:
6591
path: /rz-admin/attributes
66-
controller: RZ\Roadiz\RozierBundle\Controller\Attribute\AttributeController::defaultAction
92+
controller: Themes\Rozier\Controllers\Attributes\AttributeController::defaultAction
6793
attributesRoutes:
6894
resource: "routing/attributes.yml"
6995
prefix: /rz-admin/attributes
@@ -72,7 +98,7 @@ attributesRoutes:
7298
# FOLDERS
7399
foldersHomePage:
74100
path: /rz-admin/folders
75-
controller: RZ\Roadiz\RozierBundle\Controller\FolderController::indexAction
101+
controller: Themes\Rozier\Controllers\FoldersController::indexAction
76102
foldersRoutes:
77103
resource: "routing/folders.yml"
78104
prefix: /rz-admin/folders
@@ -81,7 +107,7 @@ foldersRoutes:
81107
# TRANSLATIONS
82108
translationsHomePage:
83109
path: /rz-admin/translations
84-
controller: RZ\Roadiz\RozierBundle\Controller\TranslationController::indexAction
110+
controller: Themes\Rozier\Controllers\TranslationsController::indexAction
85111
translationsRoutes:
86112
resource: "routing/translations.yml"
87113
prefix: /rz-admin/translations
@@ -108,7 +134,7 @@ documentsRoutes:
108134
# DOCUMENTS
109135
redirectionsHomePage:
110136
path: /rz-admin/redirections
111-
controller: RZ\Roadiz\RozierBundle\Controller\RedirectionController::defaultAction
137+
controller: Themes\Rozier\Controllers\RedirectionsController::defaultAction
112138
redirectionsRoutes:
113139
resource: "routing/redirections.yml"
114140
prefix: /rz-admin/redirections
@@ -122,18 +148,36 @@ realmsRoutes:
122148
resource: "routing/realms.yml"
123149
prefix: /rz-admin/realms
124150

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+
125159
# GROUPS
126160
groupsHomePage:
127161
path: /rz-admin/groups
128-
controller: RZ\Roadiz\RozierBundle\Controller\GroupController::defaultAction
162+
controller: Themes\Rozier\Controllers\GroupsController::defaultAction
129163
groupsRoutes:
130164
resource: "routing/groups.yml"
131165
prefix: /rz-admin/groups
132166

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+
133177
# Custom Form
134178
customFormsHomePage:
135179
path: /rz-admin/custom-forms
136-
controller: RZ\Roadiz\RozierBundle\Controller\CustomForm\CustomFormController::defaultAction
180+
controller: Themes\Rozier\Controllers\CustomForms\CustomFormsController::defaultAction
137181
customFormsRoutes:
138182
resource: "routing/custom-forms.yml"
139183
prefix: /rz-admin/custom-forms
@@ -149,9 +193,28 @@ customFormFieldsRoutes:
149193
prefix: /rz-admin/custom-forms/fields
150194

151195

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+
152205
webhooksHomePage:
153206
path: /rz-admin/webhooks
154-
controller: RZ\Roadiz\RozierBundle\Controller\WebhookController::defaultAction
207+
controller: Themes\Rozier\Controllers\WebhookController::defaultAction
155208
webhooksRoutes:
156209
resource: "routing/webhooks.yml"
157210
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)