Skip to content

Commit

Permalink
Revert "added RobotLoader::$rememberMissing; refactoring"
Browse files Browse the repository at this point in the history
This reverts commit 25f47fe.
  • Loading branch information
dg committed Sep 29, 2010
1 parent 14a64ef commit ecc11df
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Nette/Loaders/RobotLoader.php
Expand Up @@ -35,9 +35,6 @@ class RobotLoader extends AutoLoader
/** @var bool */
public $autoRebuild = FALSE;

/** @var bool */
public $rememberMissing = FALSE;

/** @var array */
private $list = array();

Expand Down Expand Up @@ -96,13 +93,13 @@ public function tryLoad($type)
$type = ltrim(strtolower($type), '\\'); // PHP namespace bug #49143

if (!isset($this->list[$type]) || ($this->list[$type] !== FALSE && !is_file($this->list[$type][0]))) {
$this->list[$type] = $this->rememberMissing ? FALSE : NULL;
$this->list[$type] = FALSE;

if ($this->autoRebuild) {
if (!$this->rebuilt) {
$this->rebuild();
} elseif (isset($this->list[$type])) {
if ($this->rebuilt) {
$this->getCache()->save($this->getKey(), $this->list);
} else {
$this->rebuild();
}
}
}
Expand Down

0 comments on commit ecc11df

Please sign in to comment.