'onInitTicketFormatter', 'TicketImportHelperFactory' => 'onInitTicketImportHelperFactory', ]; } /** * @param ContainerInterface $container * * @return TicketFormatter */ public static function onInitTicketFormatter(ContainerInterface $container): TicketFormatter { return new TicketFormatter(); } /** * @param ContainerInterface $container * * @return TicketImportHelperFactory */ public static function onInitTicketImportHelperFactory(ContainerInterface $container): TicketImportHelperFactory { /** @var LegacyApplication $app */ $app = $container->get('LegacyApplication'); /** @var Ticket $ticketModule */ $ticketModule = $ticketModule = $app->erp->LoadModul('ticket'); return new TicketImportHelperFactory( $app->DB, $app->erp, $app->Conf, $ticketModule, $container->get('TicketFormatter'), $container->get('Logger') ); } }