#[Package('core')]
class AdminConfigurationService{ /**
* @param AdminUser $user
*/
public function createAdmin(array
$user, Connection
$connection): void
{ $userProvisioner =
new UserProvisioner($connection);
$userProvisioner->
provision( $user['username'
],
$user['password'
],
[ 'firstName' =>
$user['firstName'
],
'lastName' =>
$user['lastName'
],
'email' =>
$user['email'
],
] );
}}