mirror of
https://github.com/flarum/core.git
synced 2025-07-30 21:20:24 +02:00
Convert the rest of the API to new action architecture
Also make some tweaks: - Merge SerializeAction::$include and SerializeAction::$includeAvailable into a keyed boolean array - Set defaults for SerializeAction::$limit and $limitMax - Rename SerializeAction::$sortAvailable to $sortFields
This commit is contained in:
@@ -20,9 +20,9 @@ class RegisterUserCommandHandler
|
||||
// Before persistance, though, fire an event to give plugins an
|
||||
// opportunity to alter the post entity based on data in the command.
|
||||
$user = User::register(
|
||||
$command->username,
|
||||
$command->email,
|
||||
$command->password
|
||||
array_get($command->data, 'username'),
|
||||
array_get($command->data, 'email'),
|
||||
array_get($command->data, 'password')
|
||||
);
|
||||
|
||||
event(new UserWillBeSaved($user, $command));
|
||||
|
Reference in New Issue
Block a user