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

Skip to content

Commit d090159

Browse files
committed
[DependencyInjection] Remove old code in XML loader
1 parent 0dc1a3d commit d090159

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)