The callback for the group register and reregister event.
@param \CharlotteDunois\Livia\Commands\CommandGroup  $group
@return void
510595
function callbackGroupRegister(\CharlotteDunois\Livia\Commands\CommandGroup $group) {
        foreach($this->settings as $guild => $settings) {
            if($guild !== 'global' && !$this->client->guilds->has($guild)) {
                continue;
            }
            
            $this->setupGuildGroup($guild, $group, $settings);
        }
    }
1212058
public function removeGroup(Group $group)
    {
        $this->hasGroupsProperty();

        if ($this->groups->contains($group)) {
            $this->groups->removeElement($group);
        }
    }
367993
protected function group($group)
    {
        return $this->dispatcher->run($group, $this->assets, $this->path);
    }
566082
public function joinGroup(int $fd, Group $group)
    {
        $index = array_search($group, $this->map[$fd] ?? []);
        if(false === $index)
        {
            $this->map[$fd][] = $group;
        }
    }
471658
public function updateComponentGroupAction(ComponentGroup $group)
    {
        try {
            $group = execute(new UpdateComponentGroupCommand(
                $group,
                Binput::get('name'),
                $group->order,
                Binput::get('collapsed'),
                Binput::get('visible')
            ));
        } catch (ValidationException $e) {
            return cachet_redirect('dashboard.components.groups.edit', [$group->id])
                ->withInput(Binput::all())
                ->withTitle(sprintf('%s %s', trans('dashboard.notifications.whoops'), trans('dashboard.components.groups.edit.failure')))
                ->withErrors($e->getMessageBag());
        }

        return cachet_redirect('dashboard.components.groups.edit', [$group->id])
            ->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.components.groups.edit.success')));
    }
587882
public function render($group)
    {
        if ($this->hasGroupRenderer($group)) {
            return $this->callCustomRenderer($group);
        }

        if ($buildConfig = $this->getBuildConfig($group)) {
            return $this->renderWithCompiled($buildConfig, $group);
        }

        return $this->registry[$group]->setRenderer($this->renderer);
    }
1308338
public function rtcGroupAdd(string $group): self
    {
        if (!$this->rtcGroupExists($group)) {
            $this->runtimeCache[$group] = [];
        }

        return $this;
    }
838675
function callbackGroupStatusChange(?\CharlotteDunois\Yasmin\Models\Guild $guild, \CharlotteDunois\Livia\Commands\CommandGroup $group, bool $enabled) {
        if(!empty($this->setup[$this->getGuildID($guild)])) {
            return;
        }
        
        $this->set($guild, 'group-'.$group->id, $enabled);
    }
209809
public function registerGroup()
    {
        $app = $this->app;

        $app->bind('Stevemo\Cpanel\Group\Repo\CpanelGroupInterface', function($app)
        {
            return new GroupRepository($app['sentry'], $app['events']);
        });

        $app->bind('Stevemo\Cpanel\Group\Form\GroupFormInterface', function($app)
        {
            return new GroupForm(
                new GroupValidator($app['validator'], new MessageBag),
                $app->make('Stevemo\Cpanel\Group\Repo\CpanelGroupInterface')
            );
        });
    }
457660
public function addGroup(Group $group)
    {
        $this->groups->put($group->getName(), $group);

        return $this;
    }
153382
protected function registerCommands(array $commands)
    {
        foreach (array_keys($commands) as $command) {
            call_user_func_array([$this, "register{$command}Command"], []);
        }

        $this->commands(array_values($commands));
    }
771218
public function handle(RemoveComponentGroupCommand $command)
    {
        $group = $command->group;

        event(new ComponentGroupWasRemovedEvent($this->auth->user(), $group));

        // Remove the group id from all component.
        $group->components->map(function ($component) {
            $component->update(['group_id' => 0]);
        });

        $group->delete();
    }
918022
public function registerCommand($commandClass)
    {
        $command = $this->container->make($commandClass);

        $command->setContainer($this->container);

        return $this->symfony->add($command);
    }
1282801
public function assignGroup($group)
    {
        if (Group::count() === 0) {
            throw new \Exception('No groups have been created.');
        }

        return $this->groups()->save(
            Group::whereName($group)->firstOrFail()
        );
    }
661942
public function setGroup($group)
    {
        //Argument 1 must be a string or array
        Argument::i()->test(1, 'string', 'array');
            
        if (is_string($group)) {
            $group = array($group);
        }
        
        $this->group = $group;
        return $this;
    }
962808
protected function registerResetCommand()
    {
        $this->app->singleton('command.migrate.reset', function ($app) {
            return $this->getCommandWithPackage(new ResetCommand($app->make('migrator')));
        });
    }
158967
public function addGroup($group)
    {
        if (null === $this->groups) {
            $this->groups = [];
        }
        if (!in_array($group, $this->groups)) {
            $this->groups[] = $group;
        }

        return $this;
    }