Esempio n. 1
0
 public function __construct(App $app)
 {
     $this->app = $app;
     $this->coreAppDir = $app->getApplicationDir('clicommands');
 }
 /**
  * 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;
 }