This commit is contained in:
parent
661166f7a3
commit
89b269bcdf
|
@ -24,9 +24,11 @@
|
|||
<component name="ChangeListManager">
|
||||
<list default="true" id="7b6ae3ea-b7de-4daa-94af-b6fb4f3c8b8e" name="Default Changelist" comment="">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/Controller/AccountController.php" beforeDir="false" afterPath="$PROJECT_DIR$/src/Controller/AccountController.php" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/templates/account/index.html.twig" beforeDir="false" afterPath="$PROJECT_DIR$/templates/account/index.html.twig" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/templates/account/nav.html.twig" beforeDir="false" afterPath="$PROJECT_DIR$/templates/account/nav.html.twig" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/composer.json" beforeDir="false" afterPath="$PROJECT_DIR$/composer.json" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/composer.lock" beforeDir="false" afterPath="$PROJECT_DIR$/composer.lock" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/config/bundles.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/bundles.php" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/src/Entity/Product.php" beforeDir="false" afterPath="$PROJECT_DIR$/src/Entity/Product.php" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/symfony.lock" beforeDir="false" afterPath="$PROJECT_DIR$/symfony.lock" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
|
@ -248,19 +250,19 @@
|
|||
<option name="openDirectoriesWithSingleClick" value="true" />
|
||||
<option name="showLibraryContents" value="true" />
|
||||
</component>
|
||||
<component name="PropertiesComponent"><![CDATA[{
|
||||
"keyToString": {
|
||||
"dart.analysis.tool.window.visible": "false",
|
||||
"git-widget-placeholder": "master",
|
||||
"last_opened_file_path": "/home/poule/encrypted/stockage-syncable/www/development/html/caisse/templates/account",
|
||||
"node.js.detected.package.eslint": "true",
|
||||
"node.js.detected.package.tslint": "true",
|
||||
"node.js.selected.package.eslint": "(autodetect)",
|
||||
"node.js.selected.package.tslint": "(autodetect)",
|
||||
"nodejs_package_manager_path": "yarn",
|
||||
"vue.rearranger.settings.migration": "true"
|
||||
<component name="PropertiesComponent">{
|
||||
"keyToString": {
|
||||
"dart.analysis.tool.window.visible": "false",
|
||||
"git-widget-placeholder": "main",
|
||||
"last_opened_file_path": "/home/poule/encrypted/stockage-syncable/www/development/html/caisse/templates/account",
|
||||
"node.js.detected.package.eslint": "true",
|
||||
"node.js.detected.package.tslint": "true",
|
||||
"node.js.selected.package.eslint": "(autodetect)",
|
||||
"node.js.selected.package.tslint": "(autodetect)",
|
||||
"nodejs_package_manager_path": "yarn",
|
||||
"vue.rearranger.settings.migration": "true"
|
||||
}
|
||||
}]]></component>
|
||||
}</component>
|
||||
<component name="RecentsManager">
|
||||
<key name="CopyFile.RECENT_KEYS">
|
||||
<recent name="$PROJECT_DIR$/templates/account" />
|
||||
|
@ -311,7 +313,7 @@
|
|||
<workItem from="1687943901322" duration="8313000" />
|
||||
<workItem from="1721124162582" duration="4590000" />
|
||||
<workItem from="1721135270174" duration="484000" />
|
||||
<workItem from="1721135995908" duration="6625000" />
|
||||
<workItem from="1721135995908" duration="8940000" />
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
|
|
|
@ -8,11 +8,13 @@
|
|||
"ext-ctype": "*",
|
||||
"ext-iconv": "*",
|
||||
"amphp/http-client": "^4.2.1",
|
||||
"api-platform/core": "^3.2",
|
||||
"doctrine/dbal": "^3",
|
||||
"doctrine/doctrine-bundle": "^2.12",
|
||||
"doctrine/doctrine-migrations-bundle": "^3.3",
|
||||
"doctrine/orm": "^3.1",
|
||||
"easycorp/easyadmin-bundle": "^4.10",
|
||||
"nelmio/cors-bundle": "^2.5",
|
||||
"phpdocumentor/reflection-docblock": "^5.4",
|
||||
"phpstan/phpdoc-parser": "^1.28",
|
||||
"symfony/asset": "6.1.*",
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "fbec70f426422bb2239be4fa6216fb5a",
|
||||
"content-hash": "5322e940053aa7a65e92d5c7d4c3eeff",
|
||||
"packages": [
|
||||
{
|
||||
"name": "amphp/amp",
|
||||
|
@ -940,6 +940,173 @@
|
|||
],
|
||||
"time": "2020-07-10T16:13:29+00:00"
|
||||
},
|
||||
{
|
||||
"name": "api-platform/core",
|
||||
"version": "v3.2.25",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/api-platform/core.git",
|
||||
"reference": "f8cfa81fe7cd12e9762f7c1c81a2a8ce303e2312"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/api-platform/core/zipball/f8cfa81fe7cd12e9762f7c1c81a2a8ce303e2312",
|
||||
"reference": "f8cfa81fe7cd12e9762f7c1c81a2a8ce303e2312",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"doctrine/inflector": "^1.0 || ^2.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.1 || ^7.0",
|
||||
"symfony/http-kernel": "^6.1 || ^7.0",
|
||||
"symfony/property-access": "^6.1 || ^7.0",
|
||||
"symfony/property-info": "^6.1 || ^7.0",
|
||||
"symfony/serializer": "^6.1 || ^7.0",
|
||||
"symfony/translation-contracts": "^3.3",
|
||||
"symfony/web-link": "^6.1 || ^7.0",
|
||||
"willdurand/negotiation": "^3.0"
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"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",
|
||||
"phpspec/prophecy-phpunit": "^2.0",
|
||||
"phpstan/extension-installer": "^1.1",
|
||||
"phpstan/phpdoc-parser": "^1.13",
|
||||
"phpstan/phpstan": "^1.1",
|
||||
"phpstan/phpstan-doctrine": "^1.0",
|
||||
"phpstan/phpstan-phpunit": "^1.0",
|
||||
"phpstan/phpstan-symfony": "^1.0",
|
||||
"phpunit/phpunit": "^9.5",
|
||||
"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/stubs-mongodb": "^1.0",
|
||||
"symfony/asset": "^6.1 || ^7.0",
|
||||
"symfony/browser-kit": "^6.1 || ^7.0",
|
||||
"symfony/cache": "^6.1 || ^7.0",
|
||||
"symfony/config": "^6.1 || ^7.0",
|
||||
"symfony/console": "^6.1 || ^7.0",
|
||||
"symfony/css-selector": "^6.1 || ^7.0",
|
||||
"symfony/dependency-injection": "^6.1 || ^7.0.12",
|
||||
"symfony/doctrine-bridge": "^6.1 || ^7.0",
|
||||
"symfony/dom-crawler": "^6.1 || ^7.0",
|
||||
"symfony/error-handler": "^6.1 || ^7.0",
|
||||
"symfony/event-dispatcher": "^6.1 || ^7.0",
|
||||
"symfony/expression-language": "^6.1 || ^7.0",
|
||||
"symfony/finder": "^6.1 || ^7.0",
|
||||
"symfony/form": "^6.1 || ^7.0",
|
||||
"symfony/framework-bundle": "^6.1 || ^7.0",
|
||||
"symfony/http-client": "^6.1 || ^7.0",
|
||||
"symfony/intl": "^6.1 || ^7.0",
|
||||
"symfony/maker-bundle": "^1.24",
|
||||
"symfony/mercure-bundle": "*",
|
||||
"symfony/messenger": "^6.1 || ^7.0",
|
||||
"symfony/phpunit-bridge": "^6.1 || ^7.0",
|
||||
"symfony/routing": "^6.1 || ^7.0",
|
||||
"symfony/security-bundle": "^6.1 || ^7.0",
|
||||
"symfony/security-core": "^6.1 || ^7.0",
|
||||
"symfony/stopwatch": "^6.1 || ^7.0",
|
||||
"symfony/twig-bundle": "^6.1 || ^7.0",
|
||||
"symfony/uid": "^6.1 || ^7.0",
|
||||
"symfony/validator": "^6.1 || ^7.0",
|
||||
"symfony/web-profiler-bundle": "^6.1 || ^7.0",
|
||||
"symfony/yaml": "^6.1 || ^7.0",
|
||||
"twig/twig": "^1.42.3 || ^2.12 || ^3.0",
|
||||
"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.",
|
||||
"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/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": "3.3.x-dev"
|
||||
},
|
||||
"symfony": {
|
||||
"require": "^6.1 || ^7.0"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"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/v3.2.25"
|
||||
},
|
||||
"time": "2024-06-28T09:31:07+00:00"
|
||||
},
|
||||
{
|
||||
"name": "daverandom/libdns",
|
||||
"version": "v2.1.0",
|
||||
|
@ -2768,6 +2935,68 @@
|
|||
],
|
||||
"time": "2024-04-12T21:02:21+00:00"
|
||||
},
|
||||
{
|
||||
"name": "nelmio/cors-bundle",
|
||||
"version": "2.5.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/nelmio/NelmioCorsBundle.git",
|
||||
"reference": "3a526fe025cd20e04a6a11370cf5ab28dbb5a544"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/nelmio/NelmioCorsBundle/zipball/3a526fe025cd20e04a6a11370cf5ab28dbb5a544",
|
||||
"reference": "3a526fe025cd20e04a6a11370cf5ab28dbb5a544",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"psr/log": "^1.0 || ^2.0 || ^3.0",
|
||||
"symfony/framework-bundle": "^5.4 || ^6.0 || ^7.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"mockery/mockery": "^1.3.6",
|
||||
"symfony/phpunit-bridge": "^5.4 || ^6.0 || ^7.0"
|
||||
},
|
||||
"type": "symfony-bundle",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "2.x-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Nelmio\\CorsBundle\\": ""
|
||||
},
|
||||
"exclude-from-classmap": [
|
||||
"/Tests/"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Nelmio",
|
||||
"homepage": "http://nelm.io"
|
||||
},
|
||||
{
|
||||
"name": "Symfony Community",
|
||||
"homepage": "https://github.com/nelmio/NelmioCorsBundle/contributors"
|
||||
}
|
||||
],
|
||||
"description": "Adds CORS (Cross-Origin Resource Sharing) headers support in your Symfony application",
|
||||
"keywords": [
|
||||
"api",
|
||||
"cors",
|
||||
"crossdomain"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/nelmio/NelmioCorsBundle/issues",
|
||||
"source": "https://github.com/nelmio/NelmioCorsBundle/tree/2.5.0"
|
||||
},
|
||||
"time": "2024-06-24T21:25:28+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phpdocumentor/reflection-common",
|
||||
"version": "2.2.0",
|
||||
|
@ -8938,6 +9167,62 @@
|
|||
"source": "https://github.com/webmozarts/assert/tree/1.11.0"
|
||||
},
|
||||
"time": "2022-06-03T18:03:27+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": [
|
||||
|
|
|
@ -16,4 +16,6 @@ return [
|
|||
Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle::class => ['dev' => true, 'test' => true],
|
||||
EasyCorp\Bundle\EasyAdminBundle\EasyAdminBundle::class => ['all' => true],
|
||||
SymfonyCasts\Bundle\ResetPassword\SymfonyCastsResetPasswordBundle::class => ['all' => true],
|
||||
Nelmio\CorsBundle\NelmioCorsBundle::class => ['all' => true],
|
||||
ApiPlatform\Symfony\Bundle\ApiPlatformBundle::class => ['all' => true],
|
||||
];
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
api_platform:
|
||||
title: Hello API Platform
|
||||
version: 1.0.0
|
||||
formats:
|
||||
jsonld: ['application/ld+json']
|
||||
docs_formats:
|
||||
jsonld: ['application/ld+json']
|
||||
jsonopenapi: ['application/vnd.openapi+json']
|
||||
html: ['text/html']
|
||||
defaults:
|
||||
stateless: true
|
||||
cache_headers:
|
||||
vary: ['Content-Type', 'Authorization', 'Origin']
|
||||
extra_properties:
|
||||
standard_put: true
|
||||
rfc_7807_compliant_errors: true
|
||||
event_listeners_backward_compatibility_layer: false
|
||||
keep_legacy_inflector: false
|
|
@ -0,0 +1,10 @@
|
|||
nelmio_cors:
|
||||
defaults:
|
||||
origin_regex: true
|
||||
allow_origin: ['%env(CORS_ALLOW_ORIGIN)%']
|
||||
allow_methods: ['GET', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'DELETE']
|
||||
allow_headers: ['Content-Type', 'Authorization']
|
||||
expose_headers: ['Link']
|
||||
max_age: 3600
|
||||
paths:
|
||||
'^/': null
|
|
@ -0,0 +1,4 @@
|
|||
api_platform:
|
||||
resource: .
|
||||
type: api_platform
|
||||
prefix: /api
|
|
@ -2,10 +2,13 @@
|
|||
|
||||
namespace App\Entity;
|
||||
|
||||
|
||||
use ApiPlatform\Core\Annotation\ApiResource;
|
||||
use App\Repository\ProductRepository;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
#[ORM\Entity(repositoryClass: ProductRepository::class)]
|
||||
#[ApiResource]
|
||||
class Product
|
||||
{
|
||||
#[ORM\Id]
|
||||
|
|
26
symfony.lock
26
symfony.lock
|
@ -1,4 +1,18 @@
|
|||
{
|
||||
"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"
|
||||
]
|
||||
},
|
||||
"doctrine/doctrine-bundle": {
|
||||
"version": "2.12",
|
||||
"recipe": {
|
||||
|
@ -47,6 +61,18 @@
|
|||
"ref": "b131e6cbfe1b898a508987851963fff485986285"
|
||||
}
|
||||
},
|
||||
"nelmio/cors-bundle": {
|
||||
"version": "2.5",
|
||||
"recipe": {
|
||||
"repo": "github.com/symfony/recipes",
|
||||
"branch": "main",
|
||||
"version": "1.5",
|
||||
"ref": "6bea22e6c564fba3a1391615cada1437d0bde39c"
|
||||
},
|
||||
"files": [
|
||||
"config/packages/nelmio_cors.yaml"
|
||||
]
|
||||
},
|
||||
"phpstan/phpstan": {
|
||||
"version": "1.11",
|
||||
"recipe": {
|
||||
|
|
Loading…
Reference in New Issue