Compare commits

...

5 Commits

Author SHA1 Message Date
9acd5c4343 modif gitignore 2025-05-08 14:22:51 +02:00
e0960c3404 réparation du projet et ajout de l affichage des favoris 2025-05-07 18:34:49 +02:00
f7964bf9d7 essai de réparation 2025-05-07 17:21:55 +02:00
4c03085972 essai de réparation 2025-05-07 17:20:07 +02:00
62cf7b9aee tentative de réparation du projet 2025-05-06 12:43:58 +02:00
11 changed files with 173 additions and 136 deletions

15
.gitignore vendored
View File

@ -1,4 +1,3 @@
###> symfony/framework-bundle ### ###> symfony/framework-bundle ###
/.env.local /.env.local
/.env.local.php /.env.local.php
@ -20,6 +19,16 @@
/public/assets/ /public/assets/
/assets/vendor/ /assets/vendor/
###< symfony/asset-mapper ### ###< symfony/asset-mapper ###
.idea
composer.lock # IDE (JetBrains PhpStorm, Rider, etc.)
.idea/
# Node.js
/node_modules/
# Fichiers temporaires ou locaux
/public/build/
# Docker (local override)
/docker-compose.override.yml

186
composer.lock generated
View File

@ -549,16 +549,16 @@
}, },
{ {
"name": "doctrine/doctrine-migrations-bundle", "name": "doctrine/doctrine-migrations-bundle",
"version": "3.4.1", "version": "3.4.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/doctrine/DoctrineMigrationsBundle.git", "url": "https://github.com/doctrine/DoctrineMigrationsBundle.git",
"reference": "e858ce0f5c12b266dce7dce24834448355155da7" "reference": "5a6ac7120c2924c4c070a869d08b11ccf9e277b9"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/doctrine/DoctrineMigrationsBundle/zipball/e858ce0f5c12b266dce7dce24834448355155da7", "url": "https://api.github.com/repos/doctrine/DoctrineMigrationsBundle/zipball/5a6ac7120c2924c4c070a869d08b11ccf9e277b9",
"reference": "e858ce0f5c12b266dce7dce24834448355155da7", "reference": "5a6ac7120c2924c4c070a869d08b11ccf9e277b9",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -572,7 +572,6 @@
"composer/semver": "^3.0", "composer/semver": "^3.0",
"doctrine/coding-standard": "^12", "doctrine/coding-standard": "^12",
"doctrine/orm": "^2.6 || ^3", "doctrine/orm": "^2.6 || ^3",
"doctrine/persistence": "^2.0 || ^3",
"phpstan/phpstan": "^1.4 || ^2", "phpstan/phpstan": "^1.4 || ^2",
"phpstan/phpstan-deprecation-rules": "^1 || ^2", "phpstan/phpstan-deprecation-rules": "^1 || ^2",
"phpstan/phpstan-phpunit": "^1 || ^2", "phpstan/phpstan-phpunit": "^1 || ^2",
@ -615,7 +614,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/doctrine/DoctrineMigrationsBundle/issues", "issues": "https://github.com/doctrine/DoctrineMigrationsBundle/issues",
"source": "https://github.com/doctrine/DoctrineMigrationsBundle/tree/3.4.1" "source": "https://github.com/doctrine/DoctrineMigrationsBundle/tree/3.4.2"
}, },
"funding": [ "funding": [
{ {
@ -631,7 +630,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2025-01-27T22:48:22+00:00" "time": "2025-03-11T17:36:26+00:00"
}, },
{ {
"name": "doctrine/event-manager", "name": "doctrine/event-manager",
@ -1067,16 +1066,16 @@
}, },
{ {
"name": "doctrine/orm", "name": "doctrine/orm",
"version": "3.3.2", "version": "3.3.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/doctrine/orm.git", "url": "https://github.com/doctrine/orm.git",
"reference": "c9557c588b3a70ed93caff069d0aa75737f25609" "reference": "1f1891d3e20ef9881e81c2f32c53e9dc88dfc9a7"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/doctrine/orm/zipball/c9557c588b3a70ed93caff069d0aa75737f25609", "url": "https://api.github.com/repos/doctrine/orm/zipball/1f1891d3e20ef9881e81c2f32c53e9dc88dfc9a7",
"reference": "c9557c588b3a70ed93caff069d0aa75737f25609", "reference": "1f1891d3e20ef9881e81c2f32c53e9dc88dfc9a7",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1096,7 +1095,7 @@
"symfony/var-exporter": "^6.3.9 || ^7.0" "symfony/var-exporter": "^6.3.9 || ^7.0"
}, },
"require-dev": { "require-dev": {
"doctrine/coding-standard": "^12.0", "doctrine/coding-standard": "^13.0",
"phpbench/phpbench": "^1.0", "phpbench/phpbench": "^1.0",
"phpdocumentor/guides-cli": "^1.4", "phpdocumentor/guides-cli": "^1.4",
"phpstan/extension-installer": "^1.4", "phpstan/extension-installer": "^1.4",
@ -1104,7 +1103,7 @@
"phpstan/phpstan-deprecation-rules": "^2", "phpstan/phpstan-deprecation-rules": "^2",
"phpunit/phpunit": "^10.4.0", "phpunit/phpunit": "^10.4.0",
"psr/log": "^1 || ^2 || ^3", "psr/log": "^1 || ^2 || ^3",
"squizlabs/php_codesniffer": "3.7.2", "squizlabs/php_codesniffer": "3.12.0",
"symfony/cache": "^5.4 || ^6.2 || ^7.0" "symfony/cache": "^5.4 || ^6.2 || ^7.0"
}, },
"suggest": { "suggest": {
@ -1151,9 +1150,9 @@
], ],
"support": { "support": {
"issues": "https://github.com/doctrine/orm/issues", "issues": "https://github.com/doctrine/orm/issues",
"source": "https://github.com/doctrine/orm/tree/3.3.2" "source": "https://github.com/doctrine/orm/tree/3.3.3"
}, },
"time": "2025-02-04T19:43:15+00:00" "time": "2025-05-02T17:42:51+00:00"
}, },
{ {
"name": "doctrine/persistence", "name": "doctrine/persistence",
@ -1530,16 +1529,16 @@
}, },
{ {
"name": "phpdocumentor/reflection-docblock", "name": "phpdocumentor/reflection-docblock",
"version": "5.6.1", "version": "5.6.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
"reference": "e5e784149a09bd69d9a5e3b01c5cbd2e2bd653d8" "reference": "92dde6a5919e34835c506ac8c523ef095a95ed62"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/e5e784149a09bd69d9a5e3b01c5cbd2e2bd653d8", "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/92dde6a5919e34835c506ac8c523ef095a95ed62",
"reference": "e5e784149a09bd69d9a5e3b01c5cbd2e2bd653d8", "reference": "92dde6a5919e34835c506ac8c523ef095a95ed62",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1588,9 +1587,9 @@
"description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
"support": { "support": {
"issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues", "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues",
"source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.6.1" "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.6.2"
}, },
"time": "2024-12-07T09:39:29+00:00" "time": "2025-04-13T19:20:35+00:00"
}, },
{ {
"name": "phpdocumentor/type-resolver", "name": "phpdocumentor/type-resolver",
@ -4782,7 +4781,7 @@
}, },
{ {
"name": "symfony/polyfill-intl-grapheme", "name": "symfony/polyfill-intl-grapheme",
"version": "v1.31.0", "version": "v1.32.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/polyfill-intl-grapheme.git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git",
@ -4840,7 +4839,7 @@
"shim" "shim"
], ],
"support": { "support": {
"source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.31.0" "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.32.0"
}, },
"funding": [ "funding": [
{ {
@ -4860,16 +4859,16 @@
}, },
{ {
"name": "symfony/polyfill-intl-icu", "name": "symfony/polyfill-intl-icu",
"version": "v1.31.0", "version": "v1.32.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/polyfill-intl-icu.git", "url": "https://github.com/symfony/polyfill-intl-icu.git",
"reference": "d80a05e9904d2c2b9b95929f3e4b5d3a8f418d78" "reference": "763d2a91fea5681509ca01acbc1c5e450d127811"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-intl-icu/zipball/d80a05e9904d2c2b9b95929f3e4b5d3a8f418d78", "url": "https://api.github.com/repos/symfony/polyfill-intl-icu/zipball/763d2a91fea5681509ca01acbc1c5e450d127811",
"reference": "d80a05e9904d2c2b9b95929f3e4b5d3a8f418d78", "reference": "763d2a91fea5681509ca01acbc1c5e450d127811",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -4924,7 +4923,7 @@
"shim" "shim"
], ],
"support": { "support": {
"source": "https://github.com/symfony/polyfill-intl-icu/tree/v1.31.0" "source": "https://github.com/symfony/polyfill-intl-icu/tree/v1.32.0"
}, },
"funding": [ "funding": [
{ {
@ -4940,20 +4939,20 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2024-09-09T11:45:10+00:00" "time": "2024-12-21T18:38:29+00:00"
}, },
{ {
"name": "symfony/polyfill-intl-idn", "name": "symfony/polyfill-intl-idn",
"version": "v1.31.0", "version": "v1.32.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/polyfill-intl-idn.git", "url": "https://github.com/symfony/polyfill-intl-idn.git",
"reference": "c36586dcf89a12315939e00ec9b4474adcb1d773" "reference": "9614ac4d8061dc257ecc64cba1b140873dce8ad3"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/c36586dcf89a12315939e00ec9b4474adcb1d773", "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/9614ac4d8061dc257ecc64cba1b140873dce8ad3",
"reference": "c36586dcf89a12315939e00ec9b4474adcb1d773", "reference": "9614ac4d8061dc257ecc64cba1b140873dce8ad3",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -5007,7 +5006,7 @@
"shim" "shim"
], ],
"support": { "support": {
"source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.31.0" "source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.32.0"
}, },
"funding": [ "funding": [
{ {
@ -5023,11 +5022,11 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2024-09-09T11:45:10+00:00" "time": "2024-09-10T14:38:51+00:00"
}, },
{ {
"name": "symfony/polyfill-intl-normalizer", "name": "symfony/polyfill-intl-normalizer",
"version": "v1.31.0", "version": "v1.32.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/polyfill-intl-normalizer.git", "url": "https://github.com/symfony/polyfill-intl-normalizer.git",
@ -5088,7 +5087,7 @@
"shim" "shim"
], ],
"support": { "support": {
"source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.31.0" "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.32.0"
}, },
"funding": [ "funding": [
{ {
@ -5108,19 +5107,20 @@
}, },
{ {
"name": "symfony/polyfill-mbstring", "name": "symfony/polyfill-mbstring",
"version": "v1.31.0", "version": "v1.32.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/polyfill-mbstring.git", "url": "https://github.com/symfony/polyfill-mbstring.git",
"reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341" "reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/85181ba99b2345b0ef10ce42ecac37612d9fd341", "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/6d857f4d76bd4b343eac26d6b539585d2bc56493",
"reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341", "reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"ext-iconv": "*",
"php": ">=7.2" "php": ">=7.2"
}, },
"provide": { "provide": {
@ -5168,7 +5168,7 @@
"shim" "shim"
], ],
"support": { "support": {
"source": "https://github.com/symfony/polyfill-mbstring/tree/v1.31.0" "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.32.0"
}, },
"funding": [ "funding": [
{ {
@ -5184,11 +5184,11 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2024-09-09T11:45:10+00:00" "time": "2024-12-23T08:48:59+00:00"
}, },
{ {
"name": "symfony/polyfill-php83", "name": "symfony/polyfill-php83",
"version": "v1.31.0", "version": "v1.32.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/polyfill-php83.git", "url": "https://github.com/symfony/polyfill-php83.git",
@ -5244,7 +5244,7 @@
"shim" "shim"
], ],
"support": { "support": {
"source": "https://github.com/symfony/polyfill-php83/tree/v1.31.0" "source": "https://github.com/symfony/polyfill-php83/tree/v1.32.0"
}, },
"funding": [ "funding": [
{ {
@ -5264,16 +5264,16 @@
}, },
{ {
"name": "symfony/polyfill-php84", "name": "symfony/polyfill-php84",
"version": "v1.31.0", "version": "v1.32.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/polyfill-php84.git", "url": "https://github.com/symfony/polyfill-php84.git",
"reference": "e5493eb51311ab0b1cc2243416613f06ed8f18bd" "reference": "000df7860439609837bbe28670b0be15783b7fbf"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-php84/zipball/e5493eb51311ab0b1cc2243416613f06ed8f18bd", "url": "https://api.github.com/repos/symfony/polyfill-php84/zipball/000df7860439609837bbe28670b0be15783b7fbf",
"reference": "e5493eb51311ab0b1cc2243416613f06ed8f18bd", "reference": "000df7860439609837bbe28670b0be15783b7fbf",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -5320,7 +5320,7 @@
"shim" "shim"
], ],
"support": { "support": {
"source": "https://github.com/symfony/polyfill-php84/tree/v1.31.0" "source": "https://github.com/symfony/polyfill-php84/tree/v1.32.0"
}, },
"funding": [ "funding": [
{ {
@ -5336,7 +5336,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2024-09-09T12:04:04+00:00" "time": "2025-02-20T12:04:08+00:00"
}, },
{ {
"name": "symfony/process", "name": "symfony/process",
@ -7480,16 +7480,16 @@
}, },
{ {
"name": "twig/extra-bundle", "name": "twig/extra-bundle",
"version": "v3.20.0", "version": "v3.21.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/twigphp/twig-extra-bundle.git", "url": "https://github.com/twigphp/twig-extra-bundle.git",
"reference": "9df5e1dbb6a68c0665ae5603f6f2c20815647876" "reference": "62d1cf47a1aa009cbd07b21045b97d3d5cb79896"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/twigphp/twig-extra-bundle/zipball/9df5e1dbb6a68c0665ae5603f6f2c20815647876", "url": "https://api.github.com/repos/twigphp/twig-extra-bundle/zipball/62d1cf47a1aa009cbd07b21045b97d3d5cb79896",
"reference": "9df5e1dbb6a68c0665ae5603f6f2c20815647876", "reference": "62d1cf47a1aa009cbd07b21045b97d3d5cb79896",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -7538,7 +7538,7 @@
"twig" "twig"
], ],
"support": { "support": {
"source": "https://github.com/twigphp/twig-extra-bundle/tree/v3.20.0" "source": "https://github.com/twigphp/twig-extra-bundle/tree/v3.21.0"
}, },
"funding": [ "funding": [
{ {
@ -7550,20 +7550,20 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2025-02-08T09:47:15+00:00" "time": "2025-02-19T14:29:33+00:00"
}, },
{ {
"name": "twig/twig", "name": "twig/twig",
"version": "v3.20.0", "version": "v3.21.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/twigphp/Twig.git", "url": "https://github.com/twigphp/Twig.git",
"reference": "3468920399451a384bef53cf7996965f7cd40183" "reference": "285123877d4dd97dd7c11842ac5fb7e86e60d81d"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/twigphp/Twig/zipball/3468920399451a384bef53cf7996965f7cd40183", "url": "https://api.github.com/repos/twigphp/Twig/zipball/285123877d4dd97dd7c11842ac5fb7e86e60d81d",
"reference": "3468920399451a384bef53cf7996965f7cd40183", "reference": "285123877d4dd97dd7c11842ac5fb7e86e60d81d",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -7617,7 +7617,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/twigphp/Twig/issues", "issues": "https://github.com/twigphp/Twig/issues",
"source": "https://github.com/twigphp/Twig/tree/v3.20.0" "source": "https://github.com/twigphp/Twig/tree/v3.21.1"
}, },
"funding": [ "funding": [
{ {
@ -7629,7 +7629,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2025-02-13T08:34:43+00:00" "time": "2025-05-03T07:21:55+00:00"
}, },
{ {
"name": "webmozart/assert", "name": "webmozart/assert",
@ -7760,16 +7760,16 @@
}, },
{ {
"name": "myclabs/deep-copy", "name": "myclabs/deep-copy",
"version": "1.13.0", "version": "1.13.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/myclabs/DeepCopy.git", "url": "https://github.com/myclabs/DeepCopy.git",
"reference": "024473a478be9df5fdaca2c793f2232fe788e414" "reference": "1720ddd719e16cf0db4eb1c6eca108031636d46c"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/024473a478be9df5fdaca2c793f2232fe788e414", "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/1720ddd719e16cf0db4eb1c6eca108031636d46c",
"reference": "024473a478be9df5fdaca2c793f2232fe788e414", "reference": "1720ddd719e16cf0db4eb1c6eca108031636d46c",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -7808,7 +7808,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/myclabs/DeepCopy/issues", "issues": "https://github.com/myclabs/DeepCopy/issues",
"source": "https://github.com/myclabs/DeepCopy/tree/1.13.0" "source": "https://github.com/myclabs/DeepCopy/tree/1.13.1"
}, },
"funding": [ "funding": [
{ {
@ -7816,7 +7816,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2025-02-12T12:17:51+00:00" "time": "2025-04-29T12:36:36+00:00"
}, },
{ {
"name": "nikic/php-parser", "name": "nikic/php-parser",
@ -8315,16 +8315,16 @@
}, },
{ {
"name": "phpunit/phpunit", "name": "phpunit/phpunit",
"version": "9.6.22", "version": "9.6.23",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git", "url": "https://github.com/sebastianbergmann/phpunit.git",
"reference": "f80235cb4d3caa59ae09be3adf1ded27521d1a9c" "reference": "43d2cb18d0675c38bd44982a5d1d88f6d53d8d95"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/f80235cb4d3caa59ae09be3adf1ded27521d1a9c", "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/43d2cb18d0675c38bd44982a5d1d88f6d53d8d95",
"reference": "f80235cb4d3caa59ae09be3adf1ded27521d1a9c", "reference": "43d2cb18d0675c38bd44982a5d1d88f6d53d8d95",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -8335,7 +8335,7 @@
"ext-mbstring": "*", "ext-mbstring": "*",
"ext-xml": "*", "ext-xml": "*",
"ext-xmlwriter": "*", "ext-xmlwriter": "*",
"myclabs/deep-copy": "^1.12.1", "myclabs/deep-copy": "^1.13.1",
"phar-io/manifest": "^2.0.4", "phar-io/manifest": "^2.0.4",
"phar-io/version": "^3.2.1", "phar-io/version": "^3.2.1",
"php": ">=7.3", "php": ">=7.3",
@ -8398,7 +8398,7 @@
"support": { "support": {
"issues": "https://github.com/sebastianbergmann/phpunit/issues", "issues": "https://github.com/sebastianbergmann/phpunit/issues",
"security": "https://github.com/sebastianbergmann/phpunit/security/policy", "security": "https://github.com/sebastianbergmann/phpunit/security/policy",
"source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.22" "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.23"
}, },
"funding": [ "funding": [
{ {
@ -8409,12 +8409,20 @@
"url": "https://github.com/sebastianbergmann", "url": "https://github.com/sebastianbergmann",
"type": "github" "type": "github"
}, },
{
"url": "https://liberapay.com/sebastianbergmann",
"type": "liberapay"
},
{
"url": "https://thanks.dev/u/gh/sebastianbergmann",
"type": "thanks_dev"
},
{ {
"url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit", "url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit",
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2024-12-05T13:48:26+00:00" "time": "2025-05-02T06:40:34+00:00"
}, },
{ {
"name": "sebastian/cli-parser", "name": "sebastian/cli-parser",
@ -9655,21 +9663,21 @@
}, },
{ {
"name": "symfony/maker-bundle", "name": "symfony/maker-bundle",
"version": "v1.62.1", "version": "v1.63.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/maker-bundle.git", "url": "https://github.com/symfony/maker-bundle.git",
"reference": "468ff2708200c95ebc0d85d3174b6c6711b8a590" "reference": "69478ab39bc303abfbe3293006a78b09a8512425"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/maker-bundle/zipball/468ff2708200c95ebc0d85d3174b6c6711b8a590", "url": "https://api.github.com/repos/symfony/maker-bundle/zipball/69478ab39bc303abfbe3293006a78b09a8512425",
"reference": "468ff2708200c95ebc0d85d3174b6c6711b8a590", "reference": "69478ab39bc303abfbe3293006a78b09a8512425",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"doctrine/inflector": "^2.0", "doctrine/inflector": "^2.0",
"nikic/php-parser": "^4.18|^5.0", "nikic/php-parser": "^5.0",
"php": ">=8.1", "php": ">=8.1",
"symfony/config": "^6.4|^7.0", "symfony/config": "^6.4|^7.0",
"symfony/console": "^6.4|^7.0", "symfony/console": "^6.4|^7.0",
@ -9727,7 +9735,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/symfony/maker-bundle/issues", "issues": "https://github.com/symfony/maker-bundle/issues",
"source": "https://github.com/symfony/maker-bundle/tree/v1.62.1" "source": "https://github.com/symfony/maker-bundle/tree/v1.63.0"
}, },
"funding": [ "funding": [
{ {
@ -9743,20 +9751,20 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2025-01-15T00:21:40+00:00" "time": "2025-04-26T01:41:37+00:00"
}, },
{ {
"name": "symfony/phpunit-bridge", "name": "symfony/phpunit-bridge",
"version": "v7.2.0", "version": "v7.2.6",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/phpunit-bridge.git", "url": "https://github.com/symfony/phpunit-bridge.git",
"reference": "2bbde92ab25a0e2c88160857af7be9db5da0d145" "reference": "6106ae85a0e3ed509d339b7f924788c9cc4e7cfb"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/phpunit-bridge/zipball/2bbde92ab25a0e2c88160857af7be9db5da0d145", "url": "https://api.github.com/repos/symfony/phpunit-bridge/zipball/6106ae85a0e3ed509d339b7f924788c9cc4e7cfb",
"reference": "2bbde92ab25a0e2c88160857af7be9db5da0d145", "reference": "6106ae85a0e3ed509d339b7f924788c9cc4e7cfb",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -9809,7 +9817,7 @@
"description": "Provides utilities for PHPUnit, especially user deprecation notices management", "description": "Provides utilities for PHPUnit, especially user deprecation notices management",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"support": { "support": {
"source": "https://github.com/symfony/phpunit-bridge/tree/v7.2.0" "source": "https://github.com/symfony/phpunit-bridge/tree/v7.2.6"
}, },
"funding": [ "funding": [
{ {
@ -9825,7 +9833,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2024-11-13T16:15:23+00:00" "time": "2025-04-09T08:35:42+00:00"
}, },
{ {
"name": "symfony/web-profiler-bundle", "name": "symfony/web-profiler-bundle",

View File

@ -3,6 +3,7 @@
namespace App\Controller; namespace App\Controller;
use App\Entity\Announcement; use App\Entity\Announcement;
use App\Entity\Intern;
use App\Form\AnnouncementType; use App\Form\AnnouncementType;
use App\Repository\AnnouncementRepository; use App\Repository\AnnouncementRepository;
use App\Repository\InternApplicationRepository; use App\Repository\InternApplicationRepository;
@ -40,6 +41,19 @@ final class AnnouncementController extends AbstractController
} }
} }
if (in_array('ROLE_INTERN', $user->getRoles())) {
$showFavorites = $request->query->get('show_favorites');
/** @var Intern $intern */
$intern = $user;
if ($showFavorites) {
$announcements = $this->announcementRepository->findFavoritesByIntern($intern);
} else {
$announcements = $this->announcementRepository->findBy(['status' => 'Verified']);
}
}
if (in_array('ROLE_EMPLOYEE', $user->getRoles())) { if (in_array('ROLE_EMPLOYEE', $user->getRoles())) {
$company = $user->getCompany(); $company = $user->getCompany();
@ -48,10 +62,6 @@ final class AnnouncementController extends AbstractController
} }
} }
if (in_array('ROLE_INTERN', $user->getRoles())) {
$announcements = $this->announcementRepository->findBy(['status' => 'Verified']);
}
if ($companyName || $location || $category) { if ($companyName || $location || $category) {
$announcements = $this->announcementRepository->searchAnnouncements($companyName, $location, $category); $announcements = $this->announcementRepository->searchAnnouncements($companyName, $location, $category);
} }
@ -68,6 +78,7 @@ final class AnnouncementController extends AbstractController
'announcements' => $announcements, 'announcements' => $announcements,
'favorites' => $favorites, 'favorites' => $favorites,
'showNonValidated' => $request->query->get('show_non_validated', false), 'showNonValidated' => $request->query->get('show_non_validated', false),
'showFavorites' => $request->query->get('show_favorites', false)
]); ]);
} }

View File

@ -19,7 +19,7 @@ final class SkillController extends AbstractController
{ {
public function __construct( public function __construct(
private readonly EntityManagerInterface $entityManager, private readonly EntityManagerInterface $entityManager,
private readonly AnnouncementRepository $skillRepository, private readonly SkillRepository $skillRepository,
){} ){}
#[Route(name: 'app_skill_index', methods: ['GET'])] #[Route(name: 'app_skill_index', methods: ['GET'])]
public function index(): Response public function index(): Response

View File

@ -3,6 +3,7 @@
namespace App\Repository; namespace App\Repository;
use App\Entity\Announcement; use App\Entity\Announcement;
use App\Entity\Intern;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry; use Doctrine\Persistence\ManagerRegistry;
@ -38,28 +39,13 @@ class AnnouncementRepository extends ServiceEntityRepository
return $queryBuilder->getQuery()->getResult(); return $queryBuilder->getQuery()->getResult();
} }
// /** public function findFavoritesByIntern(Intern $intern): array
// * @return Announcement[] Returns an array of Announcement objects {
// */ return $this->createQueryBuilder('a')
// public function findByExampleField($value): array ->innerJoin('a.favoritesInterns', 'fav')
// { ->andWhere('fav.intern = :intern')
// return $this->createQueryBuilder('a') ->setParameter('intern', $intern)
// ->andWhere('a.exampleField = :val') ->getQuery()
// ->setParameter('val', $value) ->getResult();
// ->orderBy('a.id', 'ASC') }
// ->setMaxResults(10)
// ->getQuery()
// ->getResult()
// ;
// }
// public function findOneBySomeField($value): ?Announcement
// {
// return $this->createQueryBuilder('a')
// ->andWhere('a.exampleField = :val')
// ->setParameter('val', $value)
// ->getQuery()
// ->getOneOrNullResult()
// ;
// }
} }

View File

@ -16,6 +16,17 @@
</form> </form>
{% endif %} {% endif %}
{% if 'ROLE_INTERN' in app.user.roles %}
<form method="get" class="mb-6 text-center space-y-2">
<label class="flex items-center justify-center space-x-2">
<input type="checkbox" name="show_favorites" value="1" {% if showFavorites %}checked{% endif %} class="rounded text-teal-500">
<span class="text-gray-700">Afficher uniquement les annonces en favoris</span>
</label>
<button type="submit" class="ml-4 bg-teal-500 text-white px-4 py-2 rounded">Appliquer</button>
</form>
{% endif %}
{% if 'ROLE_EMPLOYEE' in app.user.roles %} {% if 'ROLE_EMPLOYEE' in app.user.roles %}
<div class="text-center mb-6"> <div class="text-center mb-6">
<a href="{{ path('app_announcement_new') }}" class="bg-teal-500 text-white px-6 py-3 rounded-md hover:bg-teal-600"> <a href="{{ path('app_announcement_new') }}" class="bg-teal-500 text-white px-6 py-3 rounded-md hover:bg-teal-600">
@ -43,6 +54,7 @@
<span class="text-green-500 font-semibold">Validée</span> <span class="text-green-500 font-semibold">Validée</span>
{% endif %} {% endif %}
{% if 'ROLE_INTERN' in app.user.roles %}
<form method="post" action="{{ path('app_favorite_toggle', {id: announcement.id}) }}"> <form method="post" action="{{ path('app_favorite_toggle', {id: announcement.id}) }}">
<button type="submit" class="text-xl"> <button type="submit" class="text-xl">
{% if announcement.id in favorites %} {% if announcement.id in favorites %}
@ -52,6 +64,7 @@
{% endif %} {% endif %}
</button> </button>
</form> </form>
{% endif %}
</div> </div>
<h2 class="text-3xl font-semibold mb-2">{{ announcement.title }}</h2> <h2 class="text-3xl font-semibold mb-2">{{ announcement.title }}</h2>

View File

@ -80,6 +80,8 @@
</div> </div>
{% endif %} {% endif %}
{% if 'ROLE_INTERN' in app.user.roles %}
<!-- Vérifier si c'est un favori --> <!-- Vérifier si c'est un favori -->
<form method="post" action="{{ path(isFavorite ? 'app_favorite_remove' : 'app_favorite_add', {id: announcement.id}) }}"> <form method="post" action="{{ path(isFavorite ? 'app_favorite_remove' : 'app_favorite_add', {id: announcement.id}) }}">
<button type="submit" class="text-yellow-500"> <button type="submit" class="text-yellow-500">
@ -90,6 +92,7 @@
{% endif %} {% endif %}
</button> </button>
</form> </form>
{% endif %}
</div> </div>
<!-- Bouton de retour à la liste --> <!-- Bouton de retour à la liste -->

View File

@ -56,11 +56,23 @@
</table> </table>
</div> </div>
{% if 'ROLE_INTERN' in app.user.roles %}
<div class="mt-4">
<button type="submit" class="bg-blue-500 hover:bg-blue-600 text-white py-2 px-4 rounded-full">
<i class="fas fa-check-circle"></i> Valider la sélection
</button>
</div>
</form>
{% endif %}
{% if 'ROLE_ADMIN' in app.user.roles %}
<!-- Lien pour ajouter un nouveau diplôme --> <!-- Lien pour ajouter un nouveau diplôme -->
<div class="mt-4"> <div class="mt-4">
<a href="{{ path('app_degree_new') }}" class="bg-teal-500 hover:bg-teal-600 text-white py-2 px-4 rounded-full"> <a href="{{ path('app_degree_new') }}"
class="bg-teal-500 hover:bg-teal-600 text-white py-2 px-4 rounded-full">
<i class="fas fa-plus-circle"></i> Ajouter un nouveau diplôme <i class="fas fa-plus-circle"></i> Ajouter un nouveau diplôme
</a> </a>
</div> </div>
{% endif %}
</div> </div>
{% endblock %} {% endblock %}

View File

@ -16,10 +16,12 @@
<hr class="border-black"/> <hr class="border-black"/>
{% endfor %} {% endfor %}
</div> </div>
{% if 'ROLE_ADMIN' in app.user.roles %}
<div class="mt-4"> <div class="mt-4">
<a href="{{ path('app_faq_new') }}" class="bg-teal-500 hover:bg-teal-600 text-white py-2 px-4 rounded-full"> <a href="{{ path('app_faq_new') }}" class="bg-teal-500 hover:bg-teal-600 text-white py-2 px-4 rounded-full">
<i class="fas fa-plus-circle"></i> Ajouter une FAQ / Poser une question <i class="fas fa-plus-circle"></i> Ajouter une Question / Reponse
</a> </a>
</div> </div>
{% endif %}
</div> </div>
{% endblock %} {% endblock %}

View File

@ -6,7 +6,7 @@
<p class="text-gray-600">Prénom : {{ app.user.lastName }}</p> <p class="text-gray-600">Prénom : {{ app.user.lastName }}</p>
<p class="text-gray-600">Adresse : {{ app.user.address }}</p> <p class="text-gray-600">Adresse : {{ app.user.address }}</p>
<p class="text-gray-600">Téléphone : {{ app.user.tel }}</p> <p class="text-gray-600">Téléphone : {{ app.user.tel }}</p>
<p class="text-gray-600">Email : {{ app.user.mail }}</p> <p class="text-gray-600 mb-4">Email : {{ app.user.mail }}</p>
<a class="bg-teal-500 hover:bg-teal-600 text-white py-2 px-4 rounded-full" <a class="bg-teal-500 hover:bg-teal-600 text-white py-2 px-4 rounded-full"

View File

@ -59,13 +59,6 @@
href="{{ path('app_skill_index',{id: app.user.id}) }}"> Sélectionner vos compétences href="{{ path('app_skill_index',{id: app.user.id}) }}"> Sélectionner vos compétences
</a> </a>
<div class="flex justify-center mt-6">
<a class="bg-teal-500 hover:bg-teal-600 text-white py-2 px-4 rounded-full"
href="{{ path('app_user_edit',{id: app.user.id}) }}"> Accéder aux favoris
</a>
</div>
<h3 class="text-lg font-semibold mt-6">Vos candidatures :</h3> <h3 class="text-lg font-semibold mt-6">Vos candidatures :</h3>
{% if applications|length > 0 %} {% if applications|length > 0 %}