'onInitUserConfigService', 'UserPermissionService' => 'onInitUserPermissionService', ]; } /** * @param ContainerInterface $container * * @return UserConfigService */ public static function onInitUserConfigService(ContainerInterface $container) { return new UserConfigService($container->get('Database')); } /** * @param ContainerInterface $container * * @return UserPermissionService */ public static function onInitUserPermissionService(ContainerInterface $container) { return new UserPermissionService($container->get('Database')); } }