8000 bug #40498 [DebugBundle] Remove warning of ServerDumpPlaceholderComma… · symfony/symfony@285cdb0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 285cdb0

Browse files
bug #40498 [DebugBundle] Remove warning of ServerDumpPlaceholderCommand in console (DemigodCode)This PR was merged into the 5.3-dev branch. Discussion ---------- [DebugBundle] Remove warning of ServerDumpPlaceholderCommand in console | Q | A | ------------- | --- | Branch? | 5.2.5 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #40495 | License | MIT | Doc PR | In 5.2.5 the console commands are lazy. (#39851) With this change the ServerDumpCommand::$defaultName is used which isn't set in the placeholder command. If no vardump-server in debug.dump_destination is defined, this will lead to a warning and not adding the command to the console list. Commits ------- 37b2a19 [DebugBundle] Add $defaultName to PlaceholderCommand
2 parents 78fccbe + 37b2a19 commit 285cdb0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Symfony/Bundle/DebugBundle/Command/ServerDumpPlaceholderCommand.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
*/
2828
class ServerDumpPlaceholderCommand extends Command
2929
{
30+
protected static $defaultName = 'server:dump';
31+
protected static $defaultDescription = 'Start a dump server that collects and displays dumps in a single place';
32+
3033
private $replacedCommand;
3134

3235
public function __construct(DumpServer $server = null, array $descriptors = [])

0 commit comments

Comments
 (0)
0