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

[Shipping] Removed unneeded composite resolver interface #5259

Conversation

Zales0123
Copy link
Member

Q A
Bug fix? yes
New feature? no
BC breaks? no
Related tickets
License MIT

Change proposed in this comment.

@pjedrzejewski pjedrzejewski added the Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.). label Jun 15, 2016

/**
* @author Arnaud Langlade <arn0d.dev@gamil.com>
*/
class ShippingMethodChoiceTypeSpec extends ObjectBehavior
{
function let(
CompositeMethodsResolverInterface $compositeMethodsResolver,
MethodsResolverInterface $compositeMethodsResolver,

Choose a reason for hiding this comment

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

This variable is called $compositeMethodsResolver but the interface is now MethodsResolverInterface. It's just a small thing but this now makes it seem like a composite methods resolver is expected to be injected in, even though that won't necessarily be true.

Similar occurrences elsewhere.

Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above.

@pjedrzejewski
Copy link
Member

@CarwynNelson Thanks for the review! :)

* @param ServiceRegistryInterface $calculators
* @param RepositoryInterface $repository
*/
public function __construct(
CompositeMethodsResolverInterface $compositeShippingMethodsResolver,
MethodsResolverInterface $compositeShippingMethodsResolver,
Copy link
Contributor

Choose a reason for hiding this comment

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

Then we should also rename the variable.

@Zales0123 Zales0123 force-pushed the remove-unneeded-composite-methods-resolver-interface branch from 53b89e7 to 39297e2 Compare June 15, 2016 11:14
@pjedrzejewski pjedrzejewski merged commit c1655e5 into Sylius:master Jun 15, 2016
@pjedrzejewski
Copy link
Member

Thank you Mateusz. :)

@Zales0123 Zales0123 deleted the remove-unneeded-composite-methods-resolver-interface branch October 6, 2016 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants