示例#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;
 }
示例#2
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;
     }
 }
示例#3
0
文件: Katana.php 项目: hlogeon/Katana
 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;
     }
 }