/** * Loads the class from the given file and stores the path into cache. * @param string $file Full path to the file * @param string $class Full name of the class * @return bool Always returns true * @throws \RuntimeException If the class was not defined in the included file */ protected function loadFile($file, $class) { parent::loadFile($file, $class); $this->cache[$class] = $file; $this->saveCache(); return true; }