Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbbd806b

Browse files
committed
Nicolas' review
1 parentd996ad9 commitbbd806b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/Symfony/Component/Console/DependencyInjection/AddConsoleCommandPass.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ public function process(ContainerBuilder $container): void
5353
$invokableRef =newReference($id);
5454
$definition =$container->register($id .='.command',$class = Command::class)
5555
->addMethodCall('setCode', [$invokableRef]);
56+
}else {
57+
$invokableRef =null;
5658
}
5759

5860
$aliases =$tags[0]['command'] ??str_replace('%','%%',$class::getDefaultName() ??'');
@@ -105,7 +107,7 @@ public function process(ContainerBuilder $container): void
105107
$definition->addMethodCall('setHidden', [true]);
106108
}
107109

108-
if ($help &&isset($invokableRef)) {
110+
if ($help &&$invokableRef) {
109111
$definition->addMethodCall('setHelp', [str_replace('%','%%',$help)]);
110112
}
111113

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp