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

add validation to verify account action and update swagger.yml #555

Merged
merged 9 commits into from
Sep 22, 2019

Conversation

CSchulz
Copy link
Contributor

@CSchulz CSchulz commented Sep 22, 2019

No description provided.

@CSchulz CSchulz requested a review from a team as a code owner September 22, 2019 10:29
Copy link
Member

@mamazu mamazu left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution. It would be great if you could improve the code in some ways.


namespace Sylius\ShopApiPlugin\Validator\Customer;

use Sylius\Component\User\Repository\UserRepositoryInterface;
Copy link
Member

Choose a reason for hiding this comment

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

Please use the interface from the core.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is only this interface. Do you mean the class?

Copy link
Member

Choose a reason for hiding this comment

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

We should use a core interface

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't know which one you mean. The UserRepositoryInterface from the user component is the only one, I have found.

Copy link
Member

Choose a reason for hiding this comment

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

Ok, my bad.

tests/Controller/Customer/VerifyApiTest.php Outdated Show resolved Hide resolved
@lchrusciel lchrusciel merged commit 99cc076 into Sylius:master Sep 22, 2019
@lchrusciel
Copy link
Member

Thank you, @CSchulz! 🎉

@CSchulz CSchulz deleted the verify-account branch September 22, 2019 14:18
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.

None yet

3 participants