public function resolve($class)
    {
        $result = false;
        $prefix = $class;

        while (false !== ($pos = strrpos($prefix, '\\'))) {
            $prefix = substr($class, 0, $pos + 1);

            if (isset($this->prefixes[$prefix])) {
                $result = $this->resolveFilename($prefix, str_replace('\\', '/', substr($class, $pos + 1)));

                if ($result !== false) {
                    break;
                }
            }

            $prefix = rtrim($prefix, '\\');
        }

        return $result;
    }
public function resolve($class)
    {
        $result = false;
        $prefix = $class;

        while (false !== ($pos = strrpos($prefix, '\\'))) {
            $prefix = substr($class, 0, $pos + 1);

            if (isset($this->prefixes[$prefix])) {
                $result = $this->resolveFilename($prefix, str_replace('\\', '/', substr($class, $pos + 1)));

                if ($result !== false) {
                    break;
                }
            }

            $prefix = rtrim($prefix, '\\');
        }

        return $result;
    }
public function resolve ( $ class ) { $ result = false ; $ prefix = $ class ; while ( false !== ( $ pos = strrpos ( $ prefix , '\\' ) ) ) { $ prefix = substr ( $ class , 0 , $ pos + 1 ) ; if ( isset ( $ this -> prefixes [ $ prefix ] ) ) { $ result = $ this -> resolveFilename ( $ prefix , str_replace ( '\\' , '/' , substr ( $ class , $ pos + 1 ) ) ) ; if ( $ result !== false ) { break ; } } $ prefix = rtrim ( $ prefix , '\\' ) ; } return $ result ; }
Resolve a class name to path and filename

@param string $class
@return string|bool
Resolve a class name to path and filename