Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #52229 [FrameworkBundle] Fix CommandDataCollector is always regis…
…tered (smnandre) This PR was squashed before being merged into the 6.4 branch. Discussion ---------- [FrameworkBundle] Fix CommandDataCollector is always registered | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #52210 | License | MIT Another attempt at fixing #52210, allowing to revert #52218 and leave the conflict constraints untouched CommandDataCollector was always registered, and not always removed from the container when not needed/invalid. Commits ------- 6e2c2ec [FrameworkBundle] Fix CommandDataCollector is always registered
- Loading branch information
Showing
4 changed files
with
24 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/Symfony/Bundle/FrameworkBundle/Resources/config/console_debug.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Symfony package. | ||
* | ||
* (c) Fabien Potencier <fabien@symfony.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Symfony\Component\DependencyInjection\Loader\Configurator; | ||
|
||
use Symfony\Component\Console\DataCollector\CommandDataCollector; | ||
|
||
return static function (ContainerConfigurator $container) { | ||
$container->services() | ||
->set('.data_collector.command', CommandDataCollector::class) | ||
->tag('data_collector', ['template' => '@WebProfiler/Collector/command.html.twig', 'id' => 'command', 'priority' => 335]) | ||
; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters