From 3abe3d2d979860dc7913493d60e6bee5b78afb5f Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Fri, 19 Feb 2021 22:30:35 +0100 Subject: [PATCH] adding DebugBundle and var-dumper requirement --- .gitignore | 3 ++ 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(+), 1 deletion(-) create mode 100644 app/config/packages/dev/debug.yaml diff --git a/.gitignore b/.gitignore index c6f502c..29914e5 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,6 @@ # Ignore Database datas data + +# IDE +.idea diff --git a/app/composer.json b/app/composer.json index 6ba932a..fe9de1b 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 cf686bc..402259f 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": "076c81b80080dde56989d8db082ce703", + "content-hash": "9eec1ea29cf961af84e4a74624151220", "packages": [ { "name": "composer/package-versions-deprecated", @@ -6020,6 +6020,84 @@ } ], "packages-dev": [ + { + "name": "symfony/debug-bundle", + "version": "v5.2.3", + "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.3" + }, + "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.3", diff --git a/app/config/bundles.php b/app/config/bundles.php index e112574..3b3d689 100644 --- a/app/config/bundles.php +++ b/app/config/bundles.php @@ -10,4 +10,5 @@ return [ Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true], Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => 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 75b2dfb..bd86f8e 100644 --- a/app/symfony.lock +++ b/app/symfony.lock @@ -141,6 +141,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.3" },