User Group add() and delete() are deprecated. The docs say to “use the AddGroupCommand and the command bus”. Is there any example or documentation how to use them to add and delete groups? This is outdated:
November 5, 2021, 12:16pm
Something like that:
$app = Facade::getFacadeApplication();
$command = new AddGroupCommand();
$group = $app->executeCommand($command);
$command = new DeleteGroupCommand($group->getGroupID());
@Parasek , thank you!
But I think we’ll soon be writing petitions too
Why deprecate a 1-line piece of code if it already does that? Why remove $group->add() and $group->delete()? Now I have to write 10 lines of code instead of 2!