From 37d2c86aef5da732ffb543783a140e87589a4905 Mon Sep 17 00:00:00 2001 From: Tchama Date: Sat, 17 Apr 2021 23:40:33 +0200 Subject: [PATCH] adding debug bundle and var-dumper requirement --- README.md | 5 +- app/composer.json | 2 + app/composer.lock | 80 +++++++++++++++++++++++++++++- app/config/bundles.php | 1 + app/config/packages/dev/debug.yaml | 4 ++ app/symfony.lock | 12 +++++ 6 files changed, 101 insertions(+), 3 deletions(-) create mode 100644 app/config/packages/dev/debug.yaml diff --git a/README.md b/README.md index 202df43..1d62207 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Après ça on choisira dans le fichier `app/.env` le type de base de donnée. Un Cette branche démarre d'une installation toute prête de la demo Symfony. La db est enregistrée dans le repo dans un simple fichier sqlite (`app/data/database.sqlite`). Le conteneur docker postgresql est donc désactivé. -## 3_symfony_new_project +## 3_start_new_project * commandes exécutées: * `$ symfony new myproject` @@ -43,4 +43,5 @@ Cette branche démarre d'une installation toute prête de la demo Symfony. La db ``` * Create database schema: `bin/console doctrine:schema:create` * `$ composer require symfony/webpack-encore-bundle` and `$ yarn install --force` - * `$ yarn add sass sass-loader` + * `$ yarn add sass sass-loader` + * `$ composer require --dev symfony/debug-bundle symfony/var-dumper` diff --git a/app/composer.json b/app/composer.json index 26b484e..30ac7da 100644 --- a/app/composer.json +++ b/app/composer.json @@ -71,7 +71,9 @@ } }, "require-dev": { + "symfony/debug-bundle": "5.2.*", "symfony/stopwatch": "^5.2", + "symfony/var-dumper": "5.2.*", "symfony/web-profiler-bundle": "^5.2" } } diff --git a/app/composer.lock b/app/composer.lock index 15de535..3a277ab 100644 --- a/app/composer.lock +++ b/app/composer.lock @@ -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": "f25be7488ec574d0180bd5b54fd2544d", + "content-hash": "de3b3730b21db34cf77b1d3be8832a59", "packages": [ { "name": "composer/package-versions-deprecated", @@ -6038,6 +6038,84 @@ } ], "packages-dev": [ + { + "name": "symfony/debug-bundle", + "version": "v5.2.4", + "source": { + "type": "git", + "url": "https://github.com/symfony/debug-bundle.git", + "reference": "ec21bd26d24dab02ac40e4bec362b3f4032486e8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/debug-bundle/zipball/ec21bd26d24dab02ac40e4bec362b3f4032486e8", + "reference": "ec21bd26d24dab02ac40e4bec362b3f4032486e8", + "shasum": "" + }, + "require": { + "ext-xml": "*", + "php": ">=7.2.5", + "symfony/http-kernel": "^4.4|^5.0", + "symfony/twig-bridge": "^4.4|^5.0", + "symfony/var-dumper": "^4.4|^5.0" + }, + "conflict": { + "symfony/config": "<4.4", + "symfony/dependency-injection": "<5.2" + }, + "require-dev": { + "symfony/config": "^4.4|^5.0", + "symfony/dependency-injection": "^4.4|^5.0", + "symfony/web-profiler-bundle": "^4.4|^5.0" + }, + "suggest": { + "symfony/config": "For service container configuration", + "symfony/dependency-injection": "For using as a service from the container" + }, + "type": "symfony-bundle", + "autoload": { + "psr-4": { + "Symfony\\Bundle\\DebugBundle\\": "" + }, + "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 tight integration of the Symfony Debug component into the Symfony full-stack framework", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/debug-bundle/tree/v5.2.4" + }, + "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": "2021-01-10T16:30:10+00:00" + }, { "name": "symfony/web-profiler-bundle", "version": "v5.2.6", diff --git a/app/config/bundles.php b/app/config/bundles.php index 57064b1..b140d05 100644 --- a/app/config/bundles.php +++ b/app/config/bundles.php @@ -10,4 +10,5 @@ return [ Twig\Extra\TwigExtraBundle\TwigExtraBundle::class => ['all' => true], Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true], Symfony\WebpackEncoreBundle\WebpackEncoreBundle::class => ['all' => true], + Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true, 'test' => true], ]; diff --git a/app/config/packages/dev/debug.yaml b/app/config/packages/dev/debug.yaml new file mode 100644 index 0000000..26d4e53 --- /dev/null +++ b/app/config/packages/dev/debug.yaml @@ -0,0 +1,4 @@ +debug: + # Forwards VarDumper Data clones to a centralized server allowing to inspect dumps on CLI or in your browser. + # See the "server:dump" command to start a new server. + dump_destination: "tcp://%env(VAR_DUMPER_SERVER)%" diff --git a/app/symfony.lock b/app/symfony.lock index 94d246d..4cca6b3 100644 --- a/app/symfony.lock +++ b/app/symfony.lock @@ -145,6 +145,18 @@ "bin/console" ] }, + "symfony/debug-bundle": { + "version": "4.1", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "4.1", + "ref": "f8863cbad2f2e58c4b65fa1eac892ab189971bea" + }, + "files": [ + "config/packages/dev/debug.yaml" + ] + }, "symfony/dependency-injection": { "version": "v5.2.6" },