|
@@ 696-702 (lines=7) @@
|
| 693 |
|
// $this->_cache_on is toggled during the recursive loading that can occur with dependency injection |
| 694 |
|
// $cache is controlled by individual calls to separate Registry loader methods like load_class() |
| 695 |
|
// $load_only is also controlled by individual calls to separate Registry loader methods like load_file() |
| 696 |
|
if ($this->_cache_on && $cache && ! $load_only) { |
| 697 |
|
// return object if it's already cached |
| 698 |
|
$cached_class = $this->_get_cached_class($class_name, $addon); |
| 699 |
|
if ($cached_class !== null) { |
| 700 |
|
return $cached_class; |
| 701 |
|
} |
| 702 |
|
} |
| 703 |
|
// obtain the loader method from the dependency map |
| 704 |
|
$loader = $this->_dependency_map->class_loader($class_name); |
| 705 |
|
// instantiate the requested object |
|
@@ 806-812 (lines=7) @@
|
| 803 |
|
// $this->_cache_on is toggled during the recursive loading that can occur with dependency injection |
| 804 |
|
// $cache is controlled by individual calls to separate Registry loader methods like load_class() |
| 805 |
|
// $load_only is also controlled by individual calls to separate Registry loader methods like load_file() |
| 806 |
|
if ($this->_cache_on && $cache && ! $load_only) { |
| 807 |
|
// return object if it's already cached |
| 808 |
|
$cached_class = $this->_get_cached_class($class_name, $class_prefix); |
| 809 |
|
if ($cached_class !== null) { |
| 810 |
|
return $cached_class; |
| 811 |
|
} |
| 812 |
|
} |
| 813 |
|
// if the class doesn't already exist.. then we need to try and find the file and load it |
| 814 |
|
if (! $class_exists) { |
| 815 |
|
// get full path to file |