-
Notifications
You must be signed in to change notification settings - Fork 89
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] Refactor customer actions to use command providers #493
Conversation
c6b0d34
to
0816f5c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rebase needed
$this->bus->dispatch(new GenerateResetPasswordToken($request->request->get('email'))); | ||
$this->bus->dispatch(new SendResetPasswordToken($request->request->get('email'), $channel->getCode())); | ||
$this->bus->dispatch($this->generateResetPasswordTokenCommandProvider->getCommand($request)); | ||
$this->bus->dispatch($this->sendResetPasswordTokenCommandProvider->getCommand($request, $channel)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could also refactor this action to be based on events in next iteration
{ | ||
/** @var string */ | ||
protected $token; | ||
|
||
public function __construct(Request $request) | ||
private function __construct(Request $request) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quick though. As these classes are meant to be extended, maybe we should define constructors as protected so that they will be usable from child classes.
3b1467c
to
dfe7ae2
Compare
dfe7ae2
to
242ed10
Compare
…ors (GSadee) This PR was merged into the 1.0-dev branch. Discussion ---------- Based on #496 According to #493 (diff) Commits ------- df56a31 Change from private to protected for requests constructors
No description provided.