Skip to content

Commit b3bfc6d

Browse files
committed
bug #52274 [FrameworkBundle] re-introduce conflict rule with WebProfilerBundle < 6.4 (xabbuh)
This PR was merged into the 6.4 branch. Discussion ---------- [FrameworkBundle] re-introduce conflict rule with WebProfilerBundle < 6.4 | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #52271 | License | MIT Commits ------- 850afbb re-introduce conflict rule with WebProfilerBundle < 6.4
2 parents fafbbfa + 850afbb commit b3bfc6d

File tree

4 files changed

+6
-24
lines changed

4 files changed

+6
-24
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,6 @@ private function registerProfilerConfiguration(array $config, ContainerBuilder $
861861
$loader->load('profiling.php');
862862
$loader->load('collectors.php');
863863
$loader->load('cache_debug.php');
864-
$loader->load('console_debug.php');
865864

866865
if ($this->isInitializedConfigEnabled('form')) {
867866
$loader->load('form_debug.php');
@@ -923,7 +922,7 @@ private function registerProfilerConfiguration(array $config, ContainerBuilder $
923922
$container->removeDefinition('console_profiler_listener');
924923
}
925924

926-
if (!$container->getParameter('kernel.debug') || !class_exists(CliRequest::class) || !class_exists(CommandDataCollector::class)) {
925+
if (!class_exists(CommandDataCollector::class)) {
927926
$container->removeDefinition('.data_collector.command');
928927
}
929928
}

src/Symfony/Bundle/FrameworkBundle/Resources/config/collectors.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
1313

1414
use Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector;
15+
use Symfony\Component\Console\DataCollector\CommandDataCollector;
1516
use Symfony\Component\HttpKernel\DataCollector\AjaxDataCollector;
1617
use Symfony\Component\HttpKernel\DataCollector\ConfigDataCollector;
1718
use Symfony\Component\HttpKernel\DataCollector\EventDataCollector;
@@ -74,5 +75,8 @@
7475
->set('data_collector.router', RouterDataCollector::class)
7576
->tag('kernel.event_listener', ['event' => KernelEvents::CONTROLLER, 'method' => 'onKernelController'])
7677
->tag('data_collector', ['template' => '@WebProfiler/Collector/router.html.twig', 'id' => 'router', 'priority' => 285])
78+
79+
->set('.data_collector.command', CommandDataCollector::class)
80+
->tag('data_collector', ['template' => '@WebProfiler/Collector/command.html.twig', 'id' => 'command', 'priority' => 335])
7781
;
7882
};

src/Symfony/Bundle/FrameworkBundle/Resources/config/console_debug.php

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/Symfony/Bundle/FrameworkBundle/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
"symfony/twig-bridge": "<5.4",
102102
"symfony/twig-bundle": "<5.4",
103103
"symfony/validator": "<6.4",
104-
"symfony/web-profiler-bundle": "<5.4",
104+
"symfony/web-profiler-bundle": "<6.4",
105105
"symfony/workflow": "<6.4"
106106
},
107107
"autoload": {

0 commit comments

Comments
 (0)