src/Locator/ComposerLocator.php
public function locateClass($className)
    {
        $filePath = $this->loader->findFile(ltrim($className, '\\'));
        if (!empty($filePath)) {
            $filePath = PathResolver::realpath($filePath);
        }

        return $filePath;
    }
public function locateClass($className)
    {
        $filePath = $this->loader->findFile(ltrim($className, '\\'));
        if (!empty($filePath)) {
            $filePath = PathResolver::realpath($filePath);
        }

        return $filePath;
    }
public function locateClass ( $ className ) { $ filePath = $ this -> loader -> findFile ( ltrim ( $ className , '\\' ) ) ; if ( ! empty ( $ filePath ) ) { $ filePath = PathResolver :: realpath ( $ filePath ) ; } return $ filePath ; }
Returns a path to the file for given class name

@param string $className Name of the class

@return string|false Path to the file with given class or false if not found
Returns a path to the file for given class name