Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #35978 [Messenger] Show message & handler(s) class descriptio…
…n in debug:messenger (ogizanagi) This PR was merged into the 5.1-dev branch. Discussion ---------- [Messenger] Show message & handler(s) class description in debug:messenger | Q | A | ------------- | --- | Branch? | master<!-- see below --> | Bug fix? | no | New feature? | yes <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | N/A <!-- prefix each issue number with "Fix #", if any --> | License | MIT | Doc PR | N/A Similar to the `debug:autowiring` command, add the messages & handlers class description to the `debug:messenger` command. Messenger is a central piece in CQRS applications. Exposing the messages & handlers descriptions in this command is a great way to have a global vision of the covered use-cases (especially if there is a newcomer to the project). Commits ------- 079efdf [Messenger] Show message & handler(s) class description in debug:messenger
- Loading branch information
Showing
4 changed files
with
79 additions
and
0 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
19 changes: 19 additions & 0 deletions
19
src/Symfony/Component/Messenger/Tests/Fixtures/DummyCommandWithDescription.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,19 @@ | ||
<?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\Messenger\Tests\Fixtures; | ||
|
||
/** | ||
* Used whenever a test needs to show a message with a class description. | ||
*/ | ||
class DummyCommandWithDescription | ||
{ | ||
} |
22 changes: 22 additions & 0 deletions
22
src/Symfony/Component/Messenger/Tests/Fixtures/DummyCommandWithDescriptionHandler.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,22 @@ | ||
<?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\Messenger\Tests\Fixtures; | ||
|
||
/** | ||
* Used whenever a test needs to show a message handler with a class description. | ||
*/ | ||
class DummyCommandWithDescriptionHandler | ||
{ | ||
public function __invoke(DummyCommandWithDescription $command) | ||
{ | ||
} | ||
} |