Skip to content

Commit

Permalink
[DependencyInjection] fixed a test
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed May 1, 2012
1 parent 26f933e commit 53dadbb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ private function addServiceInstance($id, $definition)
throw new RuntimeException('Factory method requires a factory service or factory class in service definition for '.$id);
}
} elseif (false !== strpos($class, '$')) {
$code = sprintf(" \$class = %s;\n $return{$instantiation}new \$class(%s);\n", $class, implode(', ', $arguments));
$code = sprintf(" \$class = %s;\n\n $return{$instantiation}new \$class(%s);\n", $class, implode(', ', $arguments));
} else {
$code = sprintf(" $return{$instantiation}new \\%s(%s);\n", substr(str_replace('\\\\', '\\', $class), 1, -1), implode(', ', $arguments));
}
Expand Down

0 comments on commit 53dadbb

Please sign in to comment.