19 declare(strict_types=1);
33 private readonly
string $id,
45 $this->container->ui(),
46 $this->container->language()
49 $this->container->language()->loadLanguageModule(
'rbac');
50 $this->container->language()->loadLanguageModule(
'meta');
52 $required = fn(array $options):
Constraint => $this->container->refinery()->custom()->constraint(
53 static fn(?
string $s):
bool => $s !== null && isset($options[$s]),
54 static fn():
string => $ui->txt(
'msg_input_is_required')
58 'usr_global_role' =>
new RoleDefinition($ui, $this->container[
'ilObjDataCache'], $this->container->rbac()->review(), $required),
59 'usr_language' =>
new UserLanguageDefinition($ui, $this->container->language()->getInstalledLanguages(), $required),
67 'html' => fn($x) => $this->container->ui()->factory()->legacy($x->value()),
A constraint encodes some resrtictions on values.
Customizing of pimple-DIC for ILIAS.
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
__construct(private readonly string $id, private readonly Container $container)