mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 15:26:10 -06:00
#3189 emlak24 requirements
This commit is contained in:
parent
cb0152bfd2
commit
cc23e547c6
@ -4,10 +4,12 @@ class UserUpdated
|
|||||||
{
|
{
|
||||||
public $oldCustomerInfo;
|
public $oldCustomerInfo;
|
||||||
public $changes;
|
public $changes;
|
||||||
|
public $builder;
|
||||||
|
|
||||||
public function __construct($oldCustomerInfo, $changes)
|
public function __construct($oldCustomerInfo, $changes, $builder = null)
|
||||||
{
|
{
|
||||||
$this->oldCustomerInfo = $oldCustomerInfo;
|
$this->oldCustomerInfo = $oldCustomerInfo;
|
||||||
$this->changes = $changes;
|
$this->changes = $changes;
|
||||||
|
$this->builder = $builder;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2,11 +2,7 @@
|
|||||||
|
|
||||||
use Anomaly\Streams\Platform\Addon\Extension\ExtensionCollection;
|
use Anomaly\Streams\Platform\Addon\Extension\ExtensionCollection;
|
||||||
use Anomaly\Streams\Platform\Message\MessageBag;
|
use Anomaly\Streams\Platform\Message\MessageBag;
|
||||||
use Anomaly\UsersModule\User\Authenticator\Contract\AuthenticatorExtensionInterface;
|
|
||||||
use Anomaly\UsersModule\User\Contract\UserInterface;
|
|
||||||
use Anomaly\UsersModule\User\UserModel;
|
use Anomaly\UsersModule\User\UserModel;
|
||||||
use Illuminate\Http\RedirectResponse;
|
|
||||||
use Illuminate\Support\Facades\Redirect;
|
|
||||||
use Visiosoft\ProfileModule\Events\UserUpdated;
|
use Visiosoft\ProfileModule\Events\UserUpdated;
|
||||||
|
|
||||||
class ProfileFormHandler
|
class ProfileFormHandler
|
||||||
@ -72,7 +68,7 @@ class ProfileFormHandler
|
|||||||
|
|
||||||
$changes = $this->change($user, $parameters);
|
$changes = $this->change($user, $parameters);
|
||||||
|
|
||||||
event(new UserUpdated($oldCustomerInfo, $changes));
|
event(new UserUpdated($oldCustomerInfo, $changes, $builder));
|
||||||
|
|
||||||
$messages->success(trans('visiosoft.module.profile::message.success_update'));
|
$messages->success(trans('visiosoft.module.profile::message.success_update'));
|
||||||
}
|
}
|
||||||
@ -97,7 +93,7 @@ class ProfileFormHandler
|
|||||||
foreach ($validators as $validator) {
|
foreach ($validators as $validator) {
|
||||||
$valid = $validator->validate($fields);
|
$valid = $validator->validate($fields);
|
||||||
|
|
||||||
if ($valid['error']) {
|
if (isset($valid['error']) && $valid['error']) {
|
||||||
return $valid;
|
return $valid;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user