'onInitSystemHealthService', 'SystemHealthGateway' => 'onInitSystemHealthGateway', ]; } /** * @return array */ public static function registerJavascript() { return [ 'SystemHealth' => [ './classes/Modules/SystemHealth/www/css/systemhealth.js', ], ]; } /** * @return array */ public static function registerStylesheets() { return [ 'Voucher' => [ './classes/Modules/SystemHealth/www/css/systemhealth.css', ], ]; } /** * @param ContainerInterface $container * * @return SystemHealthGateway */ public static function onInitSystemHealthGateway(ContainerInterface $container) { return new SystemHealthGateway($container->get('Database')); } /** * @param ContainerInterface $container * * @return SystemHealthService */ public static function onInitSystemHealthService(ContainerInterface $container) { return new SystemHealthService( $container->get('Database'), $container->get('SystemHealthGateway'), $container->get('NotificationService') ); } }