10000 Fix registering lazy command services with autoconfigure enabled · symfony/symfony@e29306b · GitHub
[go: up one dir, main page]

Skip to content

Commit e29306b

Browse files
author
Robin Chalas
committed
Fix registering lazy command services with autoconfigure enabled
1 parent 1e88b35 commit e29306b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,6 @@ public function process(ContainerBuilder $container)
7575
$aliases = array();
7676

7777
foreach ($tags as $tag) {
78-
if (!isset($tag['command'])) {
79-
throw new InvalidArgumentException(sprintf('Missing "command" attribute on tag "%s" for service "%s".', $this->commandTag, $id));
80-
}
81-
if ($commandName !== $tag['command']) {
82-
throw new InvalidArgumentException(sprintf('The "command" attribute must be the same on each "%s" tag for service "%s".', $this->commandTag, $id));
83-
}
8478
if (isset($tag['alias'])) {
8579
$aliases[] = $tag['alias'];
8680
$lazyCommandMap[$tag['alias']] = $id;

0 commit comments

Comments
 (0)
0