From b82fd763a9d39c7a196fb18e6cb40d1ac1dfc76b Mon Sep 17 00:00:00 2001 From: Tac Tacelosky Date: Tue, 20 Feb 2024 10:04:44 -0500 Subject: [PATCH] add UserManager ROLES as a suggestion Of course, UserManager now needs const ROLES=['ROLE_ADMIN','ROLE_USER'] --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 22ee5b2..2c7686e 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ final class CreateUserCommand extends InvokableServiceCommand #[Argument] string $password, - #[Option(name: 'role', shortcut: 'r')] + #[Option(name: 'role', shortcut: 'r', suggestions: UserMananger:ROLES)] array $roles, ): void { $userManager->createUser($email, $password, $roles);