private function addResolvedPath(SplFileInfo $file, array & $map, $basePath, TemplatePathStack $resolver)
    {
        $filePath      = $file->getRealPath();
        $fileName      = pathinfo($filePath, PATHINFO_FILENAME);
        $relativePath  = trim(str_replace($basePath, '', $file->getPath()), '/\\');
        $templateName  = str_replace('\\', '/', trim($relativePath . '/' . $fileName, '/'));

        if ($fileName && ($resolvedPath = $resolver->resolve($templateName))) {
            $map[$templateName] = realpath($resolvedPath);
        }
    }
private function addResolvedPath(SplFileInfo $file, array & $map, $basePath, TemplatePathStack $resolver)
    {
        $filePath      = $file->getRealPath();
        $fileName      = pathinfo($filePath, PATHINFO_FILENAME);
        $relativePath  = trim(str_replace($basePath, '', $file->getPath()), '/\\');
        $templateName  = str_replace('\\', '/', trim($relativePath . '/' . $fileName, '/'));

        if ($fileName && ($resolvedPath = $resolver->resolve($templateName))) {
            $map[$templateName] = realpath($resolvedPath);
        }
    }
private function addResolvedPath ( SplFileInfo $ file , array & $ map , $ basePath , TemplatePathStack $ resolver ) { $ filePath = $ file -> getRealPath ( ) ; $ fileName = pathinfo ( $ filePath , PATHINFO_FILENAME ) ; $ relativePath = trim ( str_replace ( $ basePath , '' , $ file -> getPath ( ) ) , '/\\' ) ; $ templateName = str_replace ( '\\' , '/' , trim ( $ relativePath . '/' . $ fileName , '/' ) ) ; if ( $ fileName && ( $ resolvedPath = $ resolver -> resolve ( $ templateName ) ) ) { $ map [ $ templateName ] = realpath ( $ resolvedPath ) ; } }
Add the given file to the map if it corresponds to a resolved view

@param SplFileInfo       $file
@param array             $map
@param string            $basePath
@param TemplatePathStack $resolver

@return void

@throws \Zend\View\Exception\DomainException
Add the given file to the map if it corresponds to a resolved view