protected function classFile($className) { $classFile = preg_replace('#[_\\\\]#', '/', $className) . '.php'; foreach ($this->_paths as $path) { $classPath = "{$path}/{$classFile}"; if (file_exists($classPath)) { return $classPath; } } }