From 0b1a1864aa951a439463a96388e68037d4ae3812 Mon Sep 17 00:00:00 2001 From: Randall Wilk Date: Wed, 6 Mar 2024 11:03:57 -0600 Subject: [PATCH] Add uuid generator to the generator factory --- src/Support/GeneratorFactory.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Support/GeneratorFactory.php b/src/Support/GeneratorFactory.php index ba14286..6c6a673 100644 --- a/src/Support/GeneratorFactory.php +++ b/src/Support/GeneratorFactory.php @@ -8,6 +8,7 @@ use Rawilk\HumanKeys\Exceptions\InvalidGenerator; use Rawilk\HumanKeys\Generators\KsuidGenerator; use Rawilk\HumanKeys\Generators\SnowflakeGenerator; +use Rawilk\HumanKeys\Generators\UuidGenerator; class GeneratorFactory { @@ -29,6 +30,7 @@ public function generator(): Generator return match ($this->generator) { 'ksuid' => new KsuidGenerator, 'snowflake' => new SnowflakeGenerator, + 'uuid' => new UuidGenerator, default => throw InvalidGenerator::invalid($this->generator), }; }