19declare(strict_types=1);
43use Pimple\Container as PimpleContainer;
52 public static function dic(): self
63 private function init(ILIASContainer
$DIC): void
65 $this[UserSettingsConfigurationRepository::class] = fn(
$c): UserSettingsConfigurationRepository =>
66 new DatatabaseUserSettingsConfigurationRepository(
73 new UserSettingsImplementation(
78 $c[UserSettingsConfigurationRepository::class],
79 $c[UserSettingsDataRepository::class]
81 $this[StartingPointRepository::class] = fn(
$c): StartingPointRepository =>
82 new StartingPointRepository(
90 $c[UserSettingsConfigurationRepository::class]
92 $this[UserSettingsDataRepository::class] = fn(
$c): UserSettingsDataRepository =>
93 new DatatabaseUserSettingsDataRepository(
96 $this[ProfileDataRepository::class] = fn(
$c): ProfileDataRepository =>
97 new DatabaseProfileDataRepository(
99 $DIC[
'resource_storage'],
100 $c[ProfileFieldsConfigurationRepository::class]
102 $this[ProfileFieldsConfigurationRepository::class] = fn(
$c): ProfileFieldsConfigurationRepository =>
103 new DatabaseProfileFieldsConfigurationRepository(
110 new Standard\
Alias(),
113 new Standard\
Title(),
117 $DIC[
'resource_storage'],
119 $DIC[
'http']->wrapper()->post(),
124 $DIC[
'ilObjDataCache']
146 new Standard\
Email(),
148 new Standard\
Hobby(),
155 $this[
'profile.fields.changelisteners'] = fn(
$c): array =>
159 $this[Profile::class] = fn(
$c):
Profile =>
162 $c[ProfileFieldsConfigurationRepository::class],
163 $c[ProfileDataRepository::class]
167 $c[ProfileFieldsConfigurationRepository::class],
168 $c[ProfileDataRepository::class],
169 $c[UserSettingsDataRepository::class],
170 $DIC[
'user']->getLoggedInUser(),
178 $c[EndpointFactory::class]
180 $this[NewAccountMailRepository::class] = fn(
$c): NewAccountMailRepository =>
181 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...