public function findClassName($className)
    {
        if (!empty($this->lookupCache->classes[$className])) {
            return $this->lookupCache->classes[$className];
        }

        if (class_exists($className)) return $className;
        $startsWithSlash = ($className[0] == '\\');

        foreach ($this->searchOrder as $namespace)
        {
            $testClass = '\\' . $namespace;
            if (!$startsWithSlash) {
                $testClass .= '\\';
            }

            $testClass .= $className;

            if (class_exists($testClass)) {
                $this->lookupCache->classes[$className] = $testClass;
                return $testClass;
            }
        }

        return null;
    }
public function findClassName($className)
    {
        if (!empty($this->lookupCache->classes[$className])) {
            return $this->lookupCache->classes[$className];
        }

        if (class_exists($className)) return $className;
        $startsWithSlash = ($className[0] == '\\');

        foreach ($this->searchOrder as $namespace)
        {
            $testClass = '\\' . $namespace;
            if (!$startsWithSlash) {
                $testClass .= '\\';
            }

            $testClass .= $className;

            if (class_exists($testClass)) {
                $this->lookupCache->classes[$className] = $testClass;
                return $testClass;
            }
        }

        return null;
    }
public function findClassName ( $ className ) { if ( ! empty ( $ this -> lookupCache -> classes [ $ className ] ) ) { return $ this -> lookupCache -> classes [ $ className ] ; } if ( class_exists ( $ className ) ) return $ className ; $ startsWithSlash = ( $ className [ 0 ] == '\\' ) ; foreach ( $ this -> searchOrder as $ namespace ) { $ testClass = '\\' . $ namespace ; if ( ! $ startsWithSlash ) { $ testClass .= '\\' ; } $ testClass .= $ className ; if ( class_exists ( $ testClass ) ) { $ this -> lookupCache -> classes [ $ className ] = $ testClass ; return $ testClass ; } } return null ; }
Find class name

@param $className
@return null|string
Find class name