8000 minor #20322 [DependencyInjection] Remove old code in XML loader (hason) · symfony/symfony@1c6093e · GitHub
[go: up one dir, main page]

Skip to content

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

Appearance settings

Commit 1c6093e

Browse files
minor #20322 [DependencyInjection] Remove old code in XML loader (hason)
This PR was merged into the 3.1 branch. Discussion ---------- [DependencyInjection] Remove old code in XML loader | Q | A | ------------- | --- | Branch? | 3.1 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Commits ------- d090159 [DependencyInjection] Remove old code in XML loader
2 parents 0dc1a3d + d090159 commit 1c6093e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ private function parseDefinition(\DOMElement $service, $file)
152152

153153
foreach (array('class', 'shared', 'public', 'synthetic', 'lazy', 'abstract') as $key) {
154154
if ($value = $service->getAttribute($key)) {
155-
$method = 'set'.str_replace('-', '', $key);
155+
$method = 'set'.$key;
156156
$definition->$method(XmlUtils::phpize($value));
157157
}
158158
}

0 commit comments

Comments
 (0)
0