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

[Customer] Extract customer enabling logic to custom handler #487

Merged
merged 1 commit into from
Jul 24, 2019

Conversation

lchrusciel
Copy link
Member

No description provided.

@lchrusciel lchrusciel requested a review from a team as a code owner July 24, 2019 08:16

Assert::notNull($user);

$user->enable();
Copy link
Member

Choose a reason for hiding this comment

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

Don't we need a flush to the database? It was there in the previous implementation

Copy link
Member Author

Choose a reason for hiding this comment

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

No, as we have doctrine transaction over command bus and it will be flushed there.

@Zales0123 Zales0123 merged commit f11cc86 into Sylius:master Jul 24, 2019
@Zales0123
Copy link
Member

Thank you, Łukasz! 🎉

@lchrusciel lchrusciel deleted the enabling-customer branch July 24, 2019 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants