diff --git a/api/composer.json b/api/composer.json index fa8807570..e67340bd5 100644 --- a/api/composer.json +++ b/api/composer.json @@ -5,7 +5,9 @@ "php": ">=8.3", "ext-ctype": "*", "ext-iconv": "*", - "api-platform/core": "^3.3", + "api-platform/doctrine-orm": "^4.0", + "api-platform/graphql": "^4.0", + "api-platform/symfony": "^4.0", "doctrine/common": "^3.4", "doctrine/doctrine-bundle": "^2.11", "doctrine/doctrine-fixtures-bundle": "^3.5", @@ -115,5 +117,6 @@ "flex://defaults" ] } - } + }, + "minimum-stability": "alpha" } diff --git a/api/composer.lock b/api/composer.lock index a54093f37..da1c48eb1 100644 --- a/api/composer.lock +++ b/api/composer.lock @@ -4,165 +4,1038 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "63647248801193aa471edbe90382951f", + "content-hash": "475ca0264f6260a84894462e53c3fd3c", "packages": [ { - "name": "api-platform/core", - "version": "v3.3.13", + "name": "api-platform/doctrine-common", + "version": "v4.0.0-alpha.6", "source": { "type": "git", - "url": "https://github.com/api-platform/core.git", - "reference": "d08d4dd2227c8f528b15d8d2513a647b1aebabc7" + "url": "https://github.com/api-platform/doctrine-common.git", + "reference": "3fc12aecd75badda710161fed8d540712177a76f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/api-platform/core/zipball/d08d4dd2227c8f528b15d8d2513a647b1aebabc7", - "reference": "d08d4dd2227c8f528b15d8d2513a647b1aebabc7", + "url": "https://api.github.com/repos/api-platform/doctrine-common/zipball/3fc12aecd75badda710161fed8d540712177a76f", + "reference": "3fc12aecd75badda710161fed8d540712177a76f", "shasum": "" }, "require": { - "doctrine/inflector": "^1.0 || ^2.0", + "api-platform/metadata": "^3.4 || ^4.0", + "api-platform/state": "^3.4 || ^4.0", + "doctrine/collections": "^2.1", + "doctrine/common": "^3.2.2", + "doctrine/persistence": "^3.2", + "php": ">=8.1" + }, + "conflict": { + "doctrine/persistence": "<1.3" + }, + "require-dev": { + "doctrine/mongodb-odm": "^2.6", + "doctrine/orm": "^2.17 || ^3.0", + "phpspec/prophecy-phpunit": "^2.2", + "phpunit/phpunit": "^11.2" + }, + "suggest": { + "api-platform/graphql": "For GraphQl mercure subscriptions.", + "api-platform/http-cache": "For HTTP cache invalidation.", + "phpstan/phpdoc-parser": "For PHP documentation support.", + "symfony/config": "For XML resource configuration.", + "symfony/mercure-bundle": "For mercure updates publisher.", + "symfony/yaml": "For YAML resource configuration." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.0.x-dev", + "dev-3.4": "3.4.x-dev" + }, + "symfony": { + "require": "^6.4 || ^7.1" + } + }, + "autoload": { + "psr-4": { + "ApiPlatform\\Doctrine\\Common\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Kévin Dunglas", + "email": "kevin@dunglas.fr", + "homepage": "https://dunglas.fr" + }, + { + "name": "API Platform Community", + "homepage": "https://api-platform.com/community/contributors" + } + ], + "description": "Common files used by api-platform/doctrine-orm and api-platform/doctrine-odm", + "homepage": "https://api-platform.com", + "keywords": [ + "common", + "doctrine", + "odm", + "orm" + ], + "support": { + "issues": "https://github.com/api-platform/doctrine-common/issues", + "source": "https://github.com/api-platform/doctrine-common/tree/v4.0.0-alpha.6" + }, + "time": "2024-09-09T11:52:07+00:00" + }, + { + "name": "api-platform/doctrine-orm", + "version": "v4.0.0-alpha.6", + "source": { + "type": "git", + "url": "https://github.com/api-platform/doctrine-orm.git", + "reference": "c4d46675a6f48e29efd8c3c6b53bd621468026ec" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/api-platform/doctrine-orm/zipball/c4d46675a6f48e29efd8c3c6b53bd621468026ec", + "reference": "c4d46675a6f48e29efd8c3c6b53bd621468026ec", + "shasum": "" + }, + "require": { + "api-platform/doctrine-common": "^3.4 || ^4.0", + "api-platform/metadata": "^3.4 || ^4.0", + "api-platform/state": "^3.4 || ^4.0", + "doctrine/doctrine-bundle": "^2.11", + "doctrine/orm": "^2.17 || ^3.0", "php": ">=8.1", - "psr/cache": "^1.0 || ^2.0 || ^3.0", - "psr/container": "^1.0 || ^2.0", - "symfony/deprecation-contracts": "^3.1", - "symfony/http-foundation": "^6.4 || ^7.0", - "symfony/http-kernel": "^6.4 || ^7.0", + "symfony/property-info": "^6.4 || ^7.1" + }, + "require-dev": { + "phpspec/prophecy-phpunit": "^2.2", + "phpunit/phpunit": "^11.2", + "ramsey/uuid": "^4.0", + "ramsey/uuid-doctrine": "^2.0", + "symfony/cache": "^6.4 || ^7.1", + "symfony/framework-bundle": "^6.4 || ^7.1", "symfony/property-access": "^6.4 || ^7.0", - "symfony/property-info": "^6.4 || ^7.0", "symfony/serializer": "^6.4 || ^7.0", - "symfony/translation-contracts": "^3.3", + "symfony/uid": "^6.4 || ^7.1", + "symfony/validator": "^6.4 || ^7.1", + "symfony/yaml": "^6.4 || ^7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.0.x-dev", + "dev-3.4": "3.4.x-dev" + }, + "symfony": { + "require": "^6.4 || ^7.1" + } + }, + "autoload": { + "psr-4": { + "ApiPlatform\\Doctrine\\Orm\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Kévin Dunglas", + "email": "kevin@dunglas.fr", + "homepage": "https://dunglas.fr" + }, + { + "name": "API Platform Community", + "homepage": "https://api-platform.com/community/contributors" + } + ], + "description": "Doctrine ORM bridge", + "homepage": "https://api-platform.com", + "keywords": [ + "doctrine", + "orm" + ], + "support": { + "issues": "https://github.com/api-platform/doctrine-orm/issues", + "source": "https://github.com/api-platform/doctrine-orm/tree/v4.0.0-alpha.6" + }, + "time": "2024-09-09T11:52:07+00:00" + }, + { + "name": "api-platform/documentation", + "version": "v4.0.0-alpha.6", + "source": { + "type": "git", + "url": "https://github.com/api-platform/documentation.git", + "reference": "7d47af201959ba1cf1b66eabca882cd5e68198c2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/api-platform/documentation/zipball/7d47af201959ba1cf1b66eabca882cd5e68198c2", + "reference": "7d47af201959ba1cf1b66eabca882cd5e68198c2", + "shasum": "" + }, + "require": { + "api-platform/metadata": "^3.4 || ^4.0" + }, + "require-dev": { + "phpunit/phpunit": "^11.2" + }, + "type": "project", + "extra": { + "branch-alias": { + "dev-main": "4.0.x-dev", + "dev-3.4": "3.4.x-dev" + }, + "symfony": { + "require": "^6.4 || ^7.1" + } + }, + "autoload": { + "psr-4": { + "ApiPlatform\\Documentation\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Kévin Dunglas", + "email": "kevin@dunglas.fr", + "homepage": "https://dunglas.fr" + }, + { + "name": "API Platform Community", + "homepage": "https://api-platform.com/community/contributors" + } + ], + "description": "API Platform documentation controller.", + "support": { + "issues": "https://github.com/api-platform/documentation/issues", + "source": "https://github.com/api-platform/documentation/tree/v4.0.0-alpha.6" + }, + "time": "2024-09-06T14:47:50+00:00" + }, + { + "name": "api-platform/graphql", + "version": "v4.0.0-alpha.6", + "source": { + "type": "git", + "url": "https://github.com/api-platform/graphql.git", + "reference": "6773116038a18a9d26c1685995ef1a66131a10fd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/api-platform/graphql/zipball/6773116038a18a9d26c1685995ef1a66131a10fd", + "reference": "6773116038a18a9d26c1685995ef1a66131a10fd", + "shasum": "" + }, + "require": { + "api-platform/metadata": "^3.4 || ^4.0", + "api-platform/serializer": "^3.4 || ^4.0", + "api-platform/state": "^3.4 || ^4.0", + "php": ">=8.1", + "symfony/property-info": "^6.4 || ^7.1", + "symfony/serializer": "^6.4 || ^7.1", + "webonyx/graphql-php": "^14.0 || ^15.0", + "willdurand/negotiation": "^3.1" + }, + "require-dev": { + "api-platform/validator": "^3.4 || ^4.0", + "phpspec/prophecy-phpunit": "^2.2", + "phpunit/phpunit": "^11.2", + "symfony/mercure-bundle": "*", + "symfony/routing": "^6.4 || ^7.1", + "twig/twig": "^3.7" + }, + "suggest": { + "api-platform/doctrine-odm": "To support doctrine ODM state options.", + "api-platform/doctrine-orm": "To support doctrine ORM state options.", + "api-platform/validator": "To support validation." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.0.x-dev", + "dev-3.4": "3.4.x-dev" + }, + "symfony": { + "require": "^6.4 || ^7.1" + } + }, + "autoload": { + "psr-4": { + "ApiPlatform\\GraphQl\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Kévin Dunglas", + "email": "kevin@dunglas.fr", + "homepage": "https://dunglas.fr" + }, + { + "name": "API Platform Community", + "homepage": "https://api-platform.com/community/contributors" + } + ], + "description": "Build GraphQL API endpoints", + "homepage": "https://api-platform.com", + "keywords": [ + "api", + "graphql" + ], + "support": { + "source": "https://github.com/api-platform/graphql/tree/v4.0.0-alpha.6" + }, + "time": "2024-09-06T06:35:15+00:00" + }, + { + "name": "api-platform/http-cache", + "version": "v4.0.0-alpha.6", + "source": { + "type": "git", + "url": "https://github.com/api-platform/http-cache.git", + "reference": "7bd20fe11f1a6a66687581c528d38090d020b88a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/api-platform/http-cache/zipball/7bd20fe11f1a6a66687581c528d38090d020b88a", + "reference": "7bd20fe11f1a6a66687581c528d38090d020b88a", + "shasum": "" + }, + "require": { + "api-platform/metadata": "^3.4 || ^4.0", + "api-platform/state": "^3.4 || ^4.0", + "php": ">=8.1", + "symfony/http-foundation": "^6.4 || ^7.1" + }, + "require-dev": { + "guzzlehttp/guzzle": "^6.0 || ^7.0", + "phpspec/prophecy-phpunit": "^2.2", + "phpunit/phpunit": "^11.2", + "symfony/dependency-injection": "^6.4 || ^7.1", + "symfony/http-client": "^6.4 || ^7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.0.x-dev", + "dev-3.4": "3.4.x-dev" + }, + "symfony": { + "require": "^6.4 || ^7.1" + } + }, + "autoload": { + "psr-4": { + "ApiPlatform\\HttpCache\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Kévin Dunglas", + "email": "kevin@dunglas.fr", + "homepage": "https://dunglas.fr" + }, + { + "name": "API Platform Community", + "homepage": "https://api-platform.com/comunnity/contributors" + } + ], + "description": "API Platform HttpCache component", + "homepage": "https://api-platform.com", + "keywords": [ + "cache", + "http" + ], + "support": { + "issues": "https://github.com/api-platform/http-cache/issues", + "source": "https://github.com/api-platform/http-cache/tree/v4.0.0-alpha.6" + }, + "time": "2024-09-06T06:35:15+00:00" + }, + { + "name": "api-platform/hydra", + "version": "v4.0.0-alpha.6", + "source": { + "type": "git", + "url": "https://github.com/api-platform/hydra.git", + "reference": "6806a68ea022ade70f7a730771072c7e1146fc20" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/api-platform/hydra/zipball/6806a68ea022ade70f7a730771072c7e1146fc20", + "reference": "6806a68ea022ade70f7a730771072c7e1146fc20", + "shasum": "" + }, + "require": { + "api-platform/documentation": "^3.4 || ^4.0", + "api-platform/json-schema": "^3.4 || ^4.0", + "api-platform/jsonld": "^3.4 || ^4.0", + "api-platform/metadata": "^3.4 || ^4.0", + "api-platform/serializer": "^3.4 || ^4.0", + "api-platform/state": "^3.4 || ^4.0", + "php": ">=8.1", + "symfony/web-link": "^6.4 || ^7.1" + }, + "require-dev": { + "api-platform/doctrine-common": "^3.4 || ^4.0", + "api-platform/doctrine-odm": "^3.4 || ^4.0", + "api-platform/doctrine-orm": "^3.4 || ^4.0", + "phpspec/prophecy": "^1.19", + "phpspec/prophecy-phpunit": "^2.2", + "phpunit/phpunit": "^11.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.0.x-dev", + "dev-3.4": "3.4.x-dev" + }, + "symfony": { + "require": "^6.4 || ^7.1" + } + }, + "autoload": { + "psr-4": { + "ApiPlatform\\Hydra\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Kévin Dunglas", + "email": "kevin@dunglas.fr", + "homepage": "https://dunglas.fr" + }, + { + "name": "API Platform Community", + "homepage": "https://api-platform.com/community/contributors" + } + ], + "description": "API Hydra support", + "homepage": "https://api-platform.com", + "keywords": [ + "Hydra", + "JSON-LD", + "api", + "graphql", + "hal", + "jsonapi", + "openapi", + "rest", + "swagger" + ], + "support": { + "issues": "https://github.com/api-platform/hydra/issues", + "source": "https://github.com/api-platform/hydra/tree/v4.0.0-alpha.6" + }, + "time": "2024-09-09T12:41:13+00:00" + }, + { + "name": "api-platform/json-schema", + "version": "v4.0.0-alpha.6", + "source": { + "type": "git", + "url": "https://github.com/api-platform/json-schema.git", + "reference": "1e7c5135e8a3e20381becd906b5285d388c20021" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/api-platform/json-schema/zipball/1e7c5135e8a3e20381becd906b5285d388c20021", + "reference": "1e7c5135e8a3e20381becd906b5285d388c20021", + "shasum": "" + }, + "require": { + "api-platform/metadata": "^3.4 || ^4.0", + "php": ">=8.1", + "symfony/console": "^6.4 || ^7.0", + "symfony/property-info": "^6.4 || ^7.1", + "symfony/serializer": "^6.4 || ^7.1", + "symfony/uid": "^6.4 || ^7.0" + }, + "require-dev": { + "phpspec/prophecy-phpunit": "^2.2", + "phpunit/phpunit": "^11.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.0.x-dev", + "dev-3.4": "3.4.x-dev" + }, + "symfony": { + "require": "^6.4 || ^7.1" + } + }, + "autoload": { + "psr-4": { + "ApiPlatform\\JsonSchema\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Kévin Dunglas", + "email": "kevin@dunglas.fr", + "homepage": "https://dunglas.fr" + }, + { + "name": "API Platform Community", + "homepage": "https://api-platform.com/community/contributors" + } + ], + "description": "Generate a JSON Schema from a PHP class", + "homepage": "https://api-platform.com", + "keywords": [ + "JSON Schema", + "api", + "json", + "openapi", + "rest", + "swagger" + ], + "support": { + "source": "https://github.com/api-platform/json-schema/tree/v4.0.0-alpha.6" + }, + "time": "2024-09-09T11:52:07+00:00" + }, + { + "name": "api-platform/jsonld", + "version": "v4.0.0-alpha.6", + "source": { + "type": "git", + "url": "https://github.com/api-platform/jsonld.git", + "reference": "dfc09139e693ce495181c10d5f87145d7f4891d5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/api-platform/jsonld/zipball/dfc09139e693ce495181c10d5f87145d7f4891d5", + "reference": "dfc09139e693ce495181c10d5f87145d7f4891d5", + "shasum": "" + }, + "require": { + "api-platform/metadata": "^3.4 || ^4.0", + "api-platform/serializer": "^3.4 || ^4.0", + "api-platform/state": "^3.4 || ^4.0", + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^11.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.0.x-dev", + "dev-3.4": "3.4.x-dev" + }, + "symfony": { + "require": "^6.4 || ^7.1" + } + }, + "autoload": { + "psr-4": { + "ApiPlatform\\JsonLd\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Kévin Dunglas", + "email": "kevin@dunglas.fr", + "homepage": "https://dunglas.fr" + }, + { + "name": "API Platform Community", + "homepage": "https://api-platform.com/community/contributors" + } + ], + "description": "API JSON-LD support", + "homepage": "https://api-platform.com", + "keywords": [ + "Hydra", + "JSON-LD", + "api", + "graphql", + "hal", + "jsonapi", + "openapi", + "rest", + "swagger" + ], + "support": { + "issues": "https://github.com/api-platform/jsonld/issues", + "source": "https://github.com/api-platform/jsonld/tree/v4.0.0-alpha.6" + }, + "time": "2024-09-09T11:52:07+00:00" + }, + { + "name": "api-platform/metadata", + "version": "v4.0.0-alpha.6", + "source": { + "type": "git", + "url": "https://github.com/api-platform/metadata.git", + "reference": "c7b6a799187c63aa8e68405b3e28e068a03dbac2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/api-platform/metadata/zipball/c7b6a799187c63aa8e68405b3e28e068a03dbac2", + "reference": "c7b6a799187c63aa8e68405b3e28e068a03dbac2", + "shasum": "" + }, + "require": { + "doctrine/inflector": "^1.0 || ^2.0", + "php": ">=8.1", + "psr/cache": "^1.0 || ^2.0 || ^3.0", + "psr/log": "^1.0 || ^2.0 || ^3.0", + "symfony/property-info": "^6.4 || ^7.1", + "symfony/string": "^6.4 || ^7.0", + "symfony/type-info": "^7.1" + }, + "require-dev": { + "api-platform/json-schema": "^3.4 || ^4.0", + "api-platform/openapi": "^3.4 || ^4.0", + "api-platform/state": "^3.4 || ^4.0", + "phpspec/prophecy-phpunit": "^2.0", + "phpstan/phpdoc-parser": "^1.16", + "phpunit/phpunit": "^11.2", + "symfony/config": "^6.4 || 7.1", + "symfony/routing": "^6.4 || ^7.1", + "symfony/var-dumper": "^6.4 || ^7.0", "symfony/web-link": "^6.4 || ^7.0", - "willdurand/negotiation": "^3.0" + "symfony/yaml": "^6.4 || ^7.1" + }, + "suggest": { + "phpstan/phpdoc-parser": "For PHP documentation support.", + "symfony/config": "For XML resource configuration.", + "symfony/yaml": "For YAML resource configuration." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.0.x-dev", + "dev-3.4": "3.4.x-dev" + }, + "symfony": { + "require": "^6.4 || ^7.1" + } + }, + "autoload": { + "psr-4": { + "ApiPlatform\\Metadata\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Kévin Dunglas", + "email": "kevin@dunglas.fr", + "homepage": "https://dunglas.fr" + }, + { + "name": "API Platform Community", + "homepage": "https://api-platform.com/community/contributors" + } + ], + "description": "API Resource-oriented metadata attributes and factories", + "homepage": "https://api-platform.com", + "keywords": [ + "Hydra", + "JSON-LD", + "api", + "graphql", + "hal", + "jsonapi", + "openapi", + "rest", + "swagger" + ], + "support": { + "source": "https://github.com/api-platform/metadata/tree/v4.0.0-alpha.6" }, - "conflict": { - "doctrine/common": "<3.2.2", - "doctrine/dbal": "<2.10", - "doctrine/mongodb-odm": "<2.4", - "doctrine/orm": "<2.14.0", - "doctrine/persistence": "<1.3", - "elasticsearch/elasticsearch": ">=8.0,<8.4", - "phpspec/prophecy": "<1.15", - "phpunit/phpunit": "<9.5", - "symfony/framework-bundle": "6.4.6 || 7.0.6", - "symfony/var-exporter": "<6.1.1" + "time": "2024-09-13T08:37:14+00:00" + }, + { + "name": "api-platform/openapi", + "version": "v4.0.0-alpha.6", + "source": { + "type": "git", + "url": "https://github.com/api-platform/openapi.git", + "reference": "fbaee5bbe8f983db5c30cbb2a9a6daf886c7cdb7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/api-platform/openapi/zipball/fbaee5bbe8f983db5c30cbb2a9a6daf886c7cdb7", + "reference": "fbaee5bbe8f983db5c30cbb2a9a6daf886c7cdb7", + "shasum": "" + }, + "require": { + "api-platform/json-schema": "^3.4 || ^4.0", + "api-platform/metadata": "^3.4 || ^4.0", + "api-platform/state": "^3.4 || ^4.0", + "php": ">=8.1", + "symfony/console": "^6.4 || ^7.0", + "symfony/property-access": "^6.4 || ^7.1", + "symfony/serializer": "^6.4 || ^7.1" }, "require-dev": { - "behat/behat": "^3.11", - "behat/mink": "^1.9", - "doctrine/cache": "^1.11 || ^2.1", - "doctrine/common": "^3.2.2", - "doctrine/dbal": "^3.4.0", - "doctrine/doctrine-bundle": "^1.12 || ^2.0", - "doctrine/mongodb-odm": "^2.2", - "doctrine/mongodb-odm-bundle": "^4.0 || ^5.0", - "doctrine/orm": "^2.14 || ^3.0", - "elasticsearch/elasticsearch": "^7.11 || ^8.4", - "friends-of-behat/mink-browserkit-driver": "^1.3.1", - "friends-of-behat/mink-extension": "^2.2", - "friends-of-behat/symfony-extension": "^2.1", - "guzzlehttp/guzzle": "^6.0 || ^7.0", - "jangregor/phpstan-prophecy": "^1.0", - "justinrainbow/json-schema": "^5.2.1", + "api-platform/doctrine-common": "^3.4 || ^4.0", + "api-platform/doctrine-odm": "^3.4 || ^4.0", + "api-platform/doctrine-orm": "^3.4 || ^4.0", "phpspec/prophecy-phpunit": "^2.0", - "phpstan/extension-installer": "^1.1", - "phpstan/phpdoc-parser": "^1.13", - "phpstan/phpstan": "^1.10", - "phpstan/phpstan-doctrine": "^1.0", - "phpstan/phpstan-phpunit": "^1.0", - "phpstan/phpstan-symfony": "^1.0", - "phpunit/phpunit": "^9.6", - "psr/log": "^1.0 || ^2.0 || ^3.0", - "ramsey/uuid": "^3.9.7 || ^4.0", - "ramsey/uuid-doctrine": "^1.4 || ^2.0", - "sebastian/comparator": "<5.0", - "soyuka/contexts": "v3.3.9", - "soyuka/pmu": "^0.0.2", - "soyuka/stubs-mongodb": "^1.0", - "symfony/asset": "^6.4 || ^7.0", - "symfony/browser-kit": "^6.4 || ^7.0", - "symfony/cache": "^6.4 || ^7.0", - "symfony/config": "^6.4 || ^7.0", - "symfony/console": "^6.4 || ^7.0", - "symfony/css-selector": "^6.4 || ^7.0", - "symfony/dependency-injection": "^6.4 || ^7.0.12", - "symfony/doctrine-bridge": "^6.4 || ^7.0", - "symfony/dom-crawler": "^6.4 || ^7.0", - "symfony/error-handler": "^6.4 || ^7.0", - "symfony/event-dispatcher": "^6.4 || ^7.0", - "symfony/expression-language": "^6.4 || ^7.0", - "symfony/finder": "^6.4 || ^7.0", - "symfony/form": "^6.4 || ^7.0", - "symfony/framework-bundle": "^6.4 || ^7.0", - "symfony/http-client": "^6.4 || ^7.0", - "symfony/intl": "^6.4 || ^7.0", - "symfony/maker-bundle": "^1.24", + "phpunit/phpunit": "^11.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.0.x-dev", + "dev-3.4": "3.4.x-dev" + }, + "symfony": { + "require": "^6.4 || ^7.1" + } + }, + "autoload": { + "psr-4": { + "ApiPlatform\\OpenApi\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Kévin Dunglas", + "email": "kevin@dunglas.fr", + "homepage": "https://dunglas.fr" + }, + { + "name": "API Platform Community", + "homepage": "https://api-platform.com/community/contributors" + } + ], + "description": "Models to build and serialize an OpenAPI specification.", + "homepage": "https://api-platform.com", + "keywords": [ + "Hydra", + "JSON-LD", + "api", + "graphql", + "hal", + "jsonapi", + "openapi", + "rest", + "swagger" + ], + "support": { + "source": "https://github.com/api-platform/openapi/tree/v4.0.0-alpha.6" + }, + "time": "2024-09-11T15:14:16+00:00" + }, + { + "name": "api-platform/serializer", + "version": "v4.0.0-alpha.6", + "source": { + "type": "git", + "url": "https://github.com/api-platform/serializer.git", + "reference": "cca3d86db25d410dcad4f77cc0db4bbe97c39406" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/api-platform/serializer/zipball/cca3d86db25d410dcad4f77cc0db4bbe97c39406", + "reference": "cca3d86db25d410dcad4f77cc0db4bbe97c39406", + "shasum": "" + }, + "require": { + "api-platform/metadata": "^3.4 || ^4.0", + "api-platform/state": "^3.4 || ^4.0", + "doctrine/collections": "^2.1", + "php": ">=8.1", + "symfony/property-access": "^6.4 || ^7.1", + "symfony/property-info": "^6.4 || ^7.1", + "symfony/serializer": "^6.4 || ^7.1", + "symfony/validator": "^6.4 || ^7.0" + }, + "require-dev": { + "api-platform/doctrine-common": "^3.2 || ^4.0", + "api-platform/doctrine-odm": "^3.2 || ^4.0", + "api-platform/doctrine-orm": "^3.2 || ^4.0", + "api-platform/json-schema": "^3.2 || ^4.0", + "api-platform/openapi": "^3.2 || ^4.0", + "phpspec/prophecy-phpunit": "^2.2", + "phpunit/phpunit": "^11.2", "symfony/mercure-bundle": "*", - "symfony/messenger": "^6.4 || ^7.0", - "symfony/phpunit-bridge": "^6.4.1 || ^7.0", - "symfony/routing": "^6.4 || ^7.0", - "symfony/security-bundle": "^6.4 || ^7.0", + "symfony/var-dumper": "^6.4 || ^7.0", + "symfony/yaml": "^6.4 || ^7.1" + }, + "suggest": { + "api-platform/doctrine-orm": "To support doctrine ORM state options." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.0.x-dev", + "dev-3.4": "3.4.x-dev" + }, + "symfony": { + "require": "^6.4 || ^7.1" + } + }, + "autoload": { + "psr-4": { + "ApiPlatform\\Serializer\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Kévin Dunglas", + "email": "kevin@dunglas.fr", + "homepage": "https://dunglas.fr" + }, + { + "name": "API Platform Community", + "homepage": "https://api-platform.com/community/contributors" + } + ], + "description": "API Platform core Serializer", + "homepage": "https://api-platform.com", + "keywords": [ + "api", + "serializer" + ], + "support": { + "issues": "https://github.com/api-platform/serializer/issues", + "source": "https://github.com/api-platform/serializer/tree/v4.0.0-alpha.6" + }, + "time": "2024-09-11T15:14:16+00:00" + }, + { + "name": "api-platform/state", + "version": "v4.0.0-alpha.5", + "source": { + "type": "git", + "url": "https://github.com/api-platform/state.git", + "reference": "e7c2d7c0db28eeab69832aab579b8cd390697ca4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/api-platform/state/zipball/e7c2d7c0db28eeab69832aab579b8cd390697ca4", + "reference": "e7c2d7c0db28eeab69832aab579b8cd390697ca4", + "shasum": "" + }, + "require": { + "api-platform/metadata": "^3.4 || ^4.0", + "php": ">=8.1", + "psr/container": "^1.0 || ^2.0" + }, + "require-dev": { + "api-platform/serializer": "^3.4 || ^4.0", + "api-platform/validator": "^3.4 || ^4.0", + "phpunit/phpunit": "^11.2", + "symfony/http-foundation": "^6.4 || 7.0", + "symfony/web-link": "^6.4 || ^7.0", + "willdurand/negotiation": "^3.1" + }, + "suggest": { + "api-platform/serializer": "To use API Platform serializer.", + "api-platform/validator": "To use API Platform validation.", + "symfony/http-foundation": "To use our HTTP providers and processor.", + "symfony/web-link": "To support adding web links to the response headers.", + "willdurand/negotiation": "To use the API Platform content negoatiation provider." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.0.x-dev", + "dev-3.4": "3.4.x-dev" + }, + "symfony": { + "require": "^6.4 || ^7.1" + } + }, + "autoload": { + "psr-4": { + "ApiPlatform\\State\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Kévin Dunglas", + "email": "kevin@dunglas.fr", + "homepage": "https://dunglas.fr" + }, + { + "name": "API Platform Community", + "homepage": "https://api-platform.com/community/contributors" + } + ], + "description": "API Platform State component ", + "homepage": "https://api-platform.com", + "keywords": [ + "Hydra", + "JSON-LD", + "api", + "graphql", + "hal", + "jsonapi", + "openapi", + "rest", + "swagger" + ], + "support": { + "source": "https://github.com/api-platform/state/tree/v4.0.0-alpha.5" + }, + "time": "2024-09-06T14:47:50+00:00" + }, + { + "name": "api-platform/symfony", + "version": "v4.0.0-alpha.6", + "source": { + "type": "git", + "url": "https://github.com/api-platform/symfony.git", + "reference": "53b4ad22e730e1e7e4f439f2ac70bdbfb26a006c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/api-platform/symfony/zipball/53b4ad22e730e1e7e4f439f2ac70bdbfb26a006c", + "reference": "53b4ad22e730e1e7e4f439f2ac70bdbfb26a006c", + "shasum": "" + }, + "require": { + "api-platform/documentation": "^3.4 || ^4.0", + "api-platform/http-cache": "^3.4 || ^4.0", + "api-platform/hydra": "^3.4 || ^4.0", + "api-platform/json-schema": "^3.4 || ^4.0", + "api-platform/jsonld": "^3.4 || ^4.0", + "api-platform/metadata": "^3.4 || ^4.0", + "api-platform/openapi": "^3.4 || ^4.0", + "api-platform/serializer": "^3.4 || ^4.0", + "api-platform/state": "^3.4 || ^4.0", + "api-platform/validator": "^3.4 || ^4.0", + "php": ">=8.1", + "symfony/property-access": "^6.4 || ^7.1", + "symfony/property-info": "^6.4 || ^7.1", "symfony/security-core": "^6.4 || ^7.0", - "symfony/stopwatch": "^6.4 || ^7.0", - "symfony/twig-bundle": "^6.4 || ^7.0", - "symfony/uid": "^6.4 || ^7.0", - "symfony/validator": "^6.4 || ^7.0", - "symfony/web-profiler-bundle": "^6.4 || ^7.0", - "symfony/yaml": "^6.4 || ^7.0", - "twig/twig": "^1.42.3 || ^2.12 || ^3.0", + "symfony/serializer": "^6.4 || ^7.1", + "willdurand/negotiation": "^3.0" + }, + "require-dev": { + "api-platform/doctrine-common": "^3.4 || ^4.0", + "api-platform/doctrine-odm": "^3.4 || ^4.0", + "api-platform/doctrine-orm": "^3.4 || ^4.0", + "api-platform/elasticsearch": "^3.4 || ^4.0", + "api-platform/graphql": "^3.4 || ^4.0", + "api-platform/parameter-validator": "^3.1", + "phpspec/prophecy-phpunit": "^2.2", + "phpunit/phpunit": "^11.2", + "symfony/expression-language": "^6.4 || ^7.1", + "symfony/mercure-bundle": "*", + "symfony/routing": "^6.4 || ^7.1", + "symfony/validator": "^6.4 || ^7.1", "webonyx/graphql-php": "^14.0 || ^15.0" }, "suggest": { - "doctrine/mongodb-odm-bundle": "To support MongoDB. Only versions 4.0 and later are supported.", - "elasticsearch/elasticsearch": "To support Elasticsearch.", + "api-platform/doctrine-odm": "To support MongoDB. Only versions 4.0 and later are supported.", + "api-platform/doctrine-orm": "To support Doctrine ORM.", + "api-platform/elasticsearch": "To support Elasticsearch.", + "api-platform/graphql": "To support GraphQL.", "ocramius/package-versions": "To display the API Platform's version in the debug bar.", "phpstan/phpdoc-parser": "To support extracting metadata from PHPDoc.", "psr/cache-implementation": "To use metadata caching.", "ramsey/uuid": "To support Ramsey's UUID identifiers.", "symfony/cache": "To have metadata caching when using Symfony integration.", "symfony/config": "To load XML configuration files.", - "symfony/expression-language": "To use authorization features.", + "symfony/expression-language": "To use authorization and mercure advanced features.", "symfony/http-client": "To use the HTTP cache invalidation system.", - "symfony/messenger": "To support messenger integration.", + "symfony/mercure-bundle": "To support mercure integration.", + "symfony/messenger": "To support messenger integration and asynchronous Mercure updates.", "symfony/security": "To use authorization features.", "symfony/twig-bundle": "To use the Swagger UI integration.", "symfony/uid": "To support Symfony UUID/ULID identifiers.", - "symfony/web-profiler-bundle": "To use the data collector.", - "webonyx/graphql-php": "To support GraphQL." + "symfony/web-profiler-bundle": "To use the data collector." }, "type": "library", "extra": { "branch-alias": { - "dev-main": "3.3.x-dev" + "dev-main": "4.0.x-dev", + "dev-3.4": "3.4.x-dev" }, "symfony": { - "require": "^6.4 || ^7.0" - }, - "projects": [ - "api-platform/doctrine-common", - "api-platform/doctrine-orm", - "api-platform/doctrine-odm", - "api-platform/metadata", - "api-platform/json-schema", - "api-platform/elasticsearch", - "api-platform/jsonld", - "api-platform/hydra", - "api-platform/openapi", - "api-platform/graphql", - "api-platform/http-cache", - "api-platform/documentation", - "api-platform/parameter-validator", - "api-platform/ramsey-uuid", - "api-platform/serializer", - "api-platform/state", - "api-platform/symfony", - "api-platform/validator" - ] + "require": "^6.4 || ^7.1" + } }, "autoload": { "psr-4": { - "ApiPlatform\\": "src/" - } + "ApiPlatform\\Symfony\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -173,9 +1046,13 @@ "name": "Kévin Dunglas", "email": "kevin@dunglas.fr", "homepage": "https://dunglas.fr" + }, + { + "name": "API Platform Community", + "homepage": "https://api-platform.com/community/contributors" } ], - "description": "Build a fully-featured hypermedia or GraphQL API in minutes!", + "description": "Symfony API Platform integration", "homepage": "https://api-platform.com", "keywords": [ "Hydra", @@ -186,13 +1063,82 @@ "jsonapi", "openapi", "rest", - "swagger" + "swagger", + "symfony" + ], + "support": { + "issues": "https://github.com/api-platform/symfony/issues", + "source": "https://github.com/api-platform/symfony/tree/v4.0.0-alpha.6" + }, + "time": "2024-09-13T08:37:14+00:00" + }, + { + "name": "api-platform/validator", + "version": "v4.0.0-alpha.6", + "source": { + "type": "git", + "url": "https://github.com/api-platform/validator.git", + "reference": "7936503db0c9fd3411b8cf9fba234b22999656fd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/api-platform/validator/zipball/7936503db0c9fd3411b8cf9fba234b22999656fd", + "reference": "7936503db0c9fd3411b8cf9fba234b22999656fd", + "shasum": "" + }, + "require": { + "api-platform/metadata": "^3.4 || ^4.0", + "php": ">=8.1", + "symfony/web-link": "^6.4 || ^7.1" + }, + "require-dev": { + "phpspec/prophecy-phpunit": "^2.2", + "phpunit/phpunit": "^11.2", + "symfony/http-kernel": "^6.4 || ^7.0", + "symfony/serializer": "^6.4 || ^7.0", + "symfony/validator": "^6.4 || ^7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.0.x-dev", + "dev-3.4": "3.4.x-dev" + }, + "symfony": { + "require": "^6.4 || ^7.1" + } + }, + "autoload": { + "psr-4": { + "ApiPlatform\\Validator\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Kévin Dunglas", + "email": "kevin@dunglas.fr", + "homepage": "https://dunglas.fr" + }, + { + "name": "API Platform Community", + "homepage": "https://api-platform.com/community/contributors" + } + ], + "description": "API Platform validator component", + "homepage": "https://api-platform.com", + "keywords": [ + "api", + "validator" ], "support": { - "issues": "https://github.com/api-platform/core/issues", - "source": "https://github.com/api-platform/core/tree/v3.3.13" + "issues": "https://github.com/api-platform/validator/issues", + "source": "https://github.com/api-platform/validator/tree/v4.0.0-alpha.6" }, - "time": "2024-09-15T08:23:39+00:00" + "time": "2024-09-06T06:35:15+00:00" }, { "name": "brick/math", @@ -10254,7 +11200,7 @@ } ], "aliases": [], - "minimum-stability": "stable", + "minimum-stability": "alpha", "stability-flags": [], "prefer-stable": false, "prefer-lowest": false, diff --git a/api/config/packages/api_platform.yaml b/api/config/packages/api_platform.yaml index 6abdaaf4a..a478bb93e 100644 --- a/api/config/packages/api_platform.yaml +++ b/api/config/packages/api_platform.yaml @@ -1,6 +1,6 @@ api_platform: title: API Platform's demo - version: 3.3.13 + version: 4.0.0 description: | This is a demo application of the [API Platform](https://api-platform.com) framework. [Its source code](https://github.com/api-platform/demo) includes various examples, check it out! diff --git a/api/src/ApiResource/.gitignore b/api/src/ApiResource/.gitignore new file mode 100644 index 000000000..e69de29bb diff --git a/api/symfony.lock b/api/symfony.lock index f4f14ab8a..4e2f6bc92 100644 --- a/api/symfony.lock +++ b/api/symfony.lock @@ -1,18 +1,4 @@ { - "api-platform/core": { - "version": "3.2", - "recipe": { - "repo": "github.com/symfony/recipes", - "branch": "main", - "version": "3.2", - "ref": "696d44adc3c0d4f5d25a2f1c4f3700dd8a5c6db9" - }, - "files": [ - "config/packages/api_platform.yaml", - "config/routes/api_platform.yaml", - "src/ApiResource/.gitignore" - ] - }, "api-platform/schema-generator": { "version": "v4.0.0" }, @@ -531,9 +517,6 @@ "ref": "e9872ca728053c5a09ef09ec4712d430f30895d6" } }, - "willdurand/negotiation": { - "version": "3.0.0" - }, "zendframework/zend-code": { "version": "3.4.1" }, diff --git a/helm/api-platform/Chart.yaml b/helm/api-platform/Chart.yaml index df76d1586..d8929a456 100644 --- a/helm/api-platform/Chart.yaml +++ b/helm/api-platform/Chart.yaml @@ -17,12 +17,12 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 3.3.13 +version: 4.0.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. -appVersion: 3.3.13 +appVersion: 4.0.0 dependencies: - name: postgresql