51 : void
52 {
55 };
56
60 $c->mail()->templateEngineFactory()
61 );
62 };
63
64 $container[TemplateEngineFactoryInterface::class] =
static function (Container
$c): TemplateEngineFactoryInterface {
65 return $c->mail()->templateEngineFactory();
66 };
67
68 $container[MimeMailService::class] =
static function (Container
$c): MimeMailService {
69 return new MimeMailService(
$c);
70 };
71
74 };
75
79 $c->mail()->templateEngineFactory()
80 );
81 };
82
86 $c->mail()->templateEngineFactory()
87 );
88 };
89
92 $c->mail()->templateEngineFactory()->getBasicEngine()
93 );
94 };
95
96 $container[AutoresponderService::class] =
static function (Container
$c): AutoresponderService {
97 return new AutoresponderServiceImpl(
98 (
int)
$c->settings()->get(
99 'mail_auto_responder_idle_time',
101 ),
102 false,
103 new AutoresponderDatabaseRepository(
$c->database()),
104 (new DataFactory())->clock()->utc()
105 );
106 };
107
110 $c->mail()->templateEngineFactory()->getBasicEngine()
111 );
112 };
113
114 $container[
'mail.template_engine.factory'] =
static function (Container
$c): MustacheTemplateEngineFactory {
115 return new MustacheTemplateEngineFactory();
116 };
117
118 $container[MailAssets::class] =
static function (Container
$c): MailAssets {
119 $root = rtrim(
$c->iliasIni()->readVariable(
'server',
'absolute_path'),
'/');
120
121 return new SkinnedMailAssets(
122 new PublishedMailAssets($root . '/public'),
123 $root . '/public/Customizing/skin',
124 new LogoByFileName(),
125 $c->clientIni()->readVariable(
'layout',
'skin'),
126 $c->clientIni()->readVariable(
'layout',
'style')
127 );
128 };
129
130 $container[PlainTextMailBodyComposer::class] =
static fn(): PlainTextMailBodyComposer =>
131 new PlainTextMailBodyComposer();
132
133 $container[HtmlMailBodyComposer::class] =
static function (Container
$c): HtmlMailBodyComposer {
134 return new HtmlMailBodyComposer(
135 $c[MailAssets::class],
136 $c[PlainTextMailBodyComposer::class],
138 $c->ui()->renderer(),
140 new DataFactory(),
143 );
144 };
145
146 $container[MailBodyComposer::class] =
static function (Container
$c): MailBodyComposer {
147 return new ConfiguredMailBodyComposer(
149 static fn(): MailBodyComposer =>
$c[HtmlMailBodyComposer::class],
150 $c[PlainTextMailBodyComposer::class]
151 );
152 };
153
154 $container[
'mail.signature.service'] =
static function (Container
$c): MailSignatureService {
155 return new MailSignatureService(
156 $c->mail()->templateEngineFactory(),
160 );
161 };
162 }
Customizing of pimple-DIC for ILIAS.
const int AUTO_RESPONDER_DEFAULT_IDLE_TIME