bump symfony to 5.4.21
adapt to the new EventDispatcher API - Symfony\Component\EventDispatcher => Symfony\Contracts\EventDispatcher - dispatch() arguments swap - execute() must return int
This commit is contained in:
committed by
Frédéric Guillot
parent
bb4b547ffe
commit
bd7f3d219d
@@ -18,7 +18,7 @@ class ResetPasswordCommand extends BaseCommand
|
||||
;
|
||||
}
|
||||
|
||||
protected function execute(InputInterface $input, OutputInterface $output)
|
||||
protected function execute(InputInterface $input, OutputInterface $output): int
|
||||
{
|
||||
$helper = $this->getHelper('question');
|
||||
$username = $input->getArgument('username');
|
||||
@@ -38,6 +38,7 @@ class ResetPasswordCommand extends BaseCommand
|
||||
if ($this->validatePassword($output, $password, $confirmation)) {
|
||||
$this->resetPassword($output, $username, $password);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
private function validatePassword(OutputInterface $output, $password, $confirmation)
|
||||
|
||||
Reference in New Issue
Block a user