Beispiel #1
0
 public function initModules()
 {
     if ($this->getProperty("redirect.enable")) {
         $this->redirect = new RedirectEngine($this);
         $this->redirect->init();
         $this->modules[] = $this->redirect;
     }
     $this->console = new Console($this);
     $this->console->init();
     $this->modules[] = $this->console;
     $this->cache = new CacheEngine($this);
     $this->cache->init();
     $this->modules[] = $this->cache;
 }
Beispiel #2
0
 public function initModules()
 {
     if ($this->getProperty("redirect.enable")) {
         $this->redirect = new RedirectEngine($this);
         $this->redirect->init();
         $this->modules[] = $this->redirect;
     }
     //TODO: may be it would be better to check if module enabled for each module???
     $this->console = new Console($this);
     $this->console->init();
     $this->modules[] = $this->console;
     if ($this->getProperty('caching.enable')) {
         $this->cache = new CacheEngine($this);
         $this->cache->init();
         $this->modules[] = $this->cache;
     }
 }
Beispiel #3
0
 public function initModules()
 {
     //Load console first, as other modules use it.
     $this->console = new Console($this);
     $this->console->init();
     $this->modules[] = $this->console;
     if ($this->getProperty("redirect.enable")) {
         $this->redirect = new RedirectEngine($this);
         $this->redirect->init();
         $this->modules[] = $this->redirect;
     }
     if ($this->getProperty('caching.enable')) {
         $this->cache = new CacheEngine($this);
         $this->cache->init();
         $this->modules[] = $this->cache;
     }
 }