src/mako/gatekeeper/adapters/Adapter.php
public function createUser(string $email, string $username, string $password, bool $activate = false, array $properties = []): User
	{
		$properties =
		[
			'email'     => $email,
			'username'  => $username,
			'password'  => $password,
			'activated' => $activate ? 1 : 0,
		] + $properties;

		return $this->userRepository->createUser($properties);
	}
public function createUser(string $email, string $username, string $password, bool $activate = false, array $properties = []): User
	{
		$properties =
		[
			'email'     => $email,
			'username'  => $username,
			'password'  => $password,
			'activated' => $activate ? 1 : 0,
		] + $properties;

		return $this->userRepository->createUser($properties);
	}
public function createUser ( string $ email , string $ username , string $ password , bool $ activate = false , array $ properties = [ ] ) : User { $ properties = [ 'email' => $ email , 'username' => $ username , 'password' => $ password , 'activated' => $ activate ? 1 : 0 , ] + $ properties ; return $ this -> userRepository -> createUser ( $ properties ) ; }
Creates a new user and returns the user object.

@param  string                              $email      Email address
@param  string                              $username   Username
@param  string                              $password   Password
@param  bool                                $activate   Will activate the user if set to true
@param  array                               $properties Additional user properties
@return \mako\gatekeeper\entities\user\User
Creates a new user and returns the user object .