Skip to content

Commit e5e3d1a

Browse files
author
roadiz-ci
committed
chore: Bumped
1 parent 57c799c commit e5e3d1a

File tree

285 files changed

+4396
-5626
lines changed

Some content is hidden

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

285 files changed

+4396
-5626
lines changed

.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.1', '8.2', '8.3']
22+
php-version: ['8.0', '8.1']
2323
steps:
2424
- uses: shivammathur/setup-php@v2
2525
with:

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
language: php
2+
php:
3+
- '8.0'
4+
- '8.1'
5+
- 'nightly'
6+
jobs:
7+
allow_failures:
8+
- php: 'nightly'
9+
install:
10+
- composer install --dev --no-scripts --no-suggest
11+
12+
script:
13+
- vendor/bin/phpcs -p ./src
14+
- vendor/bin/phpstan analyse -c phpstan.neon

composer.json

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"keywords": [
55
"cms",
66
"backoffice",
7-
"roadiz",
87
"rezo zero"
98
],
109
"authors": [
@@ -16,9 +15,8 @@
1615
}
1716
],
1817
"type": "symfony-bundle",
19-
"prefer-stable": true,
2018
"require": {
21-
"php": ">=8.1",
19+
"php": ">=8.0",
2220
"ext-ctype": "*",
2321
"ext-iconv": "*",
2422
"ext-zip": "*",
@@ -27,31 +25,31 @@
2725
"doctrine/annotations": "^1.0",
2826
"doctrine/doctrine-bundle": "^2.8.1",
2927
"doctrine/doctrine-migrations-bundle": "^3.1",
30-
"doctrine/orm": "~2.17.0",
28+
"doctrine/orm": "<2.17",
3129
"gedmo/doctrine-extensions": "^3.10.0",
3230
"inlinestyle/inlinestyle": "~1.2.7",
3331
"james-heinrich/getid3": "^1.9",
3432
"jms/serializer": "^3.9.0",
3533
"jms/serializer-bundle": "^3.10.0",
3634
"league/flysystem": "^3.0",
3735
"league/flysystem-bundle": "^3.0",
38-
"lexik/jwt-authentication-bundle": "^2.19",
36+
"lexik/jwt-authentication-bundle": "^2.13",
3937
"phpdocumentor/reflection-docblock": "^5.2",
4038
"phpoffice/phpspreadsheet": "^1.15",
4139
"ramsey/uuid": "^4.7",
4240
"rezozero/crypto": "^1.0.0",
4341
"rezozero/intervention-request-bundle": "~3.0.0",
44-
"rezozero/liform-bundle": "^0.19",
42+
"rezozero/liform-bundle": "^0.18.1",
4543
"rezozero/tree-walker": "^1.3.0",
46-
"roadiz/doc-generator": "2.2.*",
47-
"roadiz/documents": "2.2.*",
48-
"roadiz/dts-generator": "2.2.*",
49-
"roadiz/entity-generator": "2.2.*",
50-
"roadiz/jwt": "2.2.*",
51-
"roadiz/markdown": "2.2.*",
52-
"roadiz/models": "2.2.*",
44+
"roadiz/doc-generator": "2.1.*",
45+
"roadiz/documents": "2.1.*",
46+
"roadiz/dts-generator": "2.1.*",
47+
"roadiz/entity-generator": "2.1.*",
48+
"roadiz/jwt": "2.1.*",
49+
"roadiz/markdown": "2.1.*",
50+
"roadiz/models": "2.1.*",
5351
"roadiz/nodetype-contracts": "~1.1.2",
54-
"roadiz/random": "2.2.*",
52+
"roadiz/random": "2.1.*",
5553
"rollerworks/password-common-list": "^0.2.0",
5654
"rollerworks/password-strength-bundle": "^2.2",
5755
"scienta/doctrine-json-functions": "^4.2",
@@ -64,7 +62,7 @@
6462
"symfony/console": "5.4.*",
6563
"symfony/dotenv": "5.4.*",
6664
"symfony/expression-language": "5.4.*",
67-
"symfony/flex": "^2.2.3",
65+
"symfony/flex": "^v1.19.4 || ^2.2.3",
6866
"symfony/form": "5.4.*",
6967
"symfony/framework-bundle": "5.4.*",
7068
"symfony/http-client": "5.4.*",
@@ -89,7 +87,7 @@
8987
"symfony/web-link": "5.4.*",
9088
"symfony/workflow": "5.4.*",
9189
"symfony/yaml": "5.4.*",
92-
"twig/extra-bundle": "^3.0",
90+
"twig/extra-bundle": "^2.12|^3.0",
9391
"twig/intl-extra": "*",
9492
"twig/string-extra": "*",
9593
"twig/twig": "^3.1"
@@ -132,8 +130,8 @@
132130
},
133131
"extra": {
134132
"branch-alias": {
135-
"dev-main": "2.2.x-dev",
136-
"dev-develop": "2.3.x-dev"
133+
"dev-main": "2.1.x-dev",
134+
"dev-develop": "2.2.x-dev"
137135
}
138136
}
139137
}

