Skip to content

Commit ee0ce44

Browse files
committed
Merge 4.1
2 parents ad54075 + 79fd1eb commit ee0ce44

File tree

32 files changed

+159
-143
lines changed

32 files changed

+159
-143
lines changed

CONTRIBUTING.md

+4
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,10 @@ The last step is to add you feature inside `features/`. You can add your test in
187187
API Platform is split into several components. There are tests for each of these, to run them `cd src/Doctrine/Common` then `composer update` and `./vendor/bin/phpunit`.
188188
We do not provide a way to run all these tests at once yet.
189189

190+
## Changing a version constraint
191+
192+
Preferably change the version inside the root `composer.json`, then use `composer blend --all` to re-map the depedency accross each sub-project automatically.
193+
190194
# License and Copyright Attribution
191195

192196
When you open a Pull Request to the API Platform project, you agree to license your code under the [MIT license](LICENSE)

composer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
"symfony/http-foundation": "^6.4 || ^7.0",
112112
"symfony/http-kernel": "^6.4 || ^7.0",
113113
"symfony/property-access": "^6.4 || ^7.0",
114-
"symfony/property-info": "^6.4 || ^7.0",
114+
"symfony/property-info": "^6.4 || ^7.1",
115115
"symfony/serializer": "^6.4 || ^7.0",
116116
"symfony/translation-contracts": "^3.3",
117117
"symfony/web-link": "^6.4 || ^7.0",
@@ -125,7 +125,7 @@
125125
"doctrine/dbal": "^4.0",
126126
"doctrine/doctrine-bundle": "^2.11",
127127
"doctrine/mongodb-odm": "^2.10",
128-
"doctrine/mongodb-odm-bundle": "^4.0 || ^5.0",
128+
"doctrine/mongodb-odm-bundle": "^5.0",
129129
"doctrine/orm": "^2.17 || ^3.0",
130130
"elasticsearch/elasticsearch": "^7.17 || ^8.4",
131131
"friends-of-behat/mink-browserkit-driver": "^1.3.1",
@@ -145,14 +145,14 @@
145145
"orchestra/testbench": "^9.1",
146146
"phpspec/prophecy-phpunit": "^2.2",
147147
"phpstan/extension-installer": "^1.1",
148-
"phpstan/phpdoc-parser": "^1.13|^2.0",
148+
"phpstan/phpdoc-parser": "^1.29 || ^2.0",
149149
"phpstan/phpstan": "^1.10",
150150
"phpstan/phpstan-doctrine": "^1.0",
151151
"phpstan/phpstan-phpunit": "^1.0",
152152
"phpstan/phpstan-symfony": "^1.0",
153153
"phpunit/phpunit": "^11.2",
154154
"psr/log": "^1.0 || ^2.0 || ^3.0",
155-
"ramsey/uuid": "^4.0",
155+
"ramsey/uuid": "^4.7",
156156
"ramsey/uuid-doctrine": "^2.0",
157157
"soyuka/contexts": "^3.3.10",
158158
"soyuka/pmu": "^0.0.15",

