コード例 #1
0
ファイル: Katana.php プロジェクト: TexusDark/Katana
 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
ファイル: Katana.php プロジェクト: robske110/ImagicalMine
 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;
     }
 }