19declare(strict_types=1);
36use Pimple\Container as PimpleContainer;
44 public static function dic(): self
55 private function init(ILIASContainer
$DIC): void
57 $this[UserSettingsRepository::class] = fn(
$c): UserSettingsRepository =>
58 new UserSettingsRepository(
65 new UserSettingsImplementation(
71 $c[UserSettingsRepository::class]
73 $this[StartingPointRepository::class] = fn(
$c): StartingPointRepository =>
74 new StartingPointRepository(
82 $c[UserSettingsRepository::class]
84 $this[ProfileDataRepository::class] = fn(
$c): ProfileDataRepository =>
85 new ProfileDataRepository(
87 $DIC[
'resource_storage'],
88 $c[ProfileFieldsConfigurationRepository::class]
90 $this[ProfileFieldsConfigurationRepository::class] = fn(
$c): ProfileFieldsConfigurationRepository =>
91 new ProfileFieldsConfigurationRepository(
101 new Standard\
Title(),
105 $DIC[
'resource_storage'],
107 $DIC[
'http']->wrapper()->post(),
111 new Standard\
Roles(),
132 new Standard\
Email(),
134 new Standard\
Hobby(),
140 $this[
'profile.fields.changelisteners'] = fn(
$c): array =>
144 $this[Profile::class] = fn(
$c):
Profile =>
147 $c[ProfileFieldsConfigurationRepository::class],
148 $c[ProfileDataRepository::class]
150 $this[NewAccountMailRepository::class] = fn(
$c): NewAccountMailRepository =>
151 new NewAccountMailRepository(
$DIC[
'ilDB']);
Customizing of pimple-DIC for ILIAS.
init(ILIASContainer $DIC)
static isActivated()
Checks whether Map feature is activated.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...