config/api_resources/attribute.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
22
RZ\Roadiz\CoreBundle\Entity\Attribute:
3-
operations: []
3+
collectionOperations: []
4+
itemOperations: []
45

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
---
22
RZ\Roadiz\CoreBundle\Entity\AttributeValue:
3-
operations:
4-
ApiPlatform\Metadata\GetCollection:
3+
collectionOperations:
4+
get:
55
method: "GET"
6-
normalizationContext:
6+
normalization_context:
77
groups: ["urls", "attribute", "document_display", "attribute_node", "attribute_documents"]
88
enable_max_depth: true
9-
ApiPlatform\Metadata\Get:
9+
itemOperations:
10+
get:
1011
method: 'GET'
11-
normalizationContext:
12+
normalization_context:
1213
groups: ["urls", "attribute", "document_display", "attribute_node", "attribute_documents"]
1314
enable_max_depth: true
1415

config/api_resources/common_content.yml

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

config/api_resources/custom_form.yml

Lines changed: 108 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
---
22
RZ\Roadiz\CoreBundle\Entity\CustomForm:
3-
operations:
4-
ApiPlatform\Metadata\GetCollection:
3+
collectionOperations:
4+
get:
55
method: "GET"
6-
normalizationContext:
6+
normalization_context:
77
enable_max_depth: true
88

9-
ApiPlatform\Metadata\Get:
9+
itemOperations:
10+
get:
1011
method: 'GET'
11-
normalizationContext:
12+
normalization_context:
1213
enable_max_depth: true
1314

1415
api_custom_forms_item_post:
1516
method: 'POST'
16-
class: ApiPlatform\Metadata\Post
17-
routeName: api_custom_forms_item_post
18-
normalizationContext:
17+
route_name: api_custom_forms_item_post
18+
normalization_context:
1919
enable_max_depth: true
20-
openapiContext:
20+
openapi_context:
2121
summary: Post a user custom form
2222
description: |
2323
Post a user custom form
@@ -59,11 +59,10 @@ RZ\Roadiz\CoreBundle\Entity\CustomForm:
5959

