Skip to content

Conversation

MattBred
Copy link
Contributor

@mglaman
Copy link
Contributor

mglaman commented Oct 14, 2016

Failures are phpcs related

@mglaman
Copy link
Contributor

mglaman commented Oct 25, 2016

@bojanz this looks good.
@MattBred I did a rebase and fixed up commits for you.

/**
* {@inheritdoc}
*/
public function addResolver(CheckoutFlowResolverInterface $resolver, $priority) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove $priority parameter, we removed this in HEAD

* {@inheritdoc}
*/
public function addResolver(CheckoutFlowResolverInterface $resolver, $priority) {
$this->resolvers[$priority] = $resolver;
Copy link
Contributor

Choose a reason for hiding this comment

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

s/[$priority]/[]

}

return $order->checkout_flow->entity;
return $this->chainCheckoutFlowResolver->resolve($order);
Copy link
Contributor

Choose a reason for hiding this comment

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

This needs if ($order->checkout_flow->isEmpty()) {

* {@inheritdoc}
*/
public function resolve(OrderInterface $order) {
if ($order->checkout_flow->isEmpty()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Move check to heckoutOrderManager

@mglaman mglaman self-assigned this Jan 11, 2017
@mglaman mglaman requested a review from bojanz January 11, 2017 21:10
@bojanz bojanz force-pushed the 8.x-2.x branch 2 times, most recently from 68e6e5f to ac287b7 Compare January 12, 2017 04:31
}

public function __sleep() {
return parent::__sleep(); // TODO: Change the autogenerated stub
Copy link
Contributor

Choose a reason for hiding this comment

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

This is going to be removed. But in debugging the __sleep method of the parent is invoking \Drupal::service which says that $container is empty.

@bojanz bojanz merged commit f4fd6e1 into drupalcommerce:8.x-2.x Jan 19, 2017
@bojanz bojanz changed the title Checkout flow resolver 2710989 Create a resolver API for picking a checkout flow Jan 19, 2017
bradjones1 pushed a commit to bradjones1/commerce that referenced this pull request May 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants