10000 Apply suggestions from code review · symfony/symfony@ade53e7 · GitHub
[go: up one dir, main page]

Skip to content

Commit ade53e7

Browse files
Apply suggestions from code review
Co-authored-by: Nicolas Grekas <nicolas.grekas@gmail.com>
1 parent f2259e1 commit ade53e7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Symfony/Component/DependencyInjection/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ CHANGELOG
88
* Support `@>` as a shorthand for `!service_closure` in yaml files
99
* Don't skip classes with private constructor when autodiscovering
1010
* Add `Definition::addExcludeTag()` and `ContainerBuilder::findExcludedServiceIds()`
11-
for auto-configuration of classes excluded from the service container.
11+
for auto-configuration of classes excluded from the service container
1212

1313
7.2
1414
---

src/Symfony/Component/DependencyInjection/ContainerBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,7 @@ public function findExcludedServiceIds(string $tagName): array
13741374
foreach ($this->getDefinitions() as $id => $definition) {
13751375
if ($definition->hasTag($tagName)) {
13761376
if (!$definition->hasTag('container.excluded')) {
1377-
throw new InvalidArgumentException(\sprintf('The service "%s" tagged "%s" must have the "container.excluded" tag.', $id, $tagName));
1377+
throw new InvalidArgumentException(\sprintf('The service "%s" tagged "%s" is missing the "container.excluded" tag.', $id, $tagName));
13781378
}
13791379
$tags[$id] = $definition->getTag($tagName);
13801380
}

src/Symfony/Component/DependencyInjection/Definition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ public function addTag(string $name, array $attributes = []): static
458458
/**
459459
* Adds a tag to the definition and marks it as excluded.
460460
*
461-
* This definitions must be processed using {@see ContainerBuilder::findExcludedServiceIds()}
461+
* This definitions should be processed using {@see ContainerBuilder::findExcludedServiceIds()}
462462
*
463463
* @return $this
464464
*/

0 commit comments

Comments
 (0)
0