From d32b607ddac6971e8597b1078569f77c2b5b02b9 Mon Sep 17 00:00:00 2001 From: tristan Date: Fri, 23 Jan 2026 15:13:53 +0100 Subject: [PATCH] feat : ajout de la debug bar en mod dev --- .idea/ferme.iml | 1 + .idea/php.xml | 214 +++++++++++------------ .idea/workspace.xml | 252 ++++++++++++++------------- composer.json | 16 +- composer.lock | 277 ++++++++++++++++++++++-------- config/packages/web_profiler.yaml | 13 ++ config/routes/web_profiler.yaml | 8 + docker/nginx/conf.d/ferme.conf | 10 ++ makefile | 2 +- 9 files changed, 493 insertions(+), 300 deletions(-) create mode 100644 config/packages/web_profiler.yaml create mode 100644 config/routes/web_profiler.yaml diff --git a/.idea/ferme.iml b/.idea/ferme.iml index a55a4eb..a590ed6 100644 --- a/.idea/ferme.iml +++ b/.idea/ferme.iml @@ -150,6 +150,7 @@ + diff --git a/.idea/php.xml b/.idea/php.xml index dfc3b24..1a8c92c 100644 --- a/.idea/php.xml +++ b/.idea/php.xml @@ -12,150 +12,152 @@ - - - - - - - - - - - - - - - - - - - - - - - - - + - - - + + + - - + - + - - + + + + + + + - - - + - + + + + + + + + + + - - - - - - - - + + + - - - - + + + - - - + - + + + - - - - - - - + + + + + + + + + + + + - - - - - + - - - - - - - - - - - + + + + - - - - - + + + + + + + + + - + + + + - - - - - - - - + + - - - + - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.idea/workspace.xml b/.idea/workspace.xml index eec8357..46513da 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,13 +4,21 @@ - + + + + + + - + + + - - - + + + + - @@ -594,7 +611,8 @@ - diff --git a/composer.json b/composer.json index 57a7a13..6d1baf1 100644 --- a/composer.json +++ b/composer.json @@ -14,6 +14,7 @@ "doctrine/orm": "^3.6", "dompdf/dompdf": "^3.1", "lexik/jwt-authentication-bundle": "*", + "malio/ednotif-bundle": "*", "nelmio/cors-bundle": "^2.6", "phpdocumentor/reflection-docblock": "^5.6", "phpstan/phpdoc-parser": "^2.3", @@ -90,6 +91,17 @@ "friendsofphp/php-cs-fixer": "^3.92", "phpunit/phpunit": "^12.5", "symfony/browser-kit": "8.0.*", - "symfony/css-selector": "8.0.*" - } + "symfony/css-selector": "8.0.*", + "symfony/stopwatch": "8.0.*", + "symfony/web-profiler-bundle": "8.0.*" + }, + "repositories": [ + { + "type": "path", + "url": "ednotif-bundle", + "options": { + "symlink": true + } + } + ] } diff --git a/composer.lock b/composer.lock index 7617e63..710379e 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,52 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "e122271fbb08b4c19c1fe6084f95aeab", + "content-hash": "529cc00514b5b7165d7fdc980f7e2606", "packages": [ + { + "name": "Malio/ednotif-bundle", + "version": "0.0.1", + "dist": { + "type": "path", + "url": "ednotif-bundle", + "reference": "b279f1ac478bcbb81793dab216fe82b1139113db" + }, + "require": { + "ext-soap": "*", + "ext-xml": "*", + "php": "^8.4", + "psr/log": "^3.0", + "symfony/cache": "^8.0", + "symfony/config": "^8.0", + "symfony/dependency-injection": "^8.0", + "symfony/framework-bundle": "^8.0", + "symfony/http-kernel": "^8.0", + "symfony/options-resolver": "^8.0" + }, + "require-dev": { + "phpunit/phpunit": "^12.0", + "symfony/phpunit-bridge": "^8.0" + }, + "type": "symfony-bundle", + "autoload": { + "psr-4": { + "Malio\\EdnotifBundle\\": "src/" + } + }, + "autoload-dev": { + "psr-4": { + "Malio\\EdnotifBundle\\Tests\\": "tests/" + } + }, + "license": [ + "MIT" + ], + "description": "Client EDNOTIF (Guichet + wsIpBNotif) pour Symfony", + "transport-options": { + "symlink": true, + "relative": true + } + }, { "name": "api-platform/doctrine-common", "version": "v4.2.11", @@ -5531,6 +5575,77 @@ ], "time": "2025-12-08T08:00:13+00:00" }, + { + "name": "symfony/options-resolver", + "version": "v8.0.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/options-resolver.git", + "reference": "d2b592535ffa6600c265a3893a7f7fd2bad82dd7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/options-resolver/zipball/d2b592535ffa6600c265a3893a7f7fd2bad82dd7", + "reference": "d2b592535ffa6600c265a3893a7f7fd2bad82dd7", + "shasum": "" + }, + "require": { + "php": ">=8.4", + "symfony/deprecation-contracts": "^2.5|^3" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\OptionsResolver\\": "" + }, + "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": "Provides an improved replacement for the array_replace PHP function", + "homepage": "https://symfony.com", + "keywords": [ + "config", + "configuration", + "options" + ], + "support": { + "source": "https://github.com/symfony/options-resolver/tree/v8.0.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-11-12T15:55:31+00:00" + }, { "name": "symfony/password-hasher", "version": "v8.0.0", @@ -11076,77 +11191,6 @@ ], "time": "2025-12-06T17:00:47+00:00" }, - { - "name": "symfony/options-resolver", - "version": "v8.0.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/options-resolver.git", - "reference": "d2b592535ffa6600c265a3893a7f7fd2bad82dd7" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/options-resolver/zipball/d2b592535ffa6600c265a3893a7f7fd2bad82dd7", - "reference": "d2b592535ffa6600c265a3893a7f7fd2bad82dd7", - "shasum": "" - }, - "require": { - "php": ">=8.4", - "symfony/deprecation-contracts": "^2.5|^3" - }, - "type": "library", - "autoload": { - "psr-4": { - "Symfony\\Component\\OptionsResolver\\": "" - }, - "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": "Provides an improved replacement for the array_replace PHP function", - "homepage": "https://symfony.com", - "keywords": [ - "config", - "configuration", - "options" - ], - "support": { - "source": "https://github.com/symfony/options-resolver/tree/v8.0.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://github.com/nicolas-grekas", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2025-11-12T15:55:31+00:00" - }, { "name": "symfony/process", "version": "v8.0.3", @@ -11212,6 +11256,91 @@ ], "time": "2025-12-19T10:01:18+00:00" }, + { + "name": "symfony/web-profiler-bundle", + "version": "v8.0.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/web-profiler-bundle.git", + "reference": "88679cfe4067bafb8df5d6defcaec061fe16af2d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/web-profiler-bundle/zipball/88679cfe4067bafb8df5d6defcaec061fe16af2d", + "reference": "88679cfe4067bafb8df5d6defcaec061fe16af2d", + "shasum": "" + }, + "require": { + "composer-runtime-api": ">=2.1", + "php": ">=8.4", + "symfony/config": "^7.4|^8.0", + "symfony/framework-bundle": "^7.4|^8.0", + "symfony/http-kernel": "^7.4|^8.0", + "symfony/routing": "^7.4|^8.0", + "symfony/twig-bundle": "^7.4|^8.0" + }, + "conflict": { + "symfony/serializer": "<7.4", + "symfony/workflow": "<7.4" + }, + "require-dev": { + "symfony/browser-kit": "^7.4|^8.0", + "symfony/console": "^7.4|^8.0", + "symfony/css-selector": "^7.4|^8.0", + "symfony/runtime": "^7.4|^8.0", + "symfony/stopwatch": "^7.4|^8.0" + }, + "type": "symfony-bundle", + "autoload": { + "psr-4": { + "Symfony\\Bundle\\WebProfilerBundle\\": "" + }, + "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": "Provides a development tool that gives detailed information about the execution of any request", + "homepage": "https://symfony.com", + "keywords": [ + "dev" + ], + "support": { + "source": "https://github.com/symfony/web-profiler-bundle/tree/v8.0.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2025-12-27T17:05:29+00:00" + }, { "name": "theseer/tokenizer", "version": "2.0.1", @@ -11265,7 +11394,7 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": {}, + "stability-flags": [], "prefer-stable": true, "prefer-lowest": false, "platform": { @@ -11273,6 +11402,6 @@ "ext-ctype": "*", "ext-iconv": "*" }, - "platform-dev": {}, + "platform-dev": [], "plugin-api-version": "2.9.0" } diff --git a/config/packages/web_profiler.yaml b/config/packages/web_profiler.yaml new file mode 100644 index 0000000..0eac3c9 --- /dev/null +++ b/config/packages/web_profiler.yaml @@ -0,0 +1,13 @@ +when@dev: + web_profiler: + toolbar: true + + framework: + profiler: + collect_serializer_data: true + +when@test: + framework: + profiler: + collect: false + collect_serializer_data: true diff --git a/config/routes/web_profiler.yaml b/config/routes/web_profiler.yaml new file mode 100644 index 0000000..b3b7b4b --- /dev/null +++ b/config/routes/web_profiler.yaml @@ -0,0 +1,8 @@ +when@dev: + web_profiler_wdt: + resource: '@WebProfilerBundle/Resources/config/routing/wdt.php' + prefix: /_wdt + + web_profiler_profiler: + resource: '@WebProfilerBundle/Resources/config/routing/profiler.php' + prefix: /_profiler diff --git a/docker/nginx/conf.d/ferme.conf b/docker/nginx/conf.d/ferme.conf index 668f6a7..6be39b6 100644 --- a/docker/nginx/conf.d/ferme.conf +++ b/docker/nginx/conf.d/ferme.conf @@ -10,6 +10,16 @@ server { try_files $uri /index.php?$query_string; } + location ^~ /_wdt/ { + root /var/www/html/public; + try_files $uri /index.php?$query_string; + } + + location ^~ /_profiler/ { + root /var/www/html/public; + try_files $uri /index.php?$query_string; + } + location ^~ /bundles/ { root /var/www/html/public; try_files $uri =404; diff --git a/makefile b/makefile index 6d46e32..c7d34dd 100644 --- a/makefile +++ b/makefile @@ -74,7 +74,7 @@ build-without-cache: --no-cache migration-migrate: - $(SYMFONY_CONSOLE) bin/console doctrine:migrations:migrate --no-interaction + $(SYMFONY_CONSOLE) doctrine:migrations:migrate --no-interaction # Attention, supprime votre bdd local db-reset: