From a80715f032c8e6edd0cbd191b164a21ca41ec8b0 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sat, 6 Jul 2024 09:57:16 +0200 Subject: [PATCH 1/4] Update .gitattributes --- .gitattributes | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitattributes b/.gitattributes index 84c7add..14c3c35 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,4 +1,3 @@ /Tests export-ignore /phpunit.xml.dist export-ignore -/.gitattributes export-ignore -/.gitignore export-ignore +/.git* export-ignore From 69df1175b0ec0b69d678cffc23c0e9599918752d Mon Sep 17 00:00:00 2001 From: Alexandre Daubois Date: Mon, 2 Sep 2024 14:07:48 +0200 Subject: [PATCH 2/4] Fix configurations info consistency --- DependencyInjection/Configuration.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index caf7359..4dbdc4c 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -28,27 +28,27 @@ public function getConfigTreeBuilder(): TreeBuilder $rootNode = $treeBuilder->getRootNode(); $rootNode->children() ->integerNode('max_items') - ->info('Max number of displayed items past the first level, -1 means no limit') + ->info('Max number of displayed items past the first level, -1 means no limit.') ->min(-1) ->defaultValue(2500) ->end() ->integerNode('min_depth') - ->info('Minimum tree depth to clone all the items, 1 is default') + ->info('Minimum tree depth to clone all the items, 1 is default.') ->min(0) ->defaultValue(1) ->end() ->integerNode('max_string_length') - ->info('Max length of displayed strings, -1 means no limit') + ->info('Max length of displayed strings, -1 means no limit.') ->min(-1) ->defaultValue(-1) ->end() ->scalarNode('dump_destination') - ->info('A stream URL where dumps should be written to') + ->info('A stream URL where dumps should be written to.') ->example('php://stderr, or tcp://%env(VAR_DUMPER_SERVER)% when using the "server:dump" command') ->defaultNull() ->end() ->enumNode('theme') - ->info('Changes the color of the dump() output when rendered directly on the templating. "dark" (default) or "light"') + ->info('Changes the color of the dump() output when rendered directly on the templating. "dark" (default) or "light".') ->example('dark') ->values(['dark', 'light']) ->defaultValue('dark') From c79ec26d9c24f21344e2c622938ebfaad765aad6 Mon Sep 17 00:00:00 2001 From: Alexandre Daubois Date: Wed, 12 Feb 2025 19:13:00 +0100 Subject: [PATCH 3/4] [Config] Add `NodeDefinition::docUrl()` --- DependencyInjection/Configuration.php | 4 +++- composer.json | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 4dbdc4c..a72034d 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -26,7 +26,9 @@ public function getConfigTreeBuilder(): TreeBuilder $treeBuilder = new TreeBuilder('debug'); $rootNode = $treeBuilder->getRootNode(); - $rootNode->children() + $rootNode + ->docUrl('https://symfony.com/doc/{version:major}.{version:minor}/reference/configuration/debug.html', 'symfony/debug-bundle') + ->children() ->integerNode('max_items') ->info('Max number of displayed items past the first level, -1 means no limit.') ->min(-1) diff --git a/composer.json b/composer.json index d00a4db..7756b7f 100644 --- a/composer.json +++ b/composer.json @@ -18,13 +18,14 @@ "require": { "php": ">=8.2", "ext-xml": "*", + "composer-runtime-api": ">=2.1", "symfony/dependency-injection": "^6.4|^7.0", "symfony/http-kernel": "^6.4|^7.0", "symfony/twig-bridge": "^6.4|^7.0", "symfony/var-dumper": "^6.4|^7.0" }, "require-dev": { - "symfony/config": "^6.4|^7.0", + "symfony/config": "^7.3", "symfony/web-profiler-bundle": "^6.4|^7.0" }, "conflict": { From 781acc90f31f5fe18915f9276890864ebbbe3da8 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Sun, 4 May 2025 14:37:22 +0200 Subject: [PATCH 4/4] require the 7.3+ of the Config component --- composer.json | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/composer.json b/composer.json index 7756b7f..31b4800 100644 --- a/composer.json +++ b/composer.json @@ -19,19 +19,15 @@ "php": ">=8.2", "ext-xml": "*", "composer-runtime-api": ">=2.1", + "symfony/config": "^7.3", "symfony/dependency-injection": "^6.4|^7.0", "symfony/http-kernel": "^6.4|^7.0", "symfony/twig-bridge": "^6.4|^7.0", "symfony/var-dumper": "^6.4|^7.0" }, "require-dev": { - "symfony/config": "^7.3", "symfony/web-profiler-bundle": "^6.4|^7.0" }, - "conflict": { - "symfony/config": "<6.4", - "symfony/dependency-injection": "<6.4" - }, "autoload": { "psr-4": { "Symfony\\Bundle\\DebugBundle\\": "" }, "exclude-from-classmap": [