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

Appearance settings

Commit 1c6093e

Browse filesBrowse 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
Copy full SHA for 1c6093e

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.