Changeset 8702
- Timestamp:
- 04/30/08 21:22:51 (4 months ago)
- Files:
-
- branches/1.1/lib/autoload/sfAutoload.class.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/autoload/sfAutoload.class.php
r7614 r8702 23 23 { 24 24 static protected 25 $instance = null; 25 $freshCache = false, 26 $instance = null; 26 27 27 28 protected 28 29 $overriden = array(), 29 $classes = array();30 $classes = array(); 30 31 31 32 protected function __construct() … … 87 88 public function reloadClasses($force = false) 88 89 { 90 // only (re)load the autoloading cache once per request 91 if (self::$freshCache) 92 { 93 return; 94 } 95 89 96 $configuration = sfProjectConfiguration::getActive(); 90 97 if (!$configuration || !$configuration instanceof sfApplicationConfiguration) … … 106 113 $this->classes[$class] = $path; 107 114 } 115 116 self::$freshCache = true; 108 117 } 109 118 … … 123 132 } 124 133 125 if (self::loadClass($class)) 126 { 127 return true; 128 } 129 130 return false; 134 return self::loadClass($class); 131 135 } 132 136