/** * Create a new TranslationHelper object * * @param ApplicationBootstrap $bootstrap The application's bootstrap object * @param string $locale The locale to be used by this helper */ public function __construct(ApplicationBootstrap $bootstrap, $locale) { $this->moduleMgr = $bootstrap->getModuleManager()->loadEnabledModules(); $this->appDir = $bootstrap->getApplicationDir(); $this->libDir = $bootstrap->getLibraryDir('Icinga'); $this->locale = $locale; }