composer require api-platform/core
This commit is contained in:
parent
02f8620e24
commit
8f9316cd64
@ -7,6 +7,7 @@
|
||||
"php": ">=7.2.5",
|
||||
"ext-ctype": "*",
|
||||
"ext-iconv": "*",
|
||||
"api-platform/core": "^2.7",
|
||||
"doctrine/annotations": "^1.13",
|
||||
"doctrine/doctrine-bundle": "^2.7",
|
||||
"doctrine/doctrine-migrations-bundle": "^3.2",
|
||||
|
330
app/composer.lock
generated
330
app/composer.lock
generated
@ -4,8 +4,177 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "03cff0d8812e3e106effbb2da3b9eafd",
|
||||
"content-hash": "e5f2b9406774ae9743b4fd66d459374f",
|
||||
"packages": [
|
||||
{
|
||||
"name": "api-platform/core",
|
||||
"version": "v2.7.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/api-platform/core.git",
|
||||
"reference": "fbc076044413e80ef8360376ed4dc8b3c320375a"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/api-platform/core/zipball/fbc076044413e80ef8360376ed4dc8b3c320375a",
|
||||
"reference": "fbc076044413e80ef8360376ed4dc8b3c320375a",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"doctrine/inflector": "^1.0 || ^2.0",
|
||||
"php": ">=7.1",
|
||||
"psr/cache": "^1.0 || ^2.0 || ^3.0",
|
||||
"psr/container": "^1.0 || ^2.0",
|
||||
"symfony/deprecation-contracts": "^2.1 || ^3.0",
|
||||
"symfony/http-foundation": "^4.4 || ^5.1 || ^6.0",
|
||||
"symfony/http-kernel": "^4.4 || ^5.1 || ^6.0",
|
||||
"symfony/property-access": "^3.4.19 || ^4.4 || ^5.1 || ^6.0",
|
||||
"symfony/property-info": "^3.4 || ^4.4 || ^5.2.1 || ^6.0",
|
||||
"symfony/serializer": "^4.4 || ^5.1 || ^6.0",
|
||||
"symfony/web-link": "^4.4 || ^5.1 || ^6.0",
|
||||
"willdurand/negotiation": "^2.0.3 || ^3.0"
|
||||
},
|
||||
"conflict": {
|
||||
"doctrine/common": "<2.7",
|
||||
"doctrine/dbal": "<2.10",
|
||||
"doctrine/mongodb-odm": "<2.2",
|
||||
"doctrine/persistence": "<1.3",
|
||||
"elasticsearch/elasticsearch": ">=8.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"behat/behat": "^3.1",
|
||||
"behat/mink": "^1.9@dev",
|
||||
"doctrine/annotations": "^1.7",
|
||||
"doctrine/cache": "^1.11 || ^2.1",
|
||||
"doctrine/common": "^2.11 || ^3.0",
|
||||
"doctrine/data-fixtures": "^1.2.2",
|
||||
"doctrine/dbal": "^2.6 || ^3.0",
|
||||
"doctrine/doctrine-bundle": "^1.12 || ^2.0",
|
||||
"doctrine/mongodb-odm": "^2.2",
|
||||
"doctrine/mongodb-odm-bundle": "^4.0",
|
||||
"doctrine/orm": "^2.6.4",
|
||||
"elasticsearch/elasticsearch": "^7.11.0",
|
||||
"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",
|
||||
"phpdocumentor/reflection-docblock": "^3.0 || ^4.0 || ^5.1",
|
||||
"phpdocumentor/type-resolver": "^0.3 || ^0.4 || ^1.4",
|
||||
"phpspec/prophecy": "^1.10",
|
||||
"phpstan/extension-installer": "^1.1",
|
||||
"phpstan/phpstan": "^1.1",
|
||||
"phpstan/phpstan-doctrine": "^1.0",
|
||||
"phpstan/phpstan-phpunit": "^1.0",
|
||||
"phpstan/phpstan-symfony": "^1.0",
|
||||
"psr/log": "^1.0 || ^2.0 || ^3.0",
|
||||
"ramsey/uuid": "^3.7 || ^4.0",
|
||||
"ramsey/uuid-doctrine": "^1.4",
|
||||
"soyuka/contexts": "dev-main",
|
||||
"soyuka/stubs-mongodb": "^1.0",
|
||||
"symfony/asset": "^3.4 || ^4.4 || ^5.1 || ^6.0",
|
||||
"symfony/browser-kit": "^4.4 || ^5.1 || ^6.0",
|
||||
"symfony/cache": "^3.4 || ^4.4 || ^5.1 || ^6.0",
|
||||
"symfony/config": "^3.4 || ^4.4 || ^5.1 || ^6.0",
|
||||
"symfony/console": "^3.4 || ^4.4 || ^5.1 || ^6.0",
|
||||
"symfony/css-selector": "^3.4 || ^4.4 || ^5.1 || ^6.0",
|
||||
"symfony/debug": "^3.4 || ^4.4 || ^5.1 || ^6.0",
|
||||
"symfony/dependency-injection": "^3.4 || ^4.4 || ^5.1 || ^6.0",
|
||||
"symfony/doctrine-bridge": "^3.4 || ^4.4 || ^5.1 || ^6.0",
|
||||
"symfony/dom-crawler": "^3.4 || ^4.4 || ^5.1 || ^6.0",
|
||||
"symfony/event-dispatcher": "^3.4 || ^4.4 || ^5.1 || ^6.0",
|
||||
"symfony/expression-language": "^3.4 || ^4.4 || ^5.1 || ^6.0",
|
||||
"symfony/finder": "^3.4 || ^4.4 || ^5.1 || ^6.0",
|
||||
"symfony/form": "^3.4 || ^4.4 || ^5.1 || ^6.0",
|
||||
"symfony/framework-bundle": "^4.4 || ^5.1 || ^6.0",
|
||||
"symfony/http-client": "^4.4 || ^5.1 || ^6.0",
|
||||
"symfony/intl": "^4.4 || ^5.3 || ^6.0",
|
||||
"symfony/maker-bundle": "^1.24",
|
||||
"symfony/mercure-bundle": "*",
|
||||
"symfony/messenger": "^4.4 || ^5.1 || ^6.0",
|
||||
"symfony/phpunit-bridge": "^5.4 || ^6.0",
|
||||
"symfony/routing": "^3.4 || ^4.4 || ^5.1 || ^6.0",
|
||||
"symfony/security-bundle": "^3.4 || ^4.4 || ^5.1 || ^6.0",
|
||||
"symfony/security-core": "^4.4 || ^5.1 || ^6.0",
|
||||
"symfony/twig-bundle": "^3.4 || ^4.4 || ^5.1 || ^6.0",
|
||||
"symfony/validator": "^3.4 || ^4.4 || ^5.1 || ^6.0",
|
||||
"symfony/web-profiler-bundle": "^4.4 || ^5.1 || ^6.0",
|
||||
"symfony/yaml": "^3.4 || ^4.4 || ^5.1 || ^6.0",
|
||||
"twig/twig": "^1.42.3 || ^2.12 || ^3.0",
|
||||
"webonyx/graphql-php": "^14.0"
|
||||
},
|
||||
"suggest": {
|
||||
"doctrine/mongodb-odm-bundle": "To support MongoDB. Only versions 4.0 and later are supported.",
|
||||
"elasticsearch/elasticsearch": "To support Elasticsearch.",
|
||||
"ocramius/package-versions": "To display the API Platform's version in the debug bar.",
|
||||
"phpdocumentor/reflection-docblock": "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/http-client": "To use the HTTP cache invalidation system.",
|
||||
"symfony/messenger": "To support messenger integration.",
|
||||
"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."
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-main": "2.7.x-dev"
|
||||
},
|
||||
"symfony": {
|
||||
"require": "^3.4 || ^4.4 || ^5.1 || ^6.0"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"files": [
|
||||
"src/deprecation.php"
|
||||
],
|
||||
"psr-4": {
|
||||
"ApiPlatform\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Kévin Dunglas",
|
||||
"email": "kevin@dunglas.fr",
|
||||
"homepage": "https://dunglas.fr"
|
||||
}
|
||||
],
|
||||
"description": "Build a fully-featured hypermedia or GraphQL API in minutes!",
|
||||
"homepage": "https://api-platform.com",
|
||||
"keywords": [
|
||||
"Hydra",
|
||||
"JSON-LD",
|
||||
"api",
|
||||
"graphql",
|
||||
"hal",
|
||||
"jsonapi",
|
||||
"openapi",
|
||||
"rest",
|
||||
"swagger"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/api-platform/core/issues",
|
||||
"source": "https://github.com/api-platform/core/tree/v2.7.1"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://tidelift.com/funding/github/packagist/api-platform/core",
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2022-09-29T13:55:21+00:00"
|
||||
},
|
||||
{
|
||||
"name": "doctrine/annotations",
|
||||
"version": "1.13.3",
|
||||
@ -5446,6 +5615,109 @@
|
||||
],
|
||||
"time": "2022-09-29T19:14:22+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/serializer",
|
||||
"version": "v5.4.13",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/serializer.git",
|
||||
"reference": "f8c32e94c8656c17a7360d88d6d486bc8ce23b2d"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/serializer/zipball/f8c32e94c8656c17a7360d88d6d486bc8ce23b2d",
|
||||
"reference": "f8c32e94c8656c17a7360d88d6d486bc8ce23b2d",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.2.5",
|
||||
"symfony/deprecation-contracts": "^2.1|^3",
|
||||
"symfony/polyfill-ctype": "~1.8",
|
||||
"symfony/polyfill-php80": "^1.16"
|
||||
},
|
||||
"conflict": {
|
||||
"doctrine/annotations": "<1.12",
|
||||
"phpdocumentor/reflection-docblock": "<3.2.2",
|
||||
"phpdocumentor/type-resolver": "<1.4.0",
|
||||
"symfony/dependency-injection": "<4.4",
|
||||
"symfony/property-access": "<5.4",
|
||||
"symfony/property-info": "<5.3.13",
|
||||
"symfony/uid": "<5.3",
|
||||
"symfony/yaml": "<4.4"
|
||||
},
|
||||
"require-dev": {
|
||||
"doctrine/annotations": "^1.12",
|
||||
"phpdocumentor/reflection-docblock": "^3.2|^4.0|^5.0",
|
||||
"symfony/cache": "^4.4|^5.0|^6.0",
|
||||
"symfony/config": "^4.4|^5.0|^6.0",
|
||||
"symfony/dependency-injection": "^4.4|^5.0|^6.0",
|
||||
"symfony/error-handler": "^4.4|^5.0|^6.0",
|
||||
"symfony/filesystem": "^4.4|^5.0|^6.0",
|
||||
"symfony/form": "^4.4|^5.0|^6.0",
|
||||
"symfony/http-foundation": "^4.4|^5.0|^6.0",
|
||||
"symfony/http-kernel": "^4.4|^5.0|^6.0",
|
||||
"symfony/mime": "^4.4|^5.0|^6.0",
|
||||
"symfony/property-access": "^5.4|^6.0",
|
||||
"symfony/property-info": "^5.3.13|^6.0",
|
||||
"symfony/uid": "^5.3|^6.0",
|
||||
"symfony/validator": "^4.4|^5.0|^6.0",
|
||||
"symfony/var-dumper": "^4.4|^5.0|^6.0",
|
||||
"symfony/var-exporter": "^4.4|^5.0|^6.0",
|
||||
"symfony/yaml": "^4.4|^5.0|^6.0"
|
||||
},
|
||||
"suggest": {
|
||||
"psr/cache-implementation": "For using the metadata cache.",
|
||||
"symfony/config": "For using the XML mapping loader.",
|
||||
"symfony/mime": "For using a MIME type guesser within the DataUriNormalizer.",
|
||||
"symfony/property-access": "For using the ObjectNormalizer.",
|
||||
"symfony/property-info": "To deserialize relations.",
|
||||
"symfony/var-exporter": "For using the metadata compiler.",
|
||||
"symfony/yaml": "For using the default YAML mapping loader."
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Symfony\\Component\\Serializer\\": ""
|
||||
},
|
||||
"exclude-from-classmap": [
|
||||
"/Tests/"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Fabien Potencier",
|
||||
"email": "fabien@symfony.com"
|
||||
},
|
||||
{
|
||||
"name": "Symfony Community",
|
||||
"homepage": "https://symfony.com/contributors"
|
||||
}
|
||||
],
|
||||
"description": "Handles serializing and deserializing data structures, including object graphs, into array structures or other formats like XML and JSON.",
|
||||
"homepage": "https://symfony.com",
|
||||
"support": {
|
||||
"source": "https://github.com/symfony/serializer/tree/v5.4.13"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://symfony.com/sponsor",
|
||||
"type": "custom"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/fabpot",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2022-09-29T09:26:59+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/service-contracts",
|
||||
"version": "v2.5.2",
|
||||
@ -6558,6 +6830,62 @@
|
||||
}
|
||||
],
|
||||
"time": "2022-09-28T08:42:51+00:00"
|
||||
},
|
||||
{
|
||||
"name": "willdurand/negotiation",
|
||||
"version": "3.1.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/willdurand/Negotiation.git",
|
||||
"reference": "68e9ea0553ef6e2ee8db5c1d98829f111e623ec2"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/willdurand/Negotiation/zipball/68e9ea0553ef6e2ee8db5c1d98829f111e623ec2",
|
||||
"reference": "68e9ea0553ef6e2ee8db5c1d98829f111e623ec2",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.1.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"symfony/phpunit-bridge": "^5.0"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "3.0-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Negotiation\\": "src/Negotiation"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "William Durand",
|
||||
"email": "will+git@drnd.me"
|
||||
}
|
||||
],
|
||||
"description": "Content Negotiation tools for PHP provided as a standalone library.",
|
||||
"homepage": "http://williamdurand.fr/Negotiation/",
|
||||
"keywords": [
|
||||
"accept",
|
||||
"content",
|
||||
"format",
|
||||
"header",
|
||||
"negotiation"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/willdurand/Negotiation/issues",
|
||||
"source": "https://github.com/willdurand/Negotiation/tree/3.1.0"
|
||||
},
|
||||
"time": "2022-01-30T20:08:53+00:00"
|
||||
}
|
||||
],
|
||||
"packages-dev": [
|
||||
|
@ -10,4 +10,5 @@ return [
|
||||
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true],
|
||||
Symfony\WebpackEncoreBundle\WebpackEncoreBundle::class => ['all' => true],
|
||||
Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle::class => ['all' => true],
|
||||
ApiPlatform\Core\Bridge\Symfony\Bundle\ApiPlatformBundle::class => ['all' => true],
|
||||
];
|
||||
|
7
app/config/packages/api_platform.yaml
Normal file
7
app/config/packages/api_platform.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
api_platform:
|
||||
mapping:
|
||||
paths: ['%kernel.project_dir%/src/Entity']
|
||||
patch_formats:
|
||||
json: ['application/merge-patch+json']
|
||||
swagger:
|
||||
versions: [3]
|
4
app/config/routes/api_platform.yaml
Normal file
4
app/config/routes/api_platform.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
api_platform:
|
||||
resource: .
|
||||
type: api_platform
|
||||
prefix: /api
|
@ -1,4 +1,18 @@
|
||||
{
|
||||
"api-platform/core": {
|
||||
"version": "2.7",
|
||||
"recipe": {
|
||||
"repo": "github.com/symfony/recipes",
|
||||
"branch": "main",
|
||||
"version": "2.5",
|
||||
"ref": "05b57782a78c21a664a42055dc11cf1954ca36bb"
|
||||
},
|
||||
"files": [
|
||||
"config/packages/api_platform.yaml",
|
||||
"config/routes/api_platform.yaml",
|
||||
"src/Entity/.gitignore"
|
||||
]
|
||||
},
|
||||
"doctrine/annotations": {
|
||||
"version": "1.13",
|
||||
"recipe": {
|
||||
|
Loading…
Reference in New Issue
Block a user