public function findClassFile($class,$baseDir = null)
    {
        $baseDir = is_null($baseDir) ? getcwd():$baseDir;

        $file = $this->mainLoader->findFile($class);
        if (is_file($file)) {
            $spl = PathUtil::createSplFileInfo($baseDir,$file);

            return $spl;
        }

        return false;
    }
public function findClassFile($class,$baseDir = null)
    {
        $baseDir = is_null($baseDir) ? getcwd():$baseDir;

        $file = $this->mainLoader->findFile($class);
        if (is_file($file)) {
            $spl = PathUtil::createSplFileInfo($baseDir,$file);

            return $spl;
        }

        return false;
    }
public function findClassFile ( $ class , $ baseDir = null ) { $ baseDir = is_null ( $ baseDir ) ? getcwd ( ) : $ baseDir ; $ file = $ this -> mainLoader -> findFile ( $ class ) ; if ( is_file ( $ file ) ) { $ spl = PathUtil :: createSplFileInfo ( $ baseDir , $ file ) ; return $ spl ; } return false ; }
Find class file for class

@param string $class   Class name
@param string $baseDir

@return string The filename or false if file not found
Find class file for class