44 : void
45 {
48 };
49
53 $c->mail()->templateEngineFactory()
54 );
55 };
56
57 $container[TemplateEngineFactoryInterface::class] =
static function (Container
$c): TemplateEngineFactoryInterface {
58 return $c->mail()->templateEngineFactory();
59 };
60
61 $container[MimeMailService::class] =
static function (Container
$c): MimeMailService {
62 return new MimeMailService(
$c);
63 };
64
67 };
68
72 $c->mail()->templateEngineFactory()
73 );
74 };
75
79 $c->mail()->templateEngineFactory()
80 );
81 };
82
85 $c->mail()->templateEngineFactory()->getBasicEngine()
86 );
87 };
88
89 $container[AutoresponderService::class] =
static function (Container
$c): AutoresponderService {
90 return new AutoresponderServiceImpl(
91 (
int)
$c->settings()->get(
92 'mail_auto_responder_idle_time',
94 ),
95 false,
96 new AutoresponderDatabaseRepository(
$c->database()),
97 (new DataFactory())->clock()->utc()
98 );
99 };
100
103 $c->mail()->templateEngineFactory()->getBasicEngine()
104 );
105 };
106
109 };
110
111 $container[
'mail.template_engine.factory'] =
static function (Container
$c): MustacheTemplateEngineFactory {
112 return new MustacheTemplateEngineFactory();
113 };
114
115 $container[
'mail.signature.service'] =
static function (Container
$c): MailSignatureService {
116 return new MailSignatureService(
117 $c->mail()->templateEngineFactory(),
121 );
122 };
123 }
Customizing of pimple-DIC for ILIAS.
const int AUTO_RESPONDER_DEFAULT_IDLE_TIME