From 54e0090737a436de439e85e213cb2cfe9ada956a Mon Sep 17 00:00:00 2001 From: David mattei Date: Wed, 27 Nov 2024 21:04:25 +0100 Subject: [PATCH] feat(cli): enable symfony debug bundle in dev mode (#1081) --- elasticms-cli/config/bundles.php | 1 + elasticms-cli/config/packages/debug.yaml | 5 +++++ elasticms-cli/symfony.lock | 3 +++ 3 files changed, 9 insertions(+) create mode 100644 elasticms-cli/config/packages/debug.yaml diff --git a/elasticms-cli/config/bundles.php b/elasticms-cli/config/bundles.php index 7d2f86394..2e5fc54ba 100644 --- a/elasticms-cli/config/bundles.php +++ b/elasticms-cli/config/bundles.php @@ -7,4 +7,5 @@ EMS\CommonBundle\EMSCommonBundle::class => ['all' => true], Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true], Twig\Extra\TwigExtraBundle\TwigExtraBundle::class => ['all' => true], + Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true, 'test' => true], ]; diff --git a/elasticms-cli/config/packages/debug.yaml b/elasticms-cli/config/packages/debug.yaml new file mode 100644 index 000000000..9a40c4bc1 --- /dev/null +++ b/elasticms-cli/config/packages/debug.yaml @@ -0,0 +1,5 @@ +when@dev: + 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)%" \ No newline at end of file diff --git a/elasticms-cli/symfony.lock b/elasticms-cli/symfony.lock index 76b9dc84d..c005789bf 100644 --- a/elasticms-cli/symfony.lock +++ b/elasticms-cli/symfony.lock @@ -343,6 +343,9 @@ "symfony/css-selector": { "version": "v5.4.3" }, + "symfony/debug-bundle": { + "version": "v5.4.45" + }, "symfony/dependency-injection": { "version": "v5.4.3" },