@@ 725-731 (lines=7) @@ | ||
722 | // $this->_cache_on is toggled during the recursive loading that can occur with dependency injection |
|
723 | // $cache is controlled by individual calls to separate Registry loader methods like load_class() |
|
724 | // $load_only is also controlled by individual calls to separate Registry loader methods like load_file() |
|
725 | if ($this->_cache_on && $cache && ! $load_only) { |
|
726 | // return object if it's already cached |
|
727 | $cached_class = $this->_get_cached_class($class_name, $addon); |
|
728 | if ($cached_class !== null) { |
|
729 | return $cached_class; |
|
730 | } |
|
731 | } |
|
732 | // obtain the loader method from the dependency map |
|
733 | $loader = $this->_dependency_map->class_loader($class_name); |
|
734 | // instantiate the requested object |
|
@@ 838-844 (lines=7) @@ | ||
835 | // $this->_cache_on is toggled during the recursive loading that can occur with dependency injection |
|
836 | // $cache is controlled by individual calls to separate Registry loader methods like load_class() |
|
837 | // $load_only is also controlled by individual calls to separate Registry loader methods like load_file() |
|
838 | if ($this->_cache_on && $cache && ! $load_only) { |
|
839 | // return object if it's already cached |
|
840 | $cached_class = $this->_get_cached_class($class_name, $class_prefix); |
|
841 | if ($cached_class !== null) { |
|
842 | return $cached_class; |
|
843 | } |
|
844 | } |
|
845 | // if the class doesn't already exist.. then we need to try and find the file and load it |
|
846 | if (! $class_exists) { |
|
847 | // get full path to file |