Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DependencyInjection] replace alias in factory services #17867

Merged
merged 1 commit into from Feb 23, 2016

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Feb 20, 2016

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #17864
License MIT
Doc PR

@@ -122,4 +124,13 @@ private function updateArgumentReferences(array $arguments, $currentId, $newId)

return $arguments;
}

private function updateFactoryServiceReference($factoryService, $currentId, $newId)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why introducing a new method if it is as short and only used one time?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand now, the 2.7 version has more code, so looks fine to me as it will ease merging.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, we can indeed inline this for the 2.3 fix. I have no hard feelings about it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep it like this.

@stof
Copy link
Member

stof commented Feb 22, 2016

Actually, 2.7 will need both this code and the code added in the other PR (as 2.7 has both the new factory and the old factory-service features).
So this could be inlined as these would still stay 2 separate methods in 2.7

@fabpot
Copy link
Member

fabpot commented Feb 23, 2016

Thank you @xabbuh.

@fabpot fabpot merged commit 56f8798 into symfony:2.3 Feb 23, 2016
fabpot added a commit that referenced this pull request Feb 23, 2016
…abbuh)

This PR was merged into the 2.3 branch.

Discussion
----------

[DependencyInjection] replace alias in factory services

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #17864
| License       | MIT
| Doc PR        |

Commits
-------

56f8798 replace alias in factory services
@xabbuh xabbuh deleted the issue-17864-2.3 branch February 23, 2016 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants