Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9687b0e

Browse files
committed
declare service for debug validator command
1 parent f281244 commit 9687b0e

File tree

1 file changed

+7
-0
lines changed
  • src/Symfony/Bundle/FrameworkBundle/Resources/config

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
use Symfony\Component\Messenger\Command\SetupTransportsCommand;
4848
use Symfony\Component\Messenger\Command\StopWorkersCommand;
4949
use Symfony\Component\Translation\Command\XliffLintCommand;
50+
use Symfony\Component\Validator\Command\DebugCommand as ValidatorDebugCommand;
5051

5152
return static function (ContainerConfigurator $container) {
5253
$container->services()
@@ -225,6 +226,12 @@
225226
])
226227
->tag('console.command', ['command' => 'translation:update'])
227228

229+
->set('console.command.validator_debug', ValidatorDebugCommand::class)
230+
->args([
231+
service('debug.validator'),
232+
])
233+
->tag('console.command', ['command' => 'debug:validator'])
234+
228235
->set('console.command.workflow_dump', WorkflowDumpCommand::class)
229236
->tag('console.command', ['command' => 'workflow:dump'])
230237

0 commit comments

Comments
 (0)