Beispiel #1
0
 /**
  * Register autoloader.
  * @return void
  */
 public function register()
 {
     $cache = $this->getCache();
     $key = $this->getKey();
     if (isset($cache[$key])) {
         $this->list = $cache[$key];
     } else {
         $this->rebuild();
     }
     parent::register();
 }
Beispiel #2
0
 /**
  * Register autoloader.
  * @return void
  */
 public function register()
 {
     $cache = $this->getCache();
     $key = $this->getKey();
     if (isset($cache[$key])) {
         $this->list = $cache[$key];
     } else {
         $this->rebuild();
     }
     if (isset($this->list[strtolower(__CLASS__)]) && class_exists('Nette\\Loaders\\NetteLoader', FALSE)) {
         NetteLoader::getInstance()->unregister();
     }
     parent::register();
 }
Beispiel #3
0
 /**
  * Register autoloader.
  * @return RobotLoader  provides a fluent interface
  */
 public function register()
 {
     $this->classes = $this->getCache()->load($this->getKey(), new Nette\Callback($this, '_rebuildCallback'));
     parent::register();
     return $this;
 }
Beispiel #4
0
 /**
  * Register autoloader.
  * @param  bool  prepend autoloader?
  * @return RobotLoader  provides a fluent interface
  */
 public function register($prepend = FALSE)
 {
     $this->list = $this->getCache()->load($this->getKey(), new Nette\Callback($this, '_rebuildCallback'));
     parent::register($prepend);
     return $this;
 }
Beispiel #5
0
 /**
  * Register autoloader.
  * @param  bool  prepend autoloader?
  * @return self
  */
 public function register($prepend = FALSE)
 {
     $this->classes = $this->getCache()->load($this->getKey(), array($this, '_rebuildCallback'));
     parent::register($prepend);
     return $this;
 }
Beispiel #6
0
 function register()
 {
     $this->list = $this->getCache()->load($this->getKey(), callback($this, '_rebuildCallback'));
     parent::register();
     return $this;
 }
Beispiel #7
0
Nette\NotSupportedException("PHP extension Tokenizer is not loaded.");}}function
register(){$this->list=$this->getCache()->load($this->getKey(),callback($this,'_rebuildCallback'));parent::register();return$this;}function