protected function registerVirtualGroupRepository()
{
$this->app->singleton(['xe.user.virtualGroups' => VirtualGroupRepositoryInterface::class], function ($app) {
/** @var Closure $vGroups */
$vGroups = $app['config']->get('xe.group.virtualGroup.all');
/** @var Closure $getter */
$getter = $app['config']->get('xe.group.virtualGroup.getByUser');
return new VirtualGroupRepository($app['xe.users'], $vGroups(), $getter);
});
}