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(
79 $c[UserSettingsConfigurationRepository::class],
80 $c[UserSettingsDataRepository::class]
82 $this[StartingPointRepository::class] = fn(
$c): StartingPointRepository =>
83 new StartingPointRepository(
91 $c[UserSettingsConfigurationRepository::class]
93 $this[UserSettingsDataRepository::class] = fn(
$c): UserSettingsDataRepository =>
94 new DatatabaseUserSettingsDataRepository(
97 $this[ProfileDataRepository::class] = fn(
$c): ProfileDataRepository =>
98 new DatabaseProfileDataRepository(
100 $DIC[
'resource_storage'],
101 $c[ProfileFieldsConfigurationRepository::class]
103 $this[ProfileFieldsConfigurationRepository::class] = fn(
$c): ProfileFieldsConfigurationRepository =>
104 new DatabaseProfileFieldsConfigurationRepository(
111 new Standard\
Alias(),
114 new Standard\
Title(),
118 $DIC[
'resource_storage'],
120 $DIC[
'http']->wrapper()->post(),
125 $DIC[
'ilObjDataCache']
147 new Standard\
Email(),
149 new Standard\
Hobby(),
156 $this[
'profile.fields.changelisteners'] = fn(
$c): array =>
160 $this[Profile::class] = fn(
$c):
Profile =>
163 $c[ProfileFieldsConfigurationRepository::class],
164 $c[ProfileDataRepository::class]
168 $c[ProfileFieldsConfigurationRepository::class],
169 $c[ProfileDataRepository::class],
170 $c[UserSettingsDataRepository::class],
171 $DIC[
'user']->getLoggedInUser(),
179 $c[EndpointFactory::class]
181 $this[NewAccountMailRepository::class] = fn(
$c): NewAccountMailRepository =>
182 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...