'onInitMailClientFactory', 'MailClientMimeMessageFormatter' => 'onInitMimeMessageFormatter', ]; } /** * @param ServiceContainer $container * * @return MailClientFactory */ public static function onInitMailClientFactory(ServiceContainer $container): MailClientFactory { return new MailClientFactory(); } /** * @param ServiceContainer $container * * @return MimeMessageFormatterInterface */ public static function onInitMimeMessageFormatter(ServiceContainer $container): MimeMessageFormatterInterface { return new MimeMessageFormatter(); } }