'onInitHocrParser', 'HocrDataExtractor' => 'onInitHocrDataExtractor', ]; } /** * @return HocrParser */ public static function onInitHocrParser(): HocrParser { return new HocrParser(); } /** * @param ContainerInterface $container * * @return HocrDataExtractor */ public static function onInitHocrDataExtractor(ContainerInterface $container): HocrDataExtractor { $app = $container->get('LegacyApplication'); return new HocrDataExtractor($container->get('HocrParser'), $app->erp->GetWaehrung()); } }