src/Doctrine/Common/composer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
],
2525
"require": {
2626
"php": ">=8.2",
27-
"api-platform/metadata": "^3.4 || ^4.0",
28-
"api-platform/state": "^3.4 || ^4.0",
27+
"api-platform/metadata": "^4.1",
28+
"api-platform/state": "^4.1",
2929
"doctrine/collections": "^2.1",
3030
"doctrine/common": "^3.2.2",
3131
"doctrine/persistence": "^3.2"
3232
},
3333
"require-dev": {
34-
"doctrine/mongodb-odm": "^2.6",
34+
"doctrine/mongodb-odm": "^2.10",
3535
"doctrine/orm": "^2.17 || ^3.0",
3636
"phpspec/prophecy-phpunit": "^2.2",
3737
"phpunit/phpunit": "^11.2"
@@ -60,7 +60,7 @@
6060
},
6161
"extra": {
6262
"branch-alias": {
63-
"dev-main": "4.0.x-dev",
63+
"dev-main": "4.2.x-dev",
6464
"dev-3.4": "3.4.x-dev"
6565
},
6666
"symfony": {

src/Doctrine/Odm/Tests/Fixtures/CustomConverter.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,14 @@
1313

1414
namespace ApiPlatform\Doctrine\Odm\Tests\Fixtures;
1515

16-
use Symfony\Component\Serializer\NameConverter\AdvancedNameConverterInterface;
1716
use Symfony\Component\Serializer\NameConverter\CamelCaseToSnakeCaseNameConverter;
1817
use Symfony\Component\Serializer\NameConverter\NameConverterInterface;
1918

2019
/**
2120
* Custom converter that will only convert a property named "nameConverted"
2221
* with the same logic as Symfony\Component\Serializer\NameConverter\CamelCaseToSnakeCaseNameConverter.
2322
*/
24-
class CustomConverter implements AdvancedNameConverterInterface
23+
class CustomConverter implements NameConverterInterface
2524
{
2625
private NameConverterInterface $nameConverter;
2726

src/Doctrine/Odm/composer.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@
2626
"require": {
2727
"php": ">=8.2",
2828
"api-platform/doctrine-common": "^4.1",
29-
"api-platform/metadata": "^3.4 || ^4.0",
30-
"api-platform/state": "^3.4 || ^4.0",
31-
"doctrine/mongodb-odm": "^2.2",
29+
"api-platform/metadata": "^4.1",
30+
"api-platform/state": "^4.1",
31+
"doctrine/mongodb-odm": "^2.10",
3232
"symfony/property-info": "^6.4 || ^7.1"
3333
},
3434
"require-dev": {
3535
"doctrine/doctrine-bundle": "^2.11",
3636
"doctrine/mongodb-odm-bundle": "^5.0",
37-
"phpspec/prophecy-phpunit": "^2.0",
38-
"phpunit/phpunit": "^10.0",
37+
"phpspec/prophecy-phpunit": "^2.2",
38+
"phpunit/phpunit": "^11.2",
3939
"symfony/cache": "^6.4 || ^7.0",
4040
"symfony/framework-bundle": "^6.4 || ^7.0",
4141
"symfony/property-access": "^6.4 || ^7.0",
@@ -60,7 +60,7 @@
6060
},
6161
"extra": {
6262
"branch-alias": {
63-
"dev-main": "4.0.x-dev",
63+
"dev-main": "4.2.x-dev",
6464
"dev-3.4": "3.4.x-dev"
6565
},
6666
"symfony": {

src/Doctrine/Orm/Tests/Fixtures/CustomConverter.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,14 @@
1313

1414
namespace ApiPlatform\Doctrine\Orm\Tests\Fixtures;
1515

16-
use Symfony\Component\Serializer\NameConverter\AdvancedNameConverterInterface;
1716
use Symfony\Component\Serializer\NameConverter\CamelCaseToSnakeCaseNameConverter;
1817
use Symfony\Component\Serializer\NameConverter\NameConverterInterface;
1918

2019
/**
2120
* Custom converter that will only convert a property named "nameConverted"
2221
* with the same logic as Symfony\Component\Serializer\NameConverter\CamelCaseToSnakeCaseNameConverter.
2322
*/
24-
class CustomConverter implements AdvancedNameConverterInterface
23+
class CustomConverter implements NameConverterInterface
2524
{
2625
private NameConverterInterface $nameConverter;
2726

src/Doctrine/Orm/composer.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@
2525
"require": {
2626
"php": ">=8.2",
2727
"api-platform/doctrine-common": "^4.1",
28-
"api-platform/metadata": "^3.4 || ^4.0",
29-
"api-platform/state": "^3.4 || ^4.0",
28+
"api-platform/metadata": "^4.1",
29+
"api-platform/state": "^4.1",
3030
"doctrine/orm": "^2.17 || ^3.0",
31-
"symfony/property-info": "^6.4 || ^7.0"
31+
"symfony/property-info": "^6.4 || ^7.1"
3232
},
3333
"require-dev": {
3434
"doctrine/doctrine-bundle": "^2.11",
35-
"phpspec/prophecy-phpunit": "^2.0",
36-
"phpunit/phpunit": "^10.0",
35+
"phpspec/prophecy-phpunit": "^2.2",
36+
"phpunit/phpunit": "^11.2",
3737
"ramsey/uuid": "^4.7",
3838
"ramsey/uuid-doctrine": "^2.0",
3939
"symfony/cache": "^6.4 || ^7.0",
@@ -60,7 +60,7 @@
6060
},
6161
"extra": {
6262
"branch-alias": {
63-
"dev-main": "4.0.x-dev",
63+
"dev-main": "4.2.x-dev",
6464
"dev-3.4": "3.4.x-dev"
6565
},
6666
"symfony": {

src/Documentation/composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
],
2222
"require": {
2323
"php": ">=8.2",
24-
"api-platform/metadata": "^3.4 || ^4.0"
24+
"api-platform/metadata": "^4.1"
2525
},
2626
"extra": {
2727
"branch-alias": {
28-
"dev-main": "4.0.x-dev",
28+
"dev-main": "4.2.x-dev",
2929
"dev-3.4": "3.4.x-dev"
3030
},
3131
"symfony": {

src/Elasticsearch/composer.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
],
2525
"require": {
2626
"php": ">=8.2",
27-
"api-platform/metadata": "^3.4 || ^4.0",
28-
"api-platform/serializer": "^3.4 || ^4.0",
29-
"api-platform/state": "^3.4 || ^4.0",
27+
"api-platform/metadata": "^4.1",
28+
"api-platform/serializer": "^4.1",
29+
"api-platform/state": "^4.1",
3030
"elasticsearch/elasticsearch": "^7.17 || ^8.4",
3131
"symfony/cache": "^6.4 || ^7.0",
3232
"symfony/console": "^6.4 || ^7.0",
3333
"symfony/property-access": "^6.4 || ^7.0",
34-
"symfony/property-info": "^6.4 || ^7.0",
34+
"symfony/property-info": "^6.4 || ^7.1",
3535
"symfony/serializer": "^6.4 || ^7.0",
3636
"symfony/uid": "^6.4 || ^7.0"
3737
},
@@ -60,7 +60,7 @@
6060
},
6161
"extra": {
6262
"branch-alias": {
63-
"dev-main": "4.0.x-dev",
63+
"dev-main": "4.2.x-dev",
6464
"dev-3.4": "3.4.x-dev"
6565
},
6666
"symfony": {

src/GraphQl/Tests/Fixtures/Serializer/NameConverter/CustomConverter.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,14 @@
1313

1414
namespace ApiPlatform\GraphQl\Tests\Fixtures\Serializer\NameConverter;
1515

16-
use Symfony\Component\Serializer\NameConverter\AdvancedNameConverterInterface;
1716
use Symfony\Component\Serializer\NameConverter\CamelCaseToSnakeCaseNameConverter;
1817
use Symfony\Component\Serializer\NameConverter\NameConverterInterface;
1918

2019
/**
2120
* Custom converter that will only convert a property named "nameConverted"
2221
* with the same logic as Symfony\Component\Serializer\NameConverter\CamelCaseToSnakeCaseNameConverter.
2322
*/
24-
class CustomConverter implements AdvancedNameConverterInterface
23+
class CustomConverter implements NameConverterInterface
2524
{
2625
private NameConverterInterface $nameConverter;
2726

src/GraphQl/composer.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@
2121
],
2222
"require": {
2323
"php": ">=8.2",
24-
"api-platform/metadata": "^3.4 || ^4.0",
25-
"api-platform/state": "^3.4 || ^4.0",
26-
"api-platform/serializer": "^3.4 || ^4.0",
27-
"symfony/property-info": "^6.4 || ^7.0",
24+
"api-platform/metadata": "^4.1",
25+
"api-platform/state": "^4.1",
26+
"api-platform/serializer": "^4.1",
27+
"symfony/property-info": "^6.4 || ^7.1",
2828
"symfony/serializer": "^6.4 || ^7.0",
2929
"webonyx/graphql-php": "^15.0",
3030
"willdurand/negotiation": "^3.1"
3131
},
3232
"require-dev": {
3333
"phpspec/prophecy-phpunit": "^2.2",
34-
"api-platform/validator": "^3.4 || ^4.0",
34+
"api-platform/validator": "^4.1",
3535
"twig/twig": "^1.42.3 || ^2.12 || ^3.0",
3636
"symfony/mercure-bundle": "*",
3737
"symfony/routing": "^6.4 || ^7.0",
@@ -63,7 +63,7 @@
6363
},
6464
"extra": {
6565
"branch-alias": {
66-
"dev-main": "4.0.x-dev",
66+
"dev-main": "4.2.x-dev",
6767
"dev-3.4": "3.4.x-dev"
6868
},
6969
"symfony": {

src/Hal/composer.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
}
2222
],
2323
"require": {
24-
"php": ">=8.1",
25-
"api-platform/state": "^3.4 || ^4.0",
26-
"api-platform/metadata": "^3.4 || ^4.0",
27-
"api-platform/serializer": "^3.4 || ^4.0"
24+
"php": ">=8.2",
25+
"api-platform/state": "^4.1",
26+
"api-platform/metadata": "^4.1",
27+
"api-platform/serializer": "^4.1"
2828
},
2929
"autoload": {
3030
"psr-4": {
@@ -46,7 +46,7 @@
4646
},
4747
"extra": {
4848
"branch-alias": {
49-
"dev-main": "4.0.x-dev",
49+
"dev-main": "4.2.x-dev",
5050
"dev-3.4": "3.4.x-dev"
5151
},
5252
"symfony": {

src/HttpCache/composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
],
2424
"require": {
2525
"php": ">=8.2",
26-
"api-platform/metadata": "^3.4 || ^4.0",
27-
"api-platform/state": "^3.4 || ^4.0",
26+
"api-platform/metadata": "^4.1",
27+
"api-platform/state": "^4.1",
2828
"symfony/http-foundation": "^6.4 || ^7.0"
2929
},
3030
"require-dev": {
@@ -54,7 +54,7 @@
5454
},
5555
"extra": {
5656
"branch-alias": {
57-
"dev-main": "4.0.x-dev",
57+
"dev-main": "4.2.x-dev",
5858
"dev-3.4": "3.4.x-dev"
5959
},
6060
"symfony": {

src/Hydra/Tests/Fixtures/CustomConverter.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,14 @@
1313

1414
namespace ApiPlatform\Hydra\Tests\Fixtures;
1515

16-
use Symfony\Component\Serializer\NameConverter\AdvancedNameConverterInterface;
1716
use Symfony\Component\Serializer\NameConverter\CamelCaseToSnakeCaseNameConverter;
1817
use Symfony\Component\Serializer\NameConverter\NameConverterInterface;
1918

2019
/**
2120
* Custom converter that will only convert a property named "nameConverted"
2221
* with the same logic as Symfony\Component\Serializer\NameConverter\CamelCaseToSnakeCaseNameConverter.
2322
*/
24-
class CustomConverter implements AdvancedNameConverterInterface
23+
class CustomConverter implements NameConverterInterface
2524
{
2625
private NameConverterInterface $nameConverter;
2726

src/Hydra/composer.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@
2525
],
2626
"require": {
2727
"php": ">=8.2",
28-
"api-platform/state": "^3.4 || ^4.0",
29-
"api-platform/documentation": "^3.4 || ^4.0",
30-
"api-platform/metadata": "^3.4 || ^4.0",
31-
"api-platform/jsonld": "^3.4 || ^4.0",
32-
"api-platform/json-schema": "^3.4 || ^4.0",
33-
"api-platform/serializer": "^3.4 || ^4.0",
28+
"api-platform/state": "^4.1",
29+
"api-platform/documentation": "^4.1",
30+
"api-platform/metadata": "^4.1",
31+
"api-platform/jsonld": "^4.1",
32+
"api-platform/json-schema": "^4.1",
33+
"api-platform/serializer": "^4.1",
3434
"symfony/web-link": "^6.4 || ^7.0"
3535
},
3636
"require-dev": {
37-
"api-platform/doctrine-odm": "^3.4 || ^4.0",
38-
"api-platform/doctrine-orm": "^3.4 || ^4.0",
39-
"api-platform/doctrine-common": "^3.4 || ^4.0",
37+
"api-platform/doctrine-odm": "^4.1",
38+
"api-platform/doctrine-orm": "^4.1",
39+
"api-platform/doctrine-common": "^4.1",
4040
"phpspec/prophecy": "^1.19",
4141
"phpspec/prophecy-phpunit": "^2.2",
4242
"phpunit/phpunit": "^11.2"
@@ -61,7 +61,7 @@
6161
},
6262
"extra": {
6363
"branch-alias": {
64-
"dev-main": "4.0.x-dev",
64+
"dev-main": "4.2.x-dev",
6565
"dev-3.4": "3.4.x-dev"
6666
},
6767
"symfony": {

src/JsonApi/Tests/Fixtures/CustomConverter.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,14 @@
1313

1414
namespace ApiPlatform\JsonApi\Tests\Fixtures;
1515

16-
use Symfony\Component\Serializer\NameConverter\AdvancedNameConverterInterface;
1716
use Symfony\Component\Serializer\NameConverter\CamelCaseToSnakeCaseNameConverter;
1817
use Symfony\Component\Serializer\NameConverter\NameConverterInterface;
1918

2019
/**
2120
* Custom converter that will only convert a property named "nameConverted"
2221
* with the same logic as Symfony\Component\Serializer\NameConverter\CamelCaseToSnakeCaseNameConverter.
2322
*/
24-
class CustomConverter implements AdvancedNameConverterInterface
23+
class CustomConverter implements NameConverterInterface
2524
{
2625
private NameConverterInterface $nameConverter;
2726

src/JsonApi/composer.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
],
2323
"require": {
2424
"php": ">=8.2",
25-
"api-platform/documentation": "^3.4 || ^4.0",
26-
"api-platform/json-schema": "^3.4 || ^4.0",
27-
"api-platform/metadata": "^3.4 || ^4.0",
28-
"api-platform/serializer": "^3.4 || ^4.0",
29-
"api-platform/state": "^3.4 || ^4.0",
25+
"api-platform/documentation": "^4.1",
26+
"api-platform/json-schema": "^4.1",
27+
"api-platform/metadata": "^4.1",
28+
"api-platform/serializer": "^4.1",
29+
"api-platform/state": "^4.1",
3030
"symfony/error-handler": "^6.4 || ^7.0",
3131
"symfony/http-foundation": "^6.4 || ^7.0"
3232
},
@@ -55,7 +55,7 @@
5555
},
5656
"extra": {
5757
"branch-alias": {
58-
"dev-main": "4.0.x-dev",
58+
"dev-main": "4.2.x-dev",
5959
"dev-3.4": "3.4.x-dev"
6060
},
6161
"symfony": {

0 commit comments

Comments
 (0)