Ergo\ClassLoader::classFile PHP Method

classFile() protected method

Returns the class file for a particular class name
protected classFile ( $className ) : string
return string
    protected function classFile($className)
    {
        $classFile = preg_replace('#[_\\\\]#', '/', $className) . '.php';
        foreach ($this->_paths as $path) {
            $classPath = "{$path}/{$classFile}";
            if (file_exists($classPath)) {
                return $classPath;
            }
        }
    }