6060
api_custom_forms_item_definition:
6161
method: 'GET'
62-
class: ApiPlatform\Metadata\Get
63-
routeName: api_custom_forms_item_definition
64-
normalizationContext:
62+
route_name: api_custom_forms_item_definition
63+
normalization_context:
6564
enable_max_depth: true
66-
openapiContext:
65+
openapi_context:
6766
summary: Get a custom form definition for frontend
6867
description: |
6968
Get a custom form definition for frontend
@@ -108,3 +107,99 @@ RZ\Roadiz\CoreBundle\Entity\CustomForm:
108107
description: Required fields names
109108
example:
110109
- 'email'
110+
111+
api_contact_form_post:
112+
method: 'POST'
113+
route_name: api_contact_form_post
114+
normalization_context:
115+
enable_max_depth: true
116+
openapi_context:
117+
summary: Post a user contact form
118+
description: |
119+
Post a user contact form
120+
requestBody:
121+
content:
122+
multipart/form-data:
123+
schema:
124+
type: object
125+
properties:
126+
email:
127+
type: string
128+
example: test@test.test
129+
first_name:
130+
type: string
131+
example: John
132+
last_name:
133+
type: string
134+
example: Doe
135+
responses:
136+
201: ~
137+
400:
138+
description: Posted contact form has errors
139+
content:
140+
application/json:
141+
schema:
142+
type: object
143+
properties:
144+
email:
145+
type: object
146+
example:
147+
email: This value is not a valid email address.
148+
202:
149+
description: Posted contact form was accepted
150+
content:
151+
application/json:
152+
schema:
153+
type: object
154+
properties: { }
155+
156+
api_contact_form_definition:
157+
method: 'GET'
158+
route_name: api_contact_form_definition
159+
normalization_context:
160+
enable_max_depth: true
161+
openapi_context:
162+
summary: Get a contact form definition for frontend
163+
description: |
164+
Get a contact form definition for frontend
165+
responses:
166+
200:
167+
description: Contact form definition object
168+
content:
169+
application/json:
170+
schema:
171+
type: object
172+
properties:
173+
title:
174+
type: string
175+
description: Form inputs prefix
176+
example: reiciendis_natus_ducimus_nostrum
177+
type:
178+
type: string
179+
description: Form definition type
180+
example: object
181+
properties:
182+
type: object
183+
description: Form definition fields
184+
example:
185+
email:
186+
type: string
187+
title: Email
188+
attr:
189+
data-group: null
190+
placeholder: null
191+
widget: email
192+
propertyOrder: 1
193+
first_name:
194+
type: string
195+
title: Firstname
196+
attr:
197+
data-group: null
198+
placeholder: null
199+
widget: string
200+
propertyOrder: 2
201+
required:
202+
type: array
203+
description: Required fields names
204+
example:
205+
- 'email'

config/api_resources/document.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
RZ\Roadiz\CoreBundle\Entity\Document:
3-
operations:
4-
ApiPlatform\Metadata\GetCollection:
3+
collectionOperations:
4+
get:
55
method: "GET"
6-
normalizationContext:
7-
groups: ["urls", "document_display", "document_folders", "document_folders_all", "document_display_sources"]
6+
normalization_context:
7+
groups: ["urls", "document_display", "document_display_sources", "position"]
88
enable_max_depth: true
9-
10-
ApiPlatform\Metadata\Get:
9+
itemOperations:
10+
get:
1111
method: 'GET'
12-
normalizationContext:
13-
groups: ["urls", "document", "document_display", "document_folders", "document_folders_all", "document_display_sources"]
12+
normalization_context:
13+
groups: ["urls", "document", "document_display", "document_folders", "document_display_sources", "position"]
1414
enable_max_depth: true
1515

config/api_resources/folder.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
---
22
RZ\Roadiz\CoreBundle\Entity\Folder:
3-
operations:
4-
ApiPlatform\Metadata\GetCollection:
3+
iri: Folder
4+
shortName: Folder
5+
collectionOperations: {}
6+
itemOperations:
7+
get:
58
method: "GET"
6-
normalizationContext:
7-
groups: [ "folder" ]
8-
enable_max_depth: true
9-
ApiPlatform\Metadata\Get:
10-
method: "GET"
11-
normalizationContext:
12-
groups: [ "folder" ]
9+
normalization_context:
10+
groups: [ "folder", "position" ]
1311
enable_max_depth: true

config/api_resources/node.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
---
1+
22
RZ\Roadiz\CoreBundle\Entity\Node:
3-
operations:
4-
ApiPlatform\Metadata\Get:
3+
shortName: Node
4+
collectionOperations: {}
5+
itemOperations:
6+
get:
57
method: 'GET'
6-
normalizationContext:
7-
groups: ["node", "document_display"]
8+
normalization_context:
89
enable_max_depth: true
10+
groups: ["node", "tag_base", "translation_base", "document_display"]

0 commit comments

Comments
 (0)