Skip to content

Commit ac80fd2

Browse files
committed
Merge branch '2.5' into merge-2.5
2 parents 906aaa2 + 56e0a29 commit ac80fd2

File tree

81 files changed

+1014
-1110
lines changed

Some content is hidden

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

81 files changed

+1014
-1110
lines changed

.circleci/config.yml

Lines changed: 0 additions & 363 deletions
Large diffs are not rendered by default.

.github/workflows/ci.yml

Lines changed: 481 additions & 32 deletions
Large diffs are not rendered by default.

CHANGELOG.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,27 @@
11
# Changelog
22

3-
## 2.6.0
3+
## 2.6.x-dev
44

55
* MongoDB: Possibility to add execute options (aggregate command fields) for a resource, like `allowDiskUse` (#3144)
66

7+
## 2.5.1
8+
9+
* Compatibility with Symfony 5
10+
* Fix a notice in `SerializerContextBuilder`
11+
* Fix dashed path segment generation
12+
* Fix support for custom filters without constructor in the `@ApiFilter` annotation
13+
* Fix a bug that was preventing to disable Swagger/OpenAPI
14+
* Return a `404` HTTP status code instead of `500` whe the identifier is invalid (e.g.: invalid UUID)
15+
* Add links to the documentation in `@ApiResource` annotation's attributes to improve DX
16+
* JSON:API: fix pagination being ignored when using the `filter` query parameter
17+
* Elasticsearch: Allow multiple queries to be set
18+
* OpenAPI: Do not append `body` parameter if it already exists
19+
* OpenAPI: Fix removal of illegal characters in schema name for Amazon API Gateway
20+
* Swagger UI: Add missing `oauth2-redirect` configuration
21+
* Swagger UI: Allow changing the location of Swagger UI
22+
* GraphQL: Fix an error that was occurring when `SecurityBundle` was not installed
23+
* HTTP/2 Server Push: Push relations as `fetch`
24+
725
## 2.5.0
826

927
* Fix BC-break when using short-syntax notation for `access_control`

behat.yml.dist

Lines changed: 57 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ default:
2020
- 'Behat\MinkExtension\Context\MinkContext'
2121
- 'Behatch\Context\RestContext'
2222
filters:
23-
tags: '~@postgres&&~@mongodb&&~@elasticsearch'
23+
tags: '~@postgres&&~@mongodb&&~@elasticsearch&&~@legacy'
2424
extensions:
2525
'Behat\Symfony2Extension':
2626
kernel:
@@ -36,12 +36,6 @@ default:
3636
symfony2: ~
3737
'Behatch\Extension': ~
3838

39-
default-no-legacy:
40-
suites:
41-
default:
42-
filters:
43-
tags: '~@postgres&&~@mongodb&&~@elasticsearch&&~@legacy'
44-
4539
postgres:
4640
suites:
4741
default: false
@@ -64,14 +58,6 @@ postgres:
6458
schemaFile: '%paths.base%/tests/Fixtures/JsonHal/jsonhal.json'
6559
- 'Behat\MinkExtension\Context\MinkContext'
6660
- 'Behatch\Context\RestContext'
67-
filters:
68-
tags: '~@sqlite&&~@mongodb&&~@elasticsearch'
69-
70-
postgres-no-legacy:
71-
suites:
72-
default: false
73-
postgres:
74-
<<: *postgres-suite
7561
filters:
7662
tags: '~@sqlite&&~@mongodb&&~@elasticsearch&&~@legacy'
7763

@@ -97,14 +83,6 @@ mongodb:
9783
schemaFile: '%paths.base%/tests/Fixtures/JsonHal/jsonhal.json'
9884
- 'Behat\MinkExtension\Context\MinkContext'
9985
- 'Behatch\Context\RestContext'
100-
filters:
101-
tags: '~@sqlite&&~@elasticsearch&&~@!mongodb'
102-
103-
mongodb-no-legacy:
104-
suites:
105-
default: false
106-
mongodb:
107-
<<: *mongodb-suite
10886
filters:
10987
tags: '~@sqlite&&~@elasticsearch&&~@!mongodb&&~@legacy'
11088

@@ -124,20 +102,12 @@ elasticsearch:
124102
- 'JsonContext'
125103
- 'Behatch\Context\RestContext'
126104
- 'Behat\MinkExtension\Context\MinkContext'
127-
filters:
128-
tags: '@elasticsearch'
129-
130-
elasticsearch-no-legacy:
131-
suites:
132-
default: false
133-
elasticsearch:
134-
<<: *elasticsearch-suite
135105
filters:
136106
tags: '@elasticsearch&&~@legacy'
137107

138108
default-coverage:
139109
suites:
140-
default:
110+
default: &default-coverage-suite
141111
contexts:
142112
- 'CommandContext'
143113
- 'DoctrineContext':
@@ -161,7 +131,7 @@ default-coverage:
161131
mongodb-coverage:
162132
suites:
163133
default: false
164-
mongodb:
134+
mongodb: &mongodb-coverage-suite
165135
<<: *mongodb-suite
166136
contexts:
167137
- 'CommandContext'
@@ -186,7 +156,7 @@ mongodb-coverage:
186156
elasticsearch-coverage:
187157
suites:
188158
default: false
189-
elasticsearch:
159+
elasticsearch: &elasticsearch-coverage-suite
190160
<<: *elasticsearch-suite
191161
contexts:
192162
- 'CommandContext'
@@ -199,3 +169,56 @@ elasticsearch-coverage:
199169
- 'CoverageContext'
200170
- 'Behatch\Context\RestContext'
201171
- 'Behat\MinkExtension\Context\MinkContext'
172+
173+
default-legacy:
174+
suites:
175+
default:
176+
filters:
177+
tags: '~@postgres&&~@mongodb&&~@elasticsearch'
178+
179+
postgres-legacy:
180+
suites:
181+
default: false
182+
postgres:
183+
<<: *postgres-suite
184+
filters:
185+
tags: '~@sqlite&&~@mongodb&&~@elasticsearch'
186+
187+
mongodb-legacy:
188+
suites:
189+
default: false
190+
mongodb:
191+
<<: *mongodb-suite
192+
filters:
193+
tags: '~@sqlite&&~@elasticsearch&&~@!mongodb'
194+
195+
elasticsearch-legacy:
196+
suites:
197+
default: false
198+
elasticsearch:
199+
<<: *elasticsearch-suite
200+
filters:
201+
tags: '@elasticsearch'
202+
203+
default-legacy-coverage:
204+
suites:
205+
default:
206+
<<: *default-coverage-suite
207+
filters:
208+
tags: '~@postgres&&~@mongodb&&~@elasticsearch'
209+
210+
mongodb-legacy-coverage:
211+
suites:
212+
default: false
213+
mongodb:
214+
<<: *mongodb-coverage-suite
215+
filters:
216+
tags: '~@sqlite&&~@elasticsearch&&~@!mongodb'
217+
218+
elasticsearch-legacy-coverage:
219+
suites:
220+
default: false
221+
elasticsearch:
222+
<<: *elasticsearch-coverage-suite
223+
filters:
224+
tags: '@elasticsearch'

composer.json

Lines changed: 35 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@
1515
"require": {
1616
"php": ">=7.1",
1717
"doctrine/inflector": "^1.0",
18+
"fig/link-util": "^1.0",
1819
"psr/cache": "^1.0",
1920
"psr/container": "^1.0",
20-
"symfony/http-foundation": "^3.4 || ^4.0",
21-
"symfony/http-kernel": "^3.4 || ^4.0",
22-
"symfony/property-access": "^3.4 || ^4.0",
23-
"symfony/property-info": "^3.4 || ^4.0",
24-
"symfony/serializer": "^4.3",
25-
"symfony/web-link": "^4.1",
21+
"symfony/http-foundation": "^4.3.6 || ^5.0",
22+
"symfony/http-kernel": "^4.3.7 || ^5.0",
23+
"symfony/property-access": "^3.4 || ^4.0 || ^5.0",
24+
"symfony/property-info": "^3.4 || ^4.0 || ^5.0",
25+
"symfony/serializer": "^4.3 || ^5.0",
26+
"symfony/web-link": "^4.1 || ^5.0",
2627
"willdurand/negotiation": "^2.0.3"
2728
},
2829
"require-dev": {
@@ -31,11 +32,11 @@
3132
"behat/mink-browserkit-driver": "^1.3.1",
3233
"behat/mink-extension": "^2.2",
3334
"behat/symfony2-extension": "^2.1.1",
34-
"behatch/contexts": "3.1.0",
35+
"behatch/contexts": "^3.1.0",
3536
"doctrine/annotations": "^1.7",
3637
"doctrine/common": "^2.11",
3738
"doctrine/data-fixtures": "^1.2.2",
38-
"doctrine/doctrine-bundle": "^1.8",
39+
"doctrine/doctrine-bundle": "^1.8 || ^2.0",
3940
"doctrine/doctrine-cache-bundle": "^1.3.5",
4041
"doctrine/mongodb-odm": "^2.0",
4142
"doctrine/mongodb-odm-bundle": "^4.0",
@@ -50,7 +51,7 @@
5051
"phpdocumentor/type-resolver": "^0.3 || ^0.4",
5152
"phpspec/prophecy": "^1.8",
5253
"phpstan/extension-installer": "^1.0",
53-
"phpstan/phpstan": "^0.11.10 <0.11.17",
54+
"phpstan/phpstan": "^0.11.10",
5455
"phpstan/phpstan-doctrine": "^0.11.5",
5556
"phpstan/phpstan-phpunit": "^0.11.2",
5657
"phpstan/phpstan-symfony": "^0.11.6",
@@ -59,32 +60,32 @@
5960
"ramsey/uuid": "^3.7",
6061
"ramsey/uuid-doctrine": "^1.4",
6162
"sebastian/object-enumerator": "^3.0.3",
62-
"symfony/asset": "^3.4 || ^4.0",
63-
"symfony/browser-kit": "^4.3",
64-
"symfony/cache": "^3.4 || ^4.0",
65-
"symfony/config": "^3.4 || ^4.0",
66-
"symfony/console": "^3.4 || ^4.0",
67-
"symfony/css-selector": "^3.4 || ^4.0",
68-
"symfony/debug": "^3.4 || ^4.0",
69-
"symfony/dependency-injection": "^3.4 || ^4.0",
70-
"symfony/doctrine-bridge": "^3.4 || ^4.0",
71-
"symfony/dom-crawler": "^3.4 || ^4.0",
72-
"symfony/event-dispatcher": "^3.4 || ^4.0",
73-
"symfony/expression-language": "^3.4 || ^4.0",
74-
"symfony/finder": "^3.4 || ^4.0",
75-
"symfony/form": "^3.4 || ^4.0",
76-
"symfony/framework-bundle": "^4.3.2",
77-
"symfony/http-client": "^4.3",
63+
"symfony/asset": "^3.4 || ^4.0 || ^5.0",
64+
"symfony/browser-kit": "^4.3 || ^5.0",
65+
"symfony/cache": "^3.4 || ^4.0 || ^5.0",
66+
"symfony/config": "^3.4 || ^4.0 || ^5.0",
67+
"symfony/console": "^3.4 || ^4.0 || ^5.0",
68+
"symfony/css-selector": "^3.4 || ^4.0 || ^5.0",
69+
"symfony/debug": "^3.4 || ^4.0 || ^5.0",
70+
"symfony/dependency-injection": "^3.4 || ^4.0 || ^5.0",
71+
"symfony/doctrine-bridge": "^3.4 || ^4.0 || ^5.0",
72+
"symfony/dom-crawler": "^3.4 || ^4.0 || ^5.0",
73+
"symfony/event-dispatcher": "^3.4 || ^4.0 || ^5.0",
74+
"symfony/expression-language": "^3.4 || ^4.0 || ^5.0",
75+
"symfony/finder": "^3.4 || ^4.0 || ^5.0",
76+
"symfony/form": "^3.4 || ^4.0 || ^5.0",
77+
"symfony/framework-bundle": "^4.3.2 || ^5.0",
78+
"symfony/http-client": "^4.3 || ^5.0",
7879
"symfony/mercure-bundle": "*",
79-
"symfony/messenger": "^4.3",
80-
"symfony/phpunit-bridge": "^4.3@dev",
81-
"symfony/routing": "^3.4 || ^4.3",
82-
"symfony/security-bundle": "^3.4 || ^4.0",
83-
"symfony/security-core": "^4.3",
84-
"symfony/twig-bundle": "^3.4 || ^4.0",
85-
"symfony/validator": "^3.4 || ^4.0",
86-
"symfony/web-profiler-bundle": "^4.2",
87-
"symfony/yaml": "^3.4 || ^4.0",
80+
"symfony/messenger": "^4.3 || ^5.0",
81+
"symfony/phpunit-bridge": "^4.3 || ^5.0",
82+
"symfony/routing": "^3.4 || ^4.3 || ^5.0",
83+
"symfony/security-bundle": "^3.4 || ^4.0 || ^5.0",
84+
"symfony/security-core": "^4.3 || ^5.0",
85+
"symfony/twig-bundle": "^3.4 || ^4.0 || ^5.0",
86+
"symfony/validator": "^3.4 || ^4.0 || ^5.0",
87+
"symfony/web-profiler-bundle": "^4.2 || ^5.0",
88+
"symfony/yaml": "^3.4 || ^4.0 || ^5.0",
8889
"twig/twig": "^1.42.3 || ^2.12",
8990
"webonyx/graphql-php": ">=0.13.1 <1.0"
9091
},

0 commit comments

Comments
 